r9531 - in /desktop/experimental/gtk-doc/debian: changelog patches/50_shell-errors.patch

lool at users.alioth.debian.org lool at users.alioth.debian.org
Fri Apr 6 12:10:24 UTC 2007


Author: lool
Date: Fri Apr  6 12:10:24 2007
New Revision: 9531

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=9531
Log:
* New patch, 50_shell-errors, causes all system() calls to spawn a subshell
  which should help diagnose crashes of commands such as ICE or scanner
  segfaults.

Added:
    desktop/experimental/gtk-doc/debian/patches/50_shell-errors.patch
Modified:
    desktop/experimental/gtk-doc/debian/changelog

Modified: desktop/experimental/gtk-doc/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gtk-doc/debian/changelog?rev=9531&op=diff
==============================================================================
--- desktop/experimental/gtk-doc/debian/changelog (original)
+++ desktop/experimental/gtk-doc/debian/changelog Fri Apr  6 12:10:24 2007
@@ -1,3 +1,11 @@
+gtk-doc (1.8-2) experimental; urgency=low
+
+  * New patch, 50_shell-errors, causes all system() calls to spawn a subshell
+    which should help diagnose crashes of commands such as ICE or scanner
+    segfaults.
+
+ -- Loic Minier <lool at dooz.org>  Fri, 06 Apr 2007 14:06:13 +0200
+
 gtk-doc (1.8-1) experimental; urgency=low
 
   * Add a get-orig-source target to retrieve the upstream tarball.

Added: desktop/experimental/gtk-doc/debian/patches/50_shell-errors.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gtk-doc/debian/patches/50_shell-errors.patch?rev=9531&op=file
==============================================================================
--- desktop/experimental/gtk-doc/debian/patches/50_shell-errors.patch (added)
+++ desktop/experimental/gtk-doc/debian/patches/50_shell-errors.patch Fri Apr  6 12:10:24 2007
@@ -1,0 +1,45 @@
+Causes all system() calls to spawn a subshell which should help diagnose
+crashes of commands such as ICE or scanner segfaults.
+
+diff -Nur gtk-doc-1.8/gtkdoc-scangobj.in gtk-doc-1.8.new/gtkdoc-scangobj.in
+--- gtk-doc-1.8/gtkdoc-scangobj.in	2007-02-16 16:16:28.000000000 +0100
++++ gtk-doc-1.8.new/gtkdoc-scangobj.in	2007-04-06 14:06:05.000000000 +0200
+@@ -1536,14 +1536,14 @@
+ 
+ print "gtk-doc: Compiling scanner\n";
+ $command = "$CC $CFLAGS -c -o $o_file $MODULE-scan.c";
+-system($command) == 0 or die "Compilation of scanner failed: $!\n";
++system("($command)") == 0 or die "Compilation of scanner failed: $!\n";
+ 
+ print "gtk-doc: Linking scanner\n";
+ $command = "$LD -o $MODULE-scan $o_file $LDFLAGS";
+-system($command) == 0 or die "Linking of scanner failed: $!\n";
++system("($command)") == 0 or die "Linking of scanner failed: $!\n";
+ 
+ print "gtk-doc: Running scanner $MODULE-scan\n";
+-system("sh -c ./$MODULE-scan") == 0 or die "Scan failed: $!\n";
++system("(./$MODULE-scan)") == 0 or die "Scan failed: $!\n";
+ 
+ unlink "./$MODULE-scan.c", "./$MODULE-scan.o", "./$MODULE-scan.lo", "./$MODULE-scan";
+ 
+diff -Nur gtk-doc-1.8/gtkdoc-scanobj.in gtk-doc-1.8.new/gtkdoc-scanobj.in
+--- gtk-doc-1.8/gtkdoc-scanobj.in	2007-01-03 16:04:15.000000000 +0100
++++ gtk-doc-1.8.new/gtkdoc-scanobj.in	2007-04-06 14:05:10.000000000 +0200
+@@ -814,14 +814,14 @@
+ 
+ print "gtk-doc: Compiling scanner\n";
+ $command = "$CC $CFLAGS -c -o $o_file $MODULE-scan.c";
+-system($command) == 0 or die "Compilation of scanner failed: $!\n";
++system("($command)") == 0 or die "Compilation of scanner failed: $!\n";
+ 
+ print "gtk-doc: Linking scanner\n";
+ $command = "$LD -o $MODULE-scan $o_file $LDFLAGS";
+-system($command) == 0 or die "Linking of scanner failed: $!\n";
++system("($command)") == 0 or die "Linking of scanner failed: $!\n";
+ 
+ print "gtk-doc: Running scanner $MODULE-scan\n";
+-system("sh -c ./$MODULE-scan") == 0 or die "Scan failed: $!\n";
++system("(./$MODULE-scan)") == 0 or die "Scan failed: $!\n";
+ 
+ unlink "./$MODULE-scan.c", "./$MODULE-scan.o", "./$MODULE-scan.lo", "./$MODULE-scan";
+ 




More information about the pkg-gnome-commits mailing list