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

Michael Biebl biebl at debian.org
Wed Nov 3 14:27:23 GMT 2021


On 23.10.21 11:12, Johannes Schauer Marin Rodrigues wrote:
> 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?
> 

Unfortunately, I didn't find the time to further look into it.

Luca, Felipe, Martin, what are your thoughts?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20211103/68423232/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list