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

Bug 3476

Summary: "emerge -p" is not usable by non-root
Product: Portage Development Reporter: phoen][x <fisi.tilman.klar>
Component: UnclassifiedAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: normal CC: fisi.tilman.klar
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description phoen][x 2002-06-07 07:43:22 UTC
I always wondered why you cant do "emerge -p" as user (but "emerge -s" works).
So i checked /usr/bin/emerge and hacked one line so that it works for me.
This does not mean that it has to work for every gentoo pc out there - i'm quite
a python n00b (this was my first line). Anyways, here is my modification.

Line 109 - replace the current line with:
if os.getuid()!=0 and ("--help" not in myopts) and ("--version" not in myopts)
and ("search"!=myaction) and ("--pretend" not in myopts):

Hope this is useful for you,
-phoen][x-
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-06-27 23:48:11 UTC
Emerge -p and -s will now work for root or anyone in the "wheel" group. (as of
Portage 2.0.8)