Hello,
On Tue 02 Dec 2025 at 06:58pm GMT, Simon McVittie wrote:
> On Tue, 02 Dec 2025 at 15:11:08 +0000, Sean Whitton wrote:
>>We would like the postinst for dgit-infrastructure.deb to restart any
>>running instances of [a user service] it finds on the host.
>
> dh_installsystemduser seems to have automation for this, but only in compat
> level 14, which is opt-in and newer than the default. I don't see a way to
> opt-in to just that one behaviour of compat level 14 without the rest of it.
>
> (/usr/share/debhelper/autoscripts/postinst-systemd-user-restart is the
> implementation, delegating the actual work to deb-systemd-invoke.)
>
> See also https://bugs.debian.org/1072698 which tracks new behaviour changes
> and the blockers for compat level 14 being stabilized.
Oh, thanks! Seems like that's not documented anywhere.
I don't think we mind that dgit-infrastructure.deb starts depending on
dh compat level 14, but the problem is that we want the whole source
package to work on older Debian releases. Currently we run our full
test suite back to bullseye.
Ian, what do you think about something like this:
override_dh_installsystemduser:
if $(compat 14 is available); then
DH_COMPAT=14 dh_installsystemduser ...
else
dh_installsystemduser ...
fi
--
Sean Whitton
Attachment:
signature.asc
Description: PGP signature