Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 187953

Summary: portage-2.1.3.3 ebuild Permission Denied errors
Product: Portage Development Reporter: Thomas Sachau <tommy>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal Keywords: InVCS, REGRESSION
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 181949    
Attachments: only drop privileges when FEATURES=userpriv is enabled

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.