[Build-common-hackers] Bug#715504: Please call dh_install before dh_systemd_*
Michael Stapelberg
stapelberg at debian.org
Tue Jul 9 19:14:08 UTC 2013
Package: cdbs
Version: 0.4.122
Severity: normal
When trying to update the miredo package (which uses cdbs), I realized
that dh_systemd_enable, dh_installinit and dh_systemd_start are called
_before_ dh_install.
dh_install is used in this case to install miredo.service into the files
for the “miredo” package (as opposed to “miredo-server”).
dh_systemd_enable is called _before_ dh_install and therefore cannot
find any unit files.
Debhelper’s dh(1) does it in the right order: it first calls dh_install,
then dh_systemd_enable.
This affects all packages that ship a systemd service file upstream. It
does not affect the packages which ship a systemd service file in
debian/, which is why it was not found when testing :-).
More information about the Build-common-hackers
mailing list