$ emerge -Cv vanilla-sources <snip> --- !empty dir /usr/src --- !empty dir /usr !!! Invalid db entry: /var/db/pkg/sys-kernel/vanilla-sources-2.4.22.portage_lockfile --- Leaving virtual 'sys-kernel/vanilla-sources' from 'virtual/linux-sources' $ grep vanilla /var/cache/edb/virtuals virtual/linux-sources sys-kernel/gentoo-test-sources sys-kernel/vanilla-sources Problems: (1) Error about invalid db entry. (2) Removing kernel does not remove kernel from virtuals Perhaps this is done deliberately. If so, please tell me why. $ emerge info Portage 2.0.49-r13 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.6.0-test7) ================================================================= System uname: 2.6.0-test7 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.4.3.10p1 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs notitles buildpkg" GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.linux.no/ http://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linux/gentoo http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://www.fhh.opensource-mirror.de/gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.caliu.info/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 oss avi encode gif jpeg libwww mad motif mpeg ncurses pdflib png quicktime truetype xml2 xmms xv zlib directfb alsa berkdb slang readline aalib svga java X sdl tcpd pam ssl perl python imlib oggvorbis gtk opengl acpi acpi4linux apache2 dvd dvdr faad fbcon gtk2 imap javascript maildir nocd nptl openal php sse tiff xml -apm -arts -crypt -cups -foomaticdb -gdbm -gpm -kde -gnome -libg++ -mikmod -nls -qt -spell"
Created attachment 20215 [details, diff] Patch for portage.py Fixed this bug, added new message and cleaned up source.
Created attachment 20216 [details, diff] Patch for portage.py modified message for removing virtual.
Included for -r17
*** Bug 1891 has been marked as a duplicate of this bug. ***
*** Bug 21603 has been marked as a duplicate of this bug. ***