Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 779727

Summary: sys-auth/polkit-0.118 install: invalid user ‘polkitd’ on prefix
Product: Gentoo Linux Reporter: Nathan Shearer <mail>
Component: Current packagesAssignee: Gentoo Prefix <prefix>
Status: UNCONFIRMED ---    
Severity: major CC: freedesktop-bugs, jstein, mail, snowy.mail, waebbl-gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info
environment

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?