Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779727 - sys-auth/polkit-0.118 install: invalid user ‘polkitd’ on prefix
Summary: sys-auth/polkit-0.118 install: invalid user ‘polkitd’ on prefix
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-01 16:17 UTC by Nathan Shearer
Modified: 2021-06-02 06:18 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,308.41 KB, text/plain)
2021-04-01 16:17 UTC, Nathan Shearer
Details
emerge --info (emerge-info.txt,5.48 KB, text/plain)
2021-04-01 16:17 UTC, Nathan Shearer
Details
environment (environment,97.56 KB, text/plain)
2021-04-01 16:18 UTC, Nathan Shearer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Shearer 2021-04-01 16:17:05 UTC
sys-auth/polkit-0.118 cannot be installed in Gentoo prefix, fails with an invalid user 'polkitd' during dodir.

Reproducible: Always

Steps to Reproduce:
1. Setup a Gentoo prefix
2. Add some USE flags copied from the desktop profile since one does not exist for prefix
# desktop profile copied from var/db/repos/gentoo/profiles/releases/17.0/
USE="$USE bzip2"
# desktop profile copied from var/db/repos/gentoo/profiles/targets/desktop/make.defaults
USE="$USE a52 aac acpi alsa bluetooth branding cairo cdda cdr cups dbus dri dts dvd dvdr elogind emboss encode exif flac gif gpm gtk gui icu jpeg lcms libnotify mad mng mp3 mp4 mpeg ogg opengl pango pdf png policykit ppds qt5 sdl spell startup-notification svg tiff truetype vorbis udev udisks unicode upower usb wxwidgets X xcb x264 xml xv xvid"
3. emerge sys-auth/polkit
Actual Results:  
install: invalid user ‘polkitd’
 * ERROR: sys-auth/polkit-0.118::gentoo failed (install phase):
 *   dodir failed
Comment 1 Nathan Shearer 2021-04-01 16:17:25 UTC
Created attachment 696828 [details]
build.log
Comment 2 Nathan Shearer 2021-04-01 16:17:44 UTC
Created attachment 696831 [details]
emerge --info
Comment 3 Nathan Shearer 2021-04-01 16:18:01 UTC
Created attachment 696834 [details]
environment
Comment 4 Mike Gilbert gentoo-dev 2021-04-05 15:45:52 UTC
polkit is probably pretty useless if you can't run it as root.
Comment 5 Mike Gilbert gentoo-dev 2021-04-05 15:48:19 UTC
I would suggest you disable USE="policykit" in your prefix installation.
Comment 6 Nathan Shearer 2021-04-06 17:16:02 UTC
I modified the use flags copied from the desktop profile and added -policykit

This stopped world from pulling in sys-auth/polkit and allowed the newuse update to complete.

Since policykit currently does not work under prefix, perhaps that use flag should be masked -- either that or the ebuild fixed to allow it to compile and install even if the binaries are not going to be used?