Bug#983421: init-system-helpers: please respect DPKG_ROOT when checking for /usr/sbin/policy-rc.d

Johannes Schauer Marin Rodrigues josch at debian.org
Sat Oct 23 10:12:18 BST 2021


Hi Michael,

Quoting Johannes Schauer Marin Rodrigues (2021-09-24 21:11:26)
> > Didn't have time yet to look at this. Sorry.  From a cursory glance it
> > feels inelegant having to sprinkle env vars across everything.
> 
> indeed, our patch to init-system-helpers is the largest of all the changes.
> The advantage of changing init-system-helpers is, that then we don't have to
> touch many other maintainer scripts instead. On the up side, the $DPKG_ROOT
> variable is empty during normal operation, so prepending $DPKG_ROOT in front of
> all paths is unlikely to break anything without --force-script-chrootless
> active.
> 
> Do you have ideas how the diff could be improved? I added the assertdpkgroot
> and assertnotdpkgroot functions to make sure that I'm not accidentally working
> on paths that have already been modified or should not be modified.
> 
> > This also feels like it could get easily broken when changes are made. So I'm
> > not too enthusiastic tbh.
> 
> in case things break in the future, our CI job would catch that breakage and
> then I'd send you another patch. I see this like other efforts like cross
> building or reproducible builds. It's not your task to make sure it's not
> breaking but we run a CI system and send you patches once we observe a
> regression.
> 
> Needless to say, if something unrelated breaks because of this change, I'm
> also here to work on fixing that.

a month passed since my last mail to this bug. Is there anything else I can do
to help with this bug?

Thanks!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20211023/8efe9638/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list