This is similar to bug 22125 (http://bugs.gentoo.org/show_bug.cgi?id=22125), though not exactly the same. Basically, I have created a global ccache directory, that I want _all_ users to use (including portage), so that I don't have tons of nearly identical cached object files lying around (there aren't many users, and they generally are compiling the same projects). However, whenever, I emerge an update, emerge changes the ownership of the directory to portage:portage. I believe this can probably be worked around by setting userpriv in FEATURES, though I haven't tried it yet (just discovered that flag recently, and still don't quite understand all of the impact adding it will have yet:). However, regardless of whether or not userpriv is set, portage shouldn't change the ownership of the ccache directory unless it is being created for the first time. Reproducible: Always Steps to Reproduce: 1.Specify a ccache directory in the global profile (in my case, /var/cache/ccache) and set its ownership and permissions appropriately (again, in my case, root.users 2775) 2.emerge anything 3. Actual Results: ownership of the ccache directory is changed to portage.portage Expected Results: The ownership of the ccache directory should have remained unchanged
Can't you add a user who uses ccache to portage group?
Files portage has to use for building (especially if told to do so by user configuration) are fair game for modification, both perms and ownership...