[Piuparts-devel] Bug#850762: fixed in setserial 2.17-50

Andreas Beckmann anbe at debian.org
Fri Jan 27 18:54:08 UTC 2017


On 2017-01-27 17:09, Andreas Henriksson wrote:
> Hello Thorsten Alteholz, Andreas Beckmann.
> 
> On Sun, Jan 22, 2017 at 03:50:31PM +0000, Thorsten Alteholz wrote:
> [...]
>>    * debian/control: add dependency to lsb-base (Closes: #850762)
> [...]
> 
> This change is WRONG. You're now depending on something which you don't
> actually need!
> (I'm not sure what the kosher interpretation of policy is on this
> but I'm willing to bet overinflating dependencies is RC just like
> lacking dependencies.)
> 
> In a sysvinit-core system lsb-base is guaranteed to be there.
> On a systemd (default init) system, the init scripts is masked
> by the native systemd units shipped in the setserial package.
> 
> I guess Andreas Beckmann managed to produce the piuparts error by
> having a broken chroot, eg. having no init system + no policy-rc.d.

The piuparts chroot is *not broken*.

> Andreas please confirm you're missing policy-rc.d (and have an
> init-less chroot, e.g. debootstrap --variant=minbase).

There is usually no init system installed, but a policy-rc.d exists to
prevent starting of services (with exceptions for mysql and postgresql).

If something still runs into the missing lsb-base dependency, the
initscript must be executed by some means that avoid invoke-rc.d.


We looked into the missing lsb-base dependencies and whether these could
be checked for with piuparts, but concluded that this does not work
since the initscrips are usually not executed if running under piuparts.

> The broken setup Andreas is likely running is now auto-detected
> and automagically handled with init-system-helpers 1.47 (currently
> in sid, soon hopefully migrating to stretch). In other words
> Andreas should not be able to reproduce this problem using
> init-system-helpers 1.47 -- where he'll just get a big fat angry warning
> about his system missing policy-rc.d and then automatically acting
> like it was there to avoid tripping any errors.
>
>
https://anonscm.debian.org/git/collab-maint/init-system-helpers.git/commit/?id=289e032e9eb213480e65b47cb1233a6f98bfad4f

Andreas

PS: just consider a package which
  Build-Depends: setserial
this must still install cleanly in a whatsoever minimal chroot.




More information about the Piuparts-devel mailing list