Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55103 - catalyst cant run as root
Summary: catalyst cant run as root
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: John Davis (zhen) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-24 18:07 UTC by SpanKY
Modified: 2004-06-25 16:15 UTC (History)
0 users

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 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