Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 22104

Summary: Portage reports which packages it is omitting from an unmerge incorrectly
Product: Portage Development Reporter: Jonathan Hitchcock <vhata-gentoo>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal CC: eradicator
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fixed

Description Jonathan Hitchcock 2003-06-02 10:37:40 UTC
If I have multiple versions of a package installed, and I unmerge several of
them, portage reports which ones are selected, protected and omitted from the
unmerge.  However, it reports which ones are omitted incorrectly, claiming that
all versions except the earliest one are being omitted from the unmerge (even
though it correctly reports that it has selected all of them for an unmerge).  I
suspect that this is just a logic error in the code that works out what to
report, fairly trivial, and should be easy to fix?

Reproducible: Always
Steps to Reproduce:
1. emerge -i sys-kernel/gentoo-sources-2.4.20-r1
sys-kernel/gentoo-sources-2.4.20-r2 sys-kernel/gentoo-sources-2.4.20-r3
sys-kernel/gentoo-sources-2.4.20-r4

2. emerge -C sys-kernel/gentoo-sources-2.4.20-r1
sys-kernel/gentoo-sources-2.4.20-r2 sys-kernel/gentoo-sources-2.4.20-r3
sys-kernel/gentoo-sources-2.4.20-r4

3. Examine the output of the 'emerge unmerge'

Actual Results:  
 sys-kernel/gentoo-sources
    selected: 2.4.20-r1 2.4.20-r2 2.4.20-r3 2.4.20-r4
   protected: none
     omitted: 2.4.20-r2 2.4.20-r3 2.4.20-r4 2.4.20-r5

Note that it claims that it is omitting the -r2, -r3 and -r4 packages, when, in
fact, it is not.
Everything works fine, it is just this reporting that appears to be broken.


Expected Results:  
The output should look something like this:

 sys-kernel/gentoo-sources
    selected: 2.4.20-r1 2.4.20-r2 2.4.20-r3 2.4.20-r4
   protected: none
     omitted: 2.4.20-r5


Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz
GENTOO_MIRRORS="http://zazu.ru.ac.za http://zion.ru.ac.za
ftp://ftp.is.co.za/linux/distributions/gentoo ftp://trumpetti.atm.tut.fi/gentoo/
ftp://gentoo.linux.no/pub/gentoo/
ftp://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /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/init.d /etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa
gdbm berkdb slang readline tetex aalib nas bonobo svga ggi tcltk java guile X
sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt motif
opengl mozilla snmp acl flash gd gtk2 i8x0 ipv6 moznocompose moznoirc moznomail
pic samba vim-with-x wmf xosd -arts -kde"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="rsync://rsync.rucus.ru.ac.za/gentoo-portage"
FEATURES="sandbox distcc ccache"
Comment 1 Jason A. Mobarak (RETIRED) gentoo-dev 2003-07-26 00:10:18 UTC
*** Bug 21503 has been marked as a duplicate of this bug. ***
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2003-08-02 22:51:29 UTC
Created attachment 15416 [details, diff]
fixed
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2003-08-19 20:56:31 UTC
A patch which I posted bugs 18336 is better.

*** This bug has been marked as a duplicate of 18336 ***