I have alot of packages that were installed before the SLOT system, so when I do updates lots of times I'm stuck with multiple -r versions still installed so I emerge -C the old ones. Just noticed this output: # emerge -pC gtk+-1.2.10-r7 >>> These are the packages that I would unmerge: null/gtk+ selected: 1.2.10-r7 protected: none omitted: none >>> Packages in red are slated for removal. >>> Packages in green will not be removed. if I do it to the just merged version I still get: # emerge -pC gtk+-1.2.10-r10 >>> These are the packages that I would unmerge: null/gtk+ selected: 1.2.10-r10 protected: none omitted: none >>> Packages in red are slated for removal. >>> Packages in green will not be removed. if I don't specify the version number it works as expected: # emerge -pC gtk+ >>> These are the packages that I would unmerge: x11-libs/gtk+ selected: 1.2.10-r10 1.2.10-r7 2.2.1 protected: none omitted: none >>> Packages in red are slated for removal. >>> Packages in green will not be removed. everything unmerges fine, its just the output thats wrong. Reproducible: Always Steps to Reproduce: 1.emerge -pC any package Actual Results: shown output Expected Results: show proper category # emerge info Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8) ================================================================= System uname: 2.4.19-gentoo-r10c i686 AMD Athlon(tm) processor GENTOO_MIRRORS="http://linux.oit.umass.edu/gentoo/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" 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" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/home/liverbugg/portage" USE="x86 oss 3dnow apm avi crypt cups jpeg libg++ mikmod mmx motif mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv berkdb bonobo cdr directfb esd gdbm gif gnome gnome-libs gpm gtk gtkhtml guile imlib libwww mozilla mysql nls oggvorbis opengl pam perl png python readline sdl slang snmp ssl svga tcltk tcpd tiff X -kde -qt -arts -java dvd encode gtk2" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache digest"
portage-2.0.48 still has this behavior.
Created attachment 16292 [details, diff] patch to show the real category This patch should fix most cases where this error could occur, please test.
Created attachment 16347 [details, diff] patch for emerge I fixed this bug. And I found another 2 bugs like this bug. 1. emerge -pC app-text Traceback (most recent call last): File "/home/masatomo/gentoo-src/nakano/emerge", line 1872, in ? if 1==unmerge(myaction, myfiles): File "/home/masatomo/gentoo-src/nakano/emerge", line 1486, in unmerge if y not in pkgmap[mykey]["omitted"] and \ (This bug happens in portage-2.0.49_pre18) 2. "omitted:" are not displayed sometimes. I also fixed this 2 bugs and cleanuped the code.
*** Bug 22104 has been marked as a duplicate of this bug. ***
Nakano's patch added to cvs.