Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18336 - portage says null instead of category when using emerge -C
Summary: portage says null instead of category when using emerge -C
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 22104 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-27 20:39 UTC by Matt Taylor
Modified: 2011-10-30 22:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to show the real category (unmerge-null-category.patch,473 bytes, patch)
2003-08-18 15:10 UTC, Marius Mauch (RETIRED)
Details | Diff
patch for emerge (bugs.18336.patch,2.14 KB, patch)
2003-08-19 20:49 UTC, Masatomo Nakano (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Taylor 2003-03-27 20:39:48 UTC
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"
Comment 1 Matt Taylor 2003-05-26 02:12:46 UTC
portage-2.0.48 still has this behavior.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-08-18 15:10:58 UTC
Created attachment 16292 [details, diff]
patch to show the real category

This patch should fix most cases where this error could occur, please test.
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2003-08-19 20:49:43 UTC
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.
Comment 4 Masatomo Nakano (RETIRED) gentoo-dev 2003-08-19 20:56:32 UTC
*** Bug 22104 has been marked as a duplicate of this bug. ***
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2003-08-20 14:46:38 UTC
Nakano's patch added to cvs.