#1143250 debhelper: dh_installsystemd --name=foo does not detect package.foo@.service

#1143250#5
Date:
2026-08-01 14:53:20 UTC
From:
To:
Dear Maintainers,

while working on bug #1143243 I ran into another problem.
dh_installsystemd --name=foo does not detect package.foo@.service

Minimal reproducer:

debian/rules
%:

         dh $@

override_dh_installsystemd:
         dh_installsystemd --name=foo

Expected:
debian/package.foo@.service would be installed in the binary package

Actual:
ignored

Workaround (of sorts):
"--name=foo@"

While having a brief look at the actual script, I noticed there is a
small spelling error in there: s/Intall/Install/ (currently
https://salsa.debian.org/debian/debhelper/-/blob/main/dh_installsystemd?ref_type=heads#L288)

Thank you and best regards

Rolf Leggewie