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

Bug 220171

Summary: sys-apps/portage-2.1.4.4 and app-portage/gentoolkit-0.2.3-r1 try to access lost+found
Product: Portage Development Reporter: Florian Philipp <f_philipp>
Component: Core - External InteractionAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: minor Keywords: InVCS
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 216231    

Description Florian Philipp 2008-05-03 21:44:06 UTC
When /var/db/pkg or the portage tree lie on their own logical volumes or partitions and a lost+found-directory is created, emerge and gentoolkit's utilities (tested with glsa-check and equery) try to access that directory. This makes it impossible to use these tools with an ordinary member of the portage-group because he/she doesn't has the right to access lost+found.

Reproducible: Always

Steps to Reproduce:
To trigger it with emerge:
1. Put your portage tree on a separate ext2-filesystem and run e2fsck -f on it; or `mkdir /usr/portage/lost+found && chown root:root /usr/portage/lost+found && chmod 700 /usr/portage/lost+found`
2. `emerge -pv portage` as a user in the portage-group

Actual Results:  
These are the packages that would be merged, in order:

Calculating dependencies \Permission denied: '/srv/portage/lost+found'

Expected Results:  
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/portage-2.1.4.4  USE="-build -doc -epydoc (-selinux)" LINGUAS="-pl" 368 kB 

Total: 1 package (1 reinstall), Size of downloads: 368 kB
Comment 1 Zac Medico gentoo-dev 2008-05-06 08:42:13 UTC
This is fixed in 2.1.5_rc7.