[debhelper-devel] Bug#885994: New override type to run additional commands: after_dh_*
Christoph Berg
myon at debian.org
Mon Jan 1 11:24:02 UTC 2018
Package: debhelper
Version: 11
Severity: wishlist
Hi,
the existing dh override mechanism is perfect to do things like:
override_dh_strip:
dh_strip -Xfoo
It is less optimal for adding (rather than overriding) commands:
override_dh_fixperms:
dh_fixperms
chmod 4755 debian/foo/usr/bin/foo
This has several problems:
* it's ugly because it repeats "dh_fixperms", and it's also
error-prone because the explicit dh_fixperms might be forgotten
(#884419, #884815, #884817),
* it doesn't use the global dh options passed to dh $@ unless they are
repeated here,
* it defeats parallelization (#881175),
* it might or might not work well with override_dh_*-(arch|indep).
(Examples directly from dh(1)).
I'd like to see after_dh_* as alternative to override_dh_*:
after_dh_fixperms:
chmod 4755 debian/foo/usr/bin/foo
This looks much cleaner to me. (In fact, the reason I'm filing this
wishlist bug is that I'm always twitching a bit when I have to repeat
dh_foo in the override_dh_foo incantation.)
Thanks for considering,
Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20180101/6dc195ed/attachment.sig>
More information about the debhelper-devel
mailing list