Debian Bug report logs - #1051743
debhelper: dh_installsystemd --name documentation doesn't match actual behavior

version graph

Package: debhelper; Maintainer for debhelper is Debhelper Maintainers <[email protected]>; Source for debhelper is src:debhelper (PTS, buildd, popcon).

Reported by: Mark Eichin <[email protected]>

Date: Tue, 12 Sep 2023 04:09:02 UTC

Severity: normal

Found in version debhelper/13.11.6

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debhelper Maintainers <[email protected]>:
Bug#1051743; Package debhelper. (Tue, 12 Sep 2023 04:09:04 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Eichin <[email protected]>:
New Bug report received and forwarded. Copy sent to Debhelper Maintainers <[email protected]>. (Tue, 12 Sep 2023 04:09:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Mark Eichin <[email protected]>
To: [email protected]
Subject: debhelper: dh_installsystemd --name documentation doesn't match actual behavior
Date: Tue, 12 Sep 2023 00:03:59 -0400
Subject: debhelper: dh_installsystemd --name documentation doesn't match actual behavior
Package: debhelper
Version: 13.11.6
Severity: normal

Dear Debhelper Maintainers,

The dh_installsystemd documentation says that

   As an example, B<dh_installsystemd --name foo> will look for
   F<<< I<debian/package.>B<< I<foo> >>I<.service> >>> instead of
   F<< I<debian/package.service> >>).  

after building a handful of packages and having this silently not work
(the silence isn't a problem per-se, it's just supposed to look for a
correctly named file and use it if present) I eventually figured out
that it would instead install the file F<< I<debian/name.service> >>,
ie. it would drop I<package> entirely and just use the --name
argument.

There is also a lengthy comment in the source where the work happens
that matches the POD documentation, but the code itself at that point
simply does

   my $name = $dh{NAME} // $package;

which doesn't concatenate anything, it just uses --name if defined, and
package if not.

A quick glance through git history shows that it's behaved this way
since at least 2018 and it looks like that was just an accurate
refactoring of the previous code - I haven't dug further, but perhaps
that is enough to suggest that 5 years is long enough that the
documentation should change to match the behaviour rather than changing
the code (possibly across debhelper's famously well-managed
compatibility levels.)

(If you agree with my assessment, I would be happy to contribute a
documentation patch, though it would be US/English only, I haven't
worked with translations before.)



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Fri May 16 05:42:02 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.