Package: pennmush
Version: 1.8.2p8-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch oneiric

The debhelper commands in pennmush's binary-indep and binary-arch
targets operate on all packages, rather than being restricted to the
architecture-independent and architecture-dependent packages
respectively.  Normally this is a technical policy violation but doesn't
cause much of a practical problem.  I noticed it because it caused a
build failure on Ubuntu in conjunction with some of the mangling that
Ubuntu build daemons do on binary packages; but it seems that it should
be fixed regardless.  Patch follows.

  * Set DH_OPTIONS in binary-indep and binary-arch to avoid duplicated work.

diff -u pennmush-1.8.2p8/debian/rules pennmush-1.8.2p8/debian/rules
--- pennmush-1.8.2p8/debian/rules
+++ pennmush-1.8.2p8/debian/rules
@@ -118,6 +118,7 @@
 
        dh_clean
 
+install: DH_OPTIONS=
 install: build
        dh_testdir
        dh_testroot
@@ -142,6 +143,7 @@
        touch install-stamp
 
 # Build architecture independant packages.
+binary-indep: DH_OPTIONS=-i
 binary-indep: install
 
        dh_testdir
@@ -160,6 +162,7 @@
        dh_builddeb
 
 # Build architecture dependant packages.
+binary-arch: DH_OPTIONS=-s
 binary-arch: install
 
        dh_testdir

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to