Gmane
Favicon
From: Mike Frysinger <vapier <at> gentoo.org>
Subject: making permission/ownership retention consistent
Newsgroups: gmane.linux.gentoo.portage.devel
Date: 2006-07-05 06:20:44 GMT (2 years, 52 weeks, 16 hours and 26 minutes ago)
when merging things from ${D} to ${ROOT}, portage currently will make sure 
that the permissions in ${D} for files are retained after merging into 
${ROOT}, but not for directories

for example, consider an ebuild that:
 - creates dir /usr/share/foo with foo:foo ownership and 777 permissions
 - creates file /usr/share/foo/bar with foo:foo ownership and 777 permissions

now the user goes in and runs:
 chmod -R 700 /usr/share/foo
 chown -R 0:0 /usr/share/foo

then the user goes and re-emerges the aforementioned ebuild ... then end 
result ?  the directory /usr/share/foo will still be 0:0 ownership with 700 
permissions yet the file /usr/share/foo/bar will be reset to foo:foo 
ownership and 777 permissions

personally i think that we should be retaining the permissions of the file as 
is instead of resetting it, but i wont fight too hard in either direction ... 
we just need the behavior to be consistent
-mike