Using: Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-test6-mm4) When I ran emerge -p acpid, I got the following Traceback: These are the packages that I would merge, in order: Calculating dependencies ...done! Traceback (most recent call last): File "/usr/bin/emerge", line 2133, in ? mydepgraph.display(mydepgraph.altlist()) File "/usr/bin/emerge", line 1103, in display elif (not "--emptytree" in myopts) and portage.db[x[1]]["vartree"].exists_specific_cat(x[2]): File "/usr/lib/python2.2/site-packages/portage.py", line 3469, in exists_specific_cat self.invalidentry(self.root+"var/db/pkg/"+a[0]+"/"+x) AttributeError: vartree instance has no attribute 'invalidentry' I believe this to be the reason for the Traceback: acpid depends on 'virtual/linux-sources' When I first did 'emerge -p acpid' and got the Traceback, I didn't have a 'virtual/linux-sources' entry in my /var/cache/edb/virtuals Consequently, when I went to 'emerge acpid' it first wanted to emerge gentoo-sources. After adding the line 'virtual/linux-sources sys-kernel/mm-sources' to /var/cache/edb/virtuals, 'emerge acpid' no longer wants to emerge gentoo-sources (as expected), AND 'emerge -p acpid' no longer causes an error. So the summary is this: 'emerge -p' will fail if the ebuild has a virtual dependency which is not mentioned in /var/cache/edb/virtuals Reproducible: Always Steps to Reproduce: 1. Remove the 'virtual/linux-sources' line from /var/cache/edb/virtuals 2. Run 'emerge -p acpid' Actual Results: Traceback Expected Results: Portage lists packages to be emerge'd Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-test6-mm4) ================================================================= System uname: 2.6.0-test6-mm4 i686 AMD Athlon(TM) XP 1800+ Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo ftp://gentoo.noved.org/ http://gentoo.noved.org/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://adelie.polymtl.ca/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline tetex aalib svga tcltk guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk motif opengl cdr 3dnow acpi clamav dga dvd emacs fbcon gtk2 imap jack mmx samba sse tiff type1 usb xvid -oss -apm -kde -directfb -arts -qt"
*** This bug has been marked as a duplicate of 31901 ***