Just tried to unmerge some packages that I do not use anymore. But "emerge -C [package]" did not finish successfully. For exapmle: emerge -C torcs <---snip---> --- !empty dir /usr/share/games --- !empty dir /usr/share/doc --- !empty dir /usr/share --- !empty dir /usr/games/lib --- !empty dir /usr/games/bin --- !empty dir /usr/games --- !empty dir /usr Traceback (most recent call last): File "/usr/bin/emerge", line 2828, in ? if 1==unmerge(myaction, myfiles): File "/usr/bin/emerge", line 2188, in unmerge retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,mysettings,unmerge_action not in ["clean","prune"]) File "/usr/lib/portage/pym/portage.py", line 2828, in unmerge mylink.unmerge(trimworld=mytrimworld,cleanup=1) File "/usr/lib/portage/pym/portage.py", line 6248, in unmerge matches=db[self.myroot]["vartree"].dbapi.match(x,use_cache=0) File "/usr/lib/portage/pym/portage.py", line 4696, in match return match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache)) File "/usr/lib/portage/pym/portage.py", line 4004, in match_from_list raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep) KeyError: "Specific key requires an operator (games-sports/torcs-1.2.4) (try adding an '=')" Even if I do an 'emerge -C "=torcs-1.2.4"' or an 'emerge -C "=games-sports/torcs-1.2.4"' I get this error message. I used different versions of portage: 2.0.51.19 and 2.0.51.22-r2 When doing an 'emerge sync' and an 'emerge -u world" new packages emerge fine and the old ones are unmerged without any problems. Reproducible: Always Steps to Reproduce: 1. emerge -C [package] 2. 3. Actual Results: Traceback (most recent call last): File "/usr/bin/emerge", line 2828, in ? if 1==unmerge(myaction, myfiles): File "/usr/bin/emerge", line 2188, in unmerge retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,mysettings,unmerge_action not in ["clean","prune"]) File "/usr/lib/portage/pym/portage.py", line 2828, in unmerge mylink.unmerge(trimworld=mytrimworld,cleanup=1) File "/usr/lib/portage/pym/portage.py", line 6248, in unmerge matches=db[self.myroot]["vartree"].dbapi.match(x,use_cache=0) File "/usr/lib/portage/pym/portage.py", line 4696, in match return match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache)) File "/usr/lib/portage/pym/portage.py", line 4004, in match_from_list raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep) KeyError: "Specific key requires an operator (games-sports/torcs-1.2.4) (try adding an '=')" Expected Results: no error message, giving me the confirmation that [package] was unmerged successfully and removed from world file. This is my emerge info: Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-morph7 i686) ================================================================= System uname: 2.6.12-morph7 i686 Intel(R) Pentium(R) 4 CPU 1400MHz Gentoo Base System version 1.12.0_pre6 ccache version 2.4 [disabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.91.0.3 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -mtune=pentium4 -O3 -mmmx -msse -msse2 -pipe -ffast-math -mfpmath=sse -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -funroll-loops -fthread-jumps" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -mtune=pentium4 -O3 -mmmx -msse -msse2 -pipe -ffast-math -mfpmath=sse -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -funroll-loops -fthread-jumps" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://gentoo.inode.at/source/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="de_DE@euro" LC_ALL="de_DE@euro" LDFLAGS="-Wl,-O1 -Wl,--sort-common -s" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/gentoo-de /usr/local/overlays/bmg-main" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X aalib acpi alsa apm arts atm avi bitmap-fonts browserplugin camera cdr crypt cups curl directfb dvd eds emboss encode esd fam fbcon flac foomaticdb fortran gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java joystick jpeg kde libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg ncurses nls nvidia ogg oggvorbis oggvoris opengl oss pam pdflib perl png ppds python qt quicktime readline real scanner sdl slang spell sse sse2 ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis wmf wxwindows xine xml2 xmms xv zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET
Attach your world file, /var/lib/portage/world Betting it's got a malformed atom in there, which is odd since it doesn't store atom's with versions, just cat/pkg.
Created attachment 67397 [details] /var/lib/portage/world This is my world file from /var/lib/portage/world Beside this I found out that: emerge -C torcs --> error message emerge -C =torcs-1.2.4 --> error message emerge -C =games-sports-torcs-1.2.4 --> error message but: emerge -C games-sports/torcs-1.2.4 --> success look at the line above, there is no "=" I don't understand the error message of emerge. It suggest to add the "=" to unmerge packages. Have there been made any changes?
Alright, that's pretty fricking weird...
I can't reproduce this with 2.0.53_rc4 at all. Can you test with that version please?
OK, I just tested the version you sugggested. I tried to remove various packages, I did not see any errors, and I could not reproduce the bug. Seems to be fixed. Thanks a lot!
(In reply to comment #5) > Seems to be fixed. Thanks for testing.