Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90720 - correct os.chown handling when root
Summary: correct os.chown handling when root
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-04-28 08:35 UTC by solar (RETIRED)
Modified: 2005-07-14 06:58 UTC (History)
0 users

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


Attachments
patch 1 (portage-chown-root-only-build-prefix.patch,600 bytes, patch)
2005-04-28 08:36 UTC, solar (RETIRED)
Details | Diff
patch 2 (portage-chown-root-only-build-prefix.patch,600 bytes, patch)
2005-04-28 08:37 UTC, solar (RETIRED)
Details | Diff
patch 3 (portage-chown-root-tmrdir.patch,563 bytes, patch)
2005-04-28 08:37 UTC, solar (RETIRED)
Details | Diff
patch 2 (portage-chown-root-build-home.patch,1.30 KB, patch)
2005-04-28 09:54 UTC, solar (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description solar (RETIRED) gentoo-dev 2005-04-28 08:35:32 UTC
This is a long standing bug with portage and it's os.chown() handling 
which throw tracebacks/cause failures other other misc errors when not
using root user for all ebuild phases. using the root user is unneeded
often as many operations can be preformed fine as a user with the proper
permissions.

I will attach a small series of patches which correct this behavior and 
allow the following operations (clean unpack compile install package) to
be preformed by a user with the right permissions without the need for
fakeroot.

The patches help speed up development time for developers like me as we 
often use the ebuild command directly to perform a small set of tasks on   
a given ebuild.

Please apply for sys-apps/portage-2.0.51.20-r6
Comment 1 solar (RETIRED) gentoo-dev 2005-04-28 08:36:40 UTC
Created attachment 57478 [details, diff]
patch 1
Comment 2 solar (RETIRED) gentoo-dev 2005-04-28 08:37:02 UTC
Created attachment 57479 [details, diff]
patch 2
Comment 3 solar (RETIRED) gentoo-dev 2005-04-28 08:37:31 UTC
Created attachment 57480 [details, diff]
patch 3
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-04-28 09:21:07 UTC
Patches 1 & 2 are the same.
Comment 5 solar (RETIRED) gentoo-dev 2005-04-28 09:54:13 UTC
Created attachment 57488 [details, diff]
patch 2
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 05:48:00 UTC
Fixed on or before 2.0.51.22-r1 
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 06:58:43 UTC
Looking through the batch of bugs, I'm not sure that some of these are 
actually fixed in stable. Others, the requirements have possibly changed after 
the initial fix was committed. 
 
If you think this bug has been closed incorrectly, please reopen or ask that 
it be reopened.