[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#423028: gv: fix binary build on various Debian and Ubuntu flavors

Package: gv
Version: 1:3.6.2-4
Severity: minor

I've also been using the following patch to build the 3.6.2-4 source
package on various flavors of Debian and Ubuntu.  The patch fixes the
problem of quilt returning inconsistent error codes depending on the
version of quilt.  A few examples:

* with Debian 3.1/i386 and quilt 0.39-2:

  $ ( cd /tmp ; quilt pop -a ; echo $? )
  No patch removed

* with Ubuntu 7.04/i386 and quilt 0.45-6:

  $ (cd /tmp ; quilt pop -a ; echo $? )
  No patch removed

* with Debian stable/testing/unstable mix and quilt 0.46-2:

  $ (cd /tmp ; quilt pop -a ; echo $? )
  No patch removed

The quilt manpage doesn't document any exit codes, so I don't know
which version is correct.  The patch below avoids the issue by
allowing 1 or 2 as the exit code in the rules file.

--- a/debian/rules	2007-05-07 19:04:23.000000000 +0100
+++ b/debian/rules	2007-05-07 18:46:24.000000000 +0100
@@ -23,14 +23,14 @@
 	-$(MAKE) -i distclean
 	rm -f doc/gv.info
-	quilt pop -a -R || test $$? = 2
+	quilt pop -a -R || test $$? = 2 -o $$? = 1
 	rm -f patches patch-stamp configure-stamp build-stamp
 	rm -rf .pc
 patch: patch-stamp
 	ln -sf debian/patches
-	quilt push -a || test $$? = 2
+	quilt push -a || test $$? = 2 -o $$? = 1
 	touch $@
 configure-stamp: patch-stamp configure

-- System Information:
Debian Release: 4.0
  APT prefers feisty-updates
  APT policy: (500, 'feisty-updates'), (500, 'feisty-security'), (500, 'feisty')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.20-15-generic
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)

Versions of packages gv depends on:
ii  gs                8.54.dfsg.1-5build1    Transitional package
ii  gs-esp [gs]       8.15.4.dfsg.1-0ubuntu1 The Ghostscript PostScript interpr
ii  gs-gpl [gs]       8.54.dfsg.1-5build1    The GPL Ghostscript PostScript int
ii  libc6             2.5-0ubuntu14          GNU C Library: Shared libraries
ii  libice6           2:1.0.3-1build1        X11 Inter-Client Exchange library
ii  libsm6            2:1.0.2-1build1        X11 Session Management library
ii  libx11-6          2:1.1.1-1ubuntu3       X11 client-side library
ii  libxext6          2:1.0.3-1build1        X11 miscellaneous extension librar
ii  libxmu6           2:1.0.2-1ubuntu2       X11 miscellaneous utility library
ii  libxpm4           1:3.5.6-1              X11 pixmap library
ii  libxt6            1:1.0.5-1              X11 toolkit intrinsics library
ii  xaw3dg            1.5+E-14ubuntu2        Xaw3d widget set

gv recommends no packages.

-- no debconf information

Reply to: