[Bug 1959054] [NEW] debhelper restarts services marked --no-restart-on-upgrade

Launchpad Bug Tracker 1959054 at bugs.launchpad.net
Sun Feb 20 17:38:16 UTC 2022


You have been subscribed to a public bug by Dave Jones (waveform):

Debian bug #994204 (https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=994204) describes a flaw in debhelper that results
in the postinst being generated in such a fashion that services marked
--no-stop-on-upgrade (or its deprecated alias --no-restart-on-upgrade),
restart anyway.

Please note: this is nothing to do with the --no-restart-after-upgrade
flag (which is, somewhat confusingly IMO, unrelated).

I've confirmed that the flaw appears to be present in the jammy version
of debhelper (though not impish) and that packages generated with it
appear to contain the flawed postinst (I first encountered this whilst
working on the open-iscsi merge), though I haven't yet managed to test
that the flaw exhibits itself on upgrade (though I'd say from the
presence of the flaw in the postinst, that it's a reasonable inference
that it will).

In dbus (the merge of which I'm currently working on), Debian has worked
around this but given I've now run into two affected packages (open-
iscsi and dbus), only one of which has a work-around, I'd much rather we
got debhelper fixed up and rebuilt affected packages?

** Affects: debconf (Ubuntu)
     Importance: Undecided
     Assignee: Dave Jones (waveform)
         Status: Confirmed

** Affects: debhelper (Ubuntu)
     Importance: Undecided
     Assignee: Dave Jones (waveform)
         Status: Fix Released

** Affects: docker.io (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: libvirt (Ubuntu)
     Importance: Undecided
     Assignee: Christian Ehrhardt  (paelzer)
         Status: Fix Committed

** Affects: debconf (Ubuntu Jammy)
     Importance: Undecided
     Assignee: Dave Jones (waveform)
         Status: Confirmed

** Affects: debhelper (Ubuntu Jammy)
     Importance: Undecided
     Assignee: Dave Jones (waveform)
         Status: Fix Released

** Affects: docker.io (Ubuntu Jammy)
     Importance: Undecided
         Status: Fix Released

** Affects: libvirt (Ubuntu Jammy)
     Importance: Undecided
     Assignee: Christian Ehrhardt  (paelzer)
         Status: Fix Committed

** Affects: debconf (Debian)
     Importance: Unknown
         Status: New

** Affects: debhelper (Debian)
     Importance: Unknown
         Status: New


** Tags: fr-2008
-- 
debhelper restarts services marked --no-restart-on-upgrade
https://bugs.launchpad.net/bugs/1959054
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list