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

Bug 55103

Summary: catalyst cant run as root
Product: Gentoo Hosted Projects Reporter: SpanKY <vapier>
Component: CatalystAssignee: John Davis (zhen) (RETIRED) <zhen>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2004-06-24 18:07:38 UTC
it seems like all the things are there to support it, but at the very least, catalyst itself kills attempts:

if os.getuid()!=0:
	#non-root callers can't go any further than here. 
	print "catalyst: This script requires root privileges to operate."
	sys.exit(1)
Comment 1 SpanKY gentoo-dev 2004-06-25 15:56:53 UTC
in modules/generic_stage_target.py:
else:
    ccdir="/root/.ccache"
if not os.path.isdir(ccdir):
    raise CatalystError,"Compiler cache support can't be enabled (can't find "+ccdir+")"

yes, i know i can set $CCACHE_DIR, but it would nice if catalyst would default to $HOME/.ccache instead of /root/.ccache ... or change the message to be something like:
Compiler cache support can't be enabled (can't find "+ccdir+").  Perhaps try setting $CCACHE_DIR ?"
Comment 2 SpanKY gentoo-dev 2004-06-25 16:15:25 UTC
ok, ignore me, this whole bug is bunk

(1) you cant run `mount` as non-root
(2) permissions get heavily screwed (`tar -xpf` and no chown root:root)
(3) cant create device nodes
(4) i'm a tool, sorry for filling your e-mail box