Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131116 - portage 2.1_pre9-r4 fails to emerge jad-bin
Summary: portage 2.1_pre9-r4 fails to emerge jad-bin
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-04-24 09:48 UTC by Joël
Modified: 2006-04-29 08:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
prevent the KeyError (vartree.patch,1.29 KB, patch)
2006-04-24 14:03 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joël 2006-04-24 09:48:30 UTC
Latest portage (sys-apps/portage-2.1_pre9-r4) fails to emerge dev-java/jad-bin-1.5.8e:

>>> Emerging (1 of 1) dev-java/jad-bin-1.5.8e to /
>>> checking ebuild checksums
>>> checking auxfile checksums
>>> checking miscfile checksums
>>> checking distfiles checksums
>>> Unpacking source...
>>> Unpacking jadls158.zip to /var/tmp/portage/jad-bin-1.5.8e/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/jad-bin-1.5.8e/work ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-java/jad-bin-1.5.8e

>>> Install jad-bin-1.5.8e into /var/tmp/portage/jad-bin-1.5.8e/image/ category dev-java
>>> Completed installing jad-bin-1.5.8e into /var/tmp/portage/jad-bin-1.5.8e/image/

man:
strip: i686-pc-linux-gnu-strip --strip-unneeded
   /opt/bin/jad
>>> Merging dev-java/jad-bin-1.5.8e to /
--- /opt/
--- /opt/bin/
>>> /opt/bin/jad
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/jad-bin-1.5.8e/
>>> /usr/share/doc/jad-bin-1.5.8e/Readme.txt.gz
>>> Safely unmerging already-installed instance...
!!! aux_get(): ebuild path for 'dev-java/jad-1.5.8e' not specified:
!!!            None
!!! aux_get(): ebuild path for 'dev-java/jad-1.5.8e' not specified:
!!!            None
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3384, in ?
    mydepgraph.merge(pkglist)
  File "/usr/bin/emerge", line 2022, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree")
  File "/usr/lib/portage/pym/portage.py", line 2715, in doebuild
    return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["PORTAGE_BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"],mytree=tree)
  File "/usr/lib/portage/pym/portage.py", line 2892, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/portage/pym/portage.py", line 6231, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 5884, in treewalk
    self.unmerge(oldcontents,trimworld=0)
  File "/usr/lib/portage/pym/portage.py", line 5527, in unmerge
    a=doebuild(myebuildpath,"prerm",self.myroot,self.settings,cleanup=cleanup,use_cache=0,tree=self.treetype)
  File "/usr/lib/portage/pym/portage.py", line 2520, in doebuild
    mystatus = doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, tree)
  File "/usr/lib/portage/pym/portage.py", line 2278, in doebuild_environment
    eapi = db[root][tree].dbapi.aux_get(mycpv, ["EAPI"])[0]
  File "/usr/lib/portage/pym/portage.py", line 4598, in aux_get
    raise KeyError, "'%(cpv)s' at %(path)s" % {"cpv":mycpv,"path":myebuild}
KeyError: "'dev-java/jad-1.5.8e' at None"
Comment 1 Zac Medico gentoo-dev 2006-04-24 14:03:48 UTC
Created attachment 85381 [details, diff]
prevent the KeyError

Please test this patch.  If you save it as /tmp/vartree.patch then you can apply it as follows:

cd /usr/lib/portage
patch -p0 < /tmp/vartree.patch

After that the error should no longer occur.
Comment 2 Zac Medico gentoo-dev 2006-04-24 14:05:09 UTC
This is in svn r3214.
Comment 3 Joël 2006-04-24 14:47:20 UTC
I applied the patch, then jad-bin emerged fine.

Then I reversed the patch, and jad-bin still emerges fine ! I don't get it ;-)
Comment 4 Zac Medico gentoo-dev 2006-04-24 15:09:07 UTC
(In reply to comment #3)
> Then I reversed the patch, and jad-bin still emerges fine ! I don't get it ;-)

The error only occurs during the unmerge of a package that doesn't have a match in the portage tree.
Comment 5 Joël 2006-04-24 16:04:27 UTC
Ah, I see. Great then - and thanks for the patch ! ;-)
Comment 6 Zac Medico gentoo-dev 2006-04-29 08:28:59 UTC
Released in 2.1_pre10.