Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430962 - FEATURES=installsources should sanitize permissions of installed source files
Summary: FEATURES=installsources should sanitize permissions of installed source files
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: Normal minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: Inclusion, InVCS, PATCH
Depends on:
Blocks: 431026
  Show dependency tree
 
Reported: 2012-08-11 17:32 UTC by Nico R.
Modified: 2012-08-11 23:48 UTC (History)
0 users

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


Attachments
Sanitize permissions of installed files with FEATURES=installsources (portage-2.1.11.9-installsources_chmod-1.patch,749 bytes, text/plain)
2012-08-11 17:32 UTC, Nico R.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico R. 2012-08-11 17:32:43 UTC
Created attachment 321032 [details]
Sanitize permissions of installed files with FEATURES=installsources

When FEATURES includes ‘installsources’, and a package has weird permissions in its source tarball or sets them in its ebuild, these permissions are kept when installing the source files for debugging.

I noticed this problem with two packages on my system so far, namely app-admin/apg-2.3.0b-r5, and dev-vcs/git-1.7.8.6. For apg, the ebuild changes permissions; for git, the source tarball has no rights for group or others.

Attached patch works for me and fixes the problem.
Comment 2 Zac Medico gentoo-dev 2012-08-11 23:48:01 UTC
This is fixed in 2.1.11.10 and 2.2.0_alpha121.