Bug#996542: Post install fails when run as non-root user and does not respect PKG_ROOT

Michael Biebl biebl at debian.org
Fri Oct 15 11:26:38 BST 2021


Am 15.10.21 um 11:14 schrieb Michael Biebl:
> Control: tags -1 + moreinfo
> 
> Am 15.10.21 um 07:53 schrieb Glenn Washburn:
>> Package: udev
>> Version: 247.3-5
>>
>> Probably the easiest solution would be to exit early from the post
>> install if the current user is not root. There's probably a more subtle
>> fix that preserves more functionality (eg. maybe updating the hwdb in
>> PKG_ROOT?), what ever gets the post install to not fail in this
>> scenario works for me.
> 
> Package installations need to be done as root.
> I don't think the package would benefit if we'd litter the maintainer 
> scripts with id checks.
> 
> Please elobare what the use case is here?

I notice that you filed multiple bugs against various packages [1].
I don't think this is particularly helpful as long as dpkg doesn't 
officially support installations as non-root.

If you want to allow non-root installations, then this needs to be 
discussed with the dpkg maintainer and ideally on debian-devel.
While this might be a laudable goal, my guess is that with the way 
packages are built today, this is not (easily) possible.

Anyway, this needs discussion first, before you actually start such a 
mass bug filing

Michael

[1] 
https://bugs.debian.org/cgi-bin/pkgreport.cgi?submitter=development%40efficientek.com


-------------- 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/20211015/fff289fc/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list