Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187953 - portage-2.1.3.3 ebuild Permission Denied errors
Summary: portage-2.1.3.3 ebuild Permission Denied errors
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 181949
  Show dependency tree
 
Reported: 2007-08-06 21:32 UTC by Thomas Sachau
Modified: 2007-08-10 22:28 UTC (History)
0 users

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


Attachments
only drop privileges when FEATURES=userpriv is enabled (userpriv.patch,1.15 KB, patch)
2007-08-06 21:51 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Sachau gentoo-dev 2007-08-06 21:32:33 UTC
Something like ebuild  /usr/local/portage/net-p2p/freenet/freenet-0.7.1050.ebuild digest works
ebuild /usr/local/portage/net-p2p/freenet-bin/freenet-bin-0.7.1050.ebuild digest fails with 
/usr/lib64/portage/bin/ebuild.sh: line 1535: /usr/local/portage/net-p2p/freenet-bin/freenet-bin-0.7.1050.ebuild: Permission denied
The permissions for the folder and files are in both cases the same.
With stable portage (2.1.2.11) there is no such error.
And i only have this problem on ~amd64, on ~x86 it seems to work with portage-2.1.3.3

Reproducible: Always

Steps to Reproduce:
Comment 1 Zac Medico gentoo-dev 2007-08-06 21:51:04 UTC
Created attachment 127121 [details, diff]
only drop privileges when FEATURES=userpriv is enabled

It seems like you have some restrictive permissions on ${PORTDIR}. If you save this patch as /tmp/userpriv.patch then you can apply it like this:

patch /usr/lib/portage/pym/portage.py < /tmp/userpriv.patch
Comment 2 Thomas Sachau gentoo-dev 2007-08-06 23:24:44 UTC
I dont know why but after using stable portage and going back to unstable portage i cannot reproduce this error any more.
Now i am only able to get it if i manually chmod 750 the folder and in this case the patch does help.
Sorry for the noise.
Comment 3 Zac Medico gentoo-dev 2007-08-10 22:28:54 UTC
(In reply to comment #1)
> Created an attachment (id=127121) [edit]
> only drop privileges when FEATURES=userpriv is enabled

This has been released in 2.1.3.4.