Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4447 - Setting $ROOT causes portage to crash
Summary: Setting $ROOT causes portage to crash
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-07-02 14:50 UTC by Martin Schlemmer (RETIRED)
Modified: 2011-10-30 22:18 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 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-02 14:50:28 UTC
Basically when you set $ROOT, and it ends in a '/', using:

# ebuild foo.ebuild merge

causes portage to traceback.  This is true for ROOT="/", ROOT="/tmp/", etc.
Setting ROOT="/tmp" does work, but causes stuff to get installed into
"/tmpusr/"

--------------traceback----------------------------------
--- !empty dir /usr/bin
--- !empty dir /usr
Traceback (most recent call last):
  File "/usr/sbin/ebuild", line 33, in ?
    a=portage.doebuild(pargs[0],x,getroot(),debug=debug)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1153, in doebuild
    return
merge(settings["CATEGORY"],settings["PF"],settings["D"],settings["BUILDDIR"]+"/build-info",myroot,myebuild=settings["EBUILD"])
  File "/usr/lib/python2.2/site-packages/portage.py", line 1374, in merge
    mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3513, in merge
    self.treewalk(mergeroot,myroot,inforoot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3269, in treewalk
    self.unmerge(oldcontents)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3148, in unmerge
    db[self.myroot]["vartree"].zap(self.cat+"/"+self.pkg)
KeyError: //
nosferatu 3.1 # 
------------------traceback---------------------------
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-07-08 20:35:24 UTC
Should be fixed in portage 2.0.10+