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"
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.
This is in svn r3214.
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 ;-)
(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.
Ah, I see. Great then - and thanks for the patch ! ;-)
Released in 2.1_pre10.