Package: debhelper
Version: 9.20120528
Severity: normal

I have a package building an arch: all and an arch: any package and I want
to fix a permissions in the arch: all one (cpputest). I have put
this in debian/rules:

override_dh_installexamples-indep:
        dh_installexamples
        chmod 644 debian/cpputest/usr/share/doc/cpputest/examples/*.dsw

This works fine when building with "debuild -A" but when I build both
the arch: all and the arch: any then it doesn't work because debhelper
will rerun dh_installexamples after having run this override (and thus will
overwrite the file and restore the bad permission).

Extract from the log:

   dh_installchangelogs
   debian/rules override_dh_installexamples-indep
make[1]: Entering directory `/«PKGBUILDDIR»'
dh_installexamples
chmod 644 debian/cpputest/usr/share/doc/cpputest/examples/*.dsw
make[1]: Leaving directory `/«PKGBUILDDIR»'
   dh_installexamples
   dh_installman

Thus I would suggest that when an override-dh_foo-indep exists without
the corresponding override-dh_foo-arch then you should not call "dh_foo"
afterwards but "dh_foo -a". Conversely, if there's an override-dh_foo-arch
without override-dh_foo-indep, then you should run "dh_foo -i" afterwards.

Cheers,

-- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (150, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debhelper depends on:
ii  binutils    2.22-6.1
ii  dpkg        1.16.4+0~1337757673.63~1.gbp058673
ii  dpkg-dev    1.16.4+0~1337757673.63~1.gbp058673
ii  file        5.11-1
ii  html2text   1.3.2a-15
ii  man-db      2.6.1-2
ii  perl        5.14.2-11
ii  po-debconf  1.0.16+nmu2

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  0.60

-- no debconf information



--
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