When I do an emerge -uD world -p I get the error below. Emerge -uD system works as does emerge -u world. I have run revdep-rebuild and that didn't fix it. I have had no problems with portage until I upgraded to current version (see below). Then I had errors with emerge -S which didn't work. I upgraded because the upgrade was presented as necessary - I do not run ~x86. Calculating world dependencies File "/usr/bin/emerge", line 2170, in ? if not mydepgraph.xcreate(myaction): File "/usr/bin/emerge", line 1036, in xcreate if not self.create(myk): File "/usr/bin/emerge", line 749, in create if not self.select_dep("/",mydep["/"],myparent=mp,myuse=myuse): File "/usr/bin/emerge", line 939, in select_dep if not self.create(myk,myparent,myuse=binpkguseflags): File "/usr/bin/emerge", line 749, in create if not self.select_dep("/",mydep["/"],myparent=mp,myuse=myuse): File "/usr/bin/emerge", line 871, in select_dep myeb=portage.portdb.xmatch("bestmatch-visible",x) File "/usr/lib/portage/pym/portage.py", line 4067, in xmatch myval=best(self.xmatch("match-visible",None,mydep,mykey)) File "/usr/lib/portage/pym/portage.py", line 4078, in xmatch myval=self.match2(mydep,mykey,self.xmatch("list-visible",None,mydep,mykey)) File "/usr/lib/portage/pym/portage.py", line 4064, in xmatch myval=self.gvisible(self.visible(self.cp_list(mykey))) File "/usr/lib/portage/pym/portage.py", line 4147, in gvisible myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"]) File "/usr/lib/portage/pym/portage.py", line 3799, in aux_get if doregen or not eclass(None, mycpv, dmtime): File "/usr/lib/portage/pym/portage.py", line 3658, in eclass if (mymtime!=eclassdb["eclass"][myeclass][2][mycpv][1]) or (eclassdb["eclass "][myeclass][0]!=eclassdb["eclass"][myeclass][2][mycpv][0]): IndexError: list index out of range Portage info Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-xfs-r4) ================================================================= System uname: 2.4.20-xfs-r4 i686 AMD Athlon(TM) MP 2000+ Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-mp -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-mp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages keeptemp keepwork noclean sandbox" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X aalib acl alsa apm avi berkdb cdr crypt cups doc dvd encode foomaticdb gdbm gif gpm gtk gtk2 imlib jack jack-caps jack-tmpfs java jpeg libg++ libwww mad mikmod motif mpeg nas ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline scanner sdl slang spell ssl svga tcltk tcpd tetex truetype usb videos x86 xfs xinerama xml2 xmms xv zlib"
Corruption in the cache... Just do the following. We'll work a fix in to catch this for the future. rm /var/cache/edb/*pickle* /var/cache/edb/*mtime*
Thank you. That did it.
Whoops, spoke too soon. It went through calculating dependencies and performing global updates. What next? root@strider root # emerge -uD world -p These are the packages that I would merge, in order: Calculating world dependencies \Traceback (most recent call last): File "/usr/bin/emerge", line 2170, in ? if not mydepgraph.xcreate(myaction): File "/usr/bin/emerge", line 1011, in xcreate myeb=portage.portdb.xmatch("bestmatch-visible",mydep) File "/usr/lib/portage/pym/portage.py", line 4067, in xmatch myval=best(self.xmatch("match-visible",None,mydep,mykey)) File "/usr/lib/portage/pym/portage.py", line 4078, in xmatch myval=self.match2(mydep,mykey,self.xmatch("list-visible",None,mydep,mykey)) File "/usr/lib/portage/pym/portage.py", line 4064, in xmatch myval=self.gvisible(self.visible(self.cp_list(mykey))) File "/usr/lib/portage/pym/portage.py", line 4147, in gvisible myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"]) File "/usr/lib/portage/pym/portage.py", line 3761, in aux_get myebuild,in_overlay=self.findname2(mycpv) ValueError: need more than 0 values to unpack
check your PORTDIR_OVERLAY for misnamed ebuilds
Found it. It was jack-cvs-0.91.ebuild. I renamed it to jack-cvs-0.91.save and not things look like they may work. Why did emerge suddenly decide to complain? Also what is wrong with the ebuild name. I've had this since 1-December or longer?
The name looks right indeed. I just put an ebuild with the same name in my overlay and didn't get an error message, strange. Also on a quick scan I don't see a code path in findname2() that results in returning less than 2 values.
It seems to be solved. I'm closing this bug. If there is problem yet, feel free to open.