Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3476 - "emerge -p" is not usable by non-root
Summary: "emerge -p" is not usable by non-root
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-07 07:43 UTC by phoen][x
Modified: 2011-10-30 22:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)