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

Bug 463994

Summary: Please allow users to set uid/gid and perms for $PKGDIR
Product: Portage Development Reporter: Markos Chandras (RETIRED) <hwoarang>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Markos Chandras (RETIRED) gentoo-dev 2013-03-31 13:29:03 UTC
Hi,

my $PKGDIR is in a vboxfs filesystem and sometimes I find the perms are reset to some weird values. This is probably a problem in vboxfs or something else that I fail to understand so I have to run chown portage:portage and chmod -R 777 on $PKGDIR in order for my packages to be accessible to other boxes. It would be nice if portage could use 2 more new variables in make.conf such as PKGDIR_UGID and PKGDIR_PERMS that would effectively reset the PKGDIR perms to a user-defined value if FEATURES="buildpkg" or --buildpkg is used on every "emerge" invocation.
If these variables are not set, the portage will use the existing behavior and inherit the existing perms from the PKGDIR directory.