Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22167 - ebuild.sh doesn't seem to cope well with passing ROOT=/some/dir/here to it
Summary: ebuild.sh doesn't seem to cope well with passing ROOT=/some/dir/here to it
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-03 12:04 UTC by David Bryson (RETIRED)
Modified: 2011-10-30 22:20 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 David Bryson (RETIRED) gentoo-dev 2003-06-03 12:04:22 UTC
if you specify a ROOT directory to merge packages into with ebuild on the
command line, it does not seem to be able to handle it



Reproducible: Always
Steps to Reproduce:
1.ROOT=/tmp/rootme ebuild some_ebuild.sh merge
2.
3.

Actual Results:  
the last bits of output from ebuild are:

>>> Merging sys-apps/man-1.5l-r4 to /tmp/rootme
Traceback (most recent call last):
  File "/usr/sbin/ebuild", line 34, in ?
    a=portage.doebuild(pargs[0],x,getroot(),debug=debug)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1712, 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 1820, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 4532, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 4199, in treewalk
    counter=db[destroot]["vartree"].dbapi.counter_tick()
KeyError: /tmp/rootme


Expected Results:  
properly merging the package
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-06-29 20:15:52 UTC
fixed in cvs