Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187953 - portage- ebuild Permission Denied errors
Summary: portage- ebuild Permission Denied errors
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
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: ---

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/ 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 ( there is no such error.
And i only have this problem on ~amd64, on ~x86 it seems to work with portage-

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/ < /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