sys-auth/polkit-0.118 cannot be installed in Gentoo prefix, fails with an invalid user 'polkitd' during dodir.
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/
# 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
install: invalid user ‘polkitd’
* ERROR: sys-auth/polkit-0.118::gentoo failed (install phase):
* dodir failed
Created attachment 696828 [details]
Created attachment 696831 [details]
Created attachment 696834 [details]
polkit is probably pretty useless if you can't run it as root.
I would suggest you disable USE="policykit" in your prefix installation.
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?