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

Bug 902521

Summary: sys-apps/portage-3.0.45.3: some emerge commands stop working with unreadable file in package.use
Product: Portage Development Reporter: tastytea <gentoo>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description tastytea 2023-03-21 10:03:33 UTC
I made a file in /etc/portage/package.use/ unreadable to temporarily disable its effects.
`emerge -a sys-apps/portage` still works like before but `emerge -pv sys-apps/portage` exits with code 13 after printing:
> Permission denied: '/etc/portage/package.use/steam'

I think the behaviour should be consistent.
Comment 1 tastytea 2023-03-21 13:28:24 UTC
Ah, `emerge -a` did only work because it is run as root and root can read the file. 🤦

Closing this since it is consistent.