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

Bug 428474

Summary: Print a warning after merge with wrong permissions on existing file
Product: Portage Development Reporter: Manuel Rüger (RETIRED) <mrueg>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Manuel Rüger (RETIRED) gentoo-dev 2012-07-28 22:25:15 UTC
This is a request regarding "fowners" and "fperms". 

Example ebuild phase:
src_install(){
   fowners foo:bar /folder/test.txt
}


Let's assume we have already an existing /folder/test.txt with foo2:bar2 as owner/group. 

After merging, the group and owner of /folder/test.txt has not changed (That is good, cause I don't want to change it automatically). 
But there was no warning, that permissions might be wrong.

Portage should parse the ebuild for fowners/fperms, check the permissions of the files fowners/fperms is used  after the merge and warn you about possibly wrong permissions.
Comment 1 Zac Medico gentoo-dev 2012-07-28 22:34:46 UTC
This could be a nice feature to have, at least until bug 396153 gets fixed.

There's no need to parse fowners/fperms calls in the ebuild, since we can simply compare the permissions of the directories inside the install image (referred to as ${D} inside ebuilds).