Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428474 - Print a warning after merge with wrong permissions on existing file
Summary: Print a warning after merge with wrong permissions on existing file
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-28 22:25 UTC by Manuel Rüger (RETIRED)
Modified: 2012-07-28 22:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).