Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4121 - emerge -s as a user b0rked in 2.0.5
Summary: emerge -s as a user b0rked in 2.0.5
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-25 00:41 UTC by Seemant Kulleen (RETIRED)
Modified: 2011-10-30 22:19 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 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-25 00:41:54 UTC
[ Results for search key : qt ]
[ Applications found : 10 ]
 
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1171, in ?
    searchinstance.output()
  File "/usr/bin/emerge", line 148, in output
    full_package = string.strip(self.treecache.dep_bestmatch(match))
  File "/usr/lib/python2.2/site-packages/portage.py", line 2260, in dep_bestmatch
    mymatch=best(gvisible(visible(match(mydep,self.dbapi))))
  File "/usr/lib/python2.2/site-packages/portage.py", line 2222, in gvisible
    myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])
  File "/usr/lib/python2.2/site-packages/portage.py", line 2545, in aux_get
    doebuild(myebuild,"depend","/")
  File "/usr/lib/python2.2/site-packages/portage.py", line 1044, in doebuild
    os.makedirs(settings["BUILDDIR"])
  File "/usr/lib/python2.2/os.py", line 203, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/tmp/portage/qtsvc-0.1-r1'
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2002-06-25 03:46:06 UTC
Ok... I have the fix for part of this issue...
(There are a couple other changes in my
mods that surround/accompany this issue)

Just a missing part of a command in doebuild()
The output is ignored, It's just there to do the dep-cache.
- myso=getstatusoutput("/usr/sbin/ebuild.sh depend ")
+ getstatusoutput("/usr/sbin/ebuild.sh depend "+settings["EBUILD"])

Another note... because of the requirement of the dep-caching,
regular users cannot do 'emerge -s blah' commands unless root has
done them first. The message below is due to that issue specifcally.

--------
chgrp -R users /var/edb/cache
chmod -R g+rws users /var/edb/cache
--------
is an option... But is there any potential for security issues
with this? Besides corrupting and mis-representing the cache,
what can users do? Also... Could root just delete non-root
caches and recreate them itself? This is really only an issue
of convenience, but I believe the patch above is quite important.
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2002-06-25 03:49:57 UTC
"The message below" is actually above... I was refering to the original comment.
Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2002-06-25 15:44:23 UTC
OK, I have a fix for this.  The user needs to be in the wheel group to do emerge
search.  This is a bit of a bummer.  The good news is that any user in the wheel
group can now do emerge --pretends :)  I personally like this solution.  You'll
have this fix in Portage 2.0.6.