Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94132 - Emerge does not consider SLOTs when unmerging system packages (Python)
Summary: Emerge does not consider SLOTs when unmerging system packages (Python)
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 94131 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-26 19:04 UTC by Holly Bostick
Modified: 2005-09-14 04:28 UTC (History)
0 users

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


Attachments
no countdown when --ask is specified (emerge-ask-unmerge.patch,532 bytes, patch)
2005-05-26 19:55 UTC, Alec Warner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holly Bostick 2005-05-26 19:04:43 UTC
I have two versions of Python installed; 2.3.5 and 2.4.1. They are, of course,
in two different slots. However, it turned out that I didn't need 2.4.1 after
all, so I wanted to uninstall it, but was extremely concerned that 2.3.5 might
be damaged or removed as well, since Python is such a critical package.

When I attempted to unmerge, the result was as follows:

mutable root # emerge -Cav =dev-lang/python-2.4.1
________________________________________________________________________________

cfg-update 1.7.1 : Building checksum index... (takes a few seconds)  done!
________________________________________________________________________________


>>> These are the packages that I would unmerge:


!!! Trying to unmerge package(s) in system profile. 'dev-lang/python'
!!! This could be damaging to your system.

However, on completion of the operation I had requested, the result should have
been no effect on Python, or my system, as I was unmerging a SLOTted version of
the package, leaving the original system package undisturbed-- especially since
Portage had already told me when I installed Python 2.4.1 that 2.3.5 was
remaining installed "for compatibility purposes".

Portage should recognize SLOTs for system packages, and not scare the heck out
of me if I attempt to uninstall a redundant and unneeded SLOTted version of a
package like Python.

Reproducible: Always
Steps to Reproduce:
1. Install a second, SLOTted version of a system package such as Python.
2. Attempt to unmerge it using --ask


Actual Results:  
Portage displayed a frightening warning that I could wreck my system.

Expected Results:  
Displayed a reassurance that my original SLOT would remain undisturbed and my
system would therefore not be broken by unmerging the additional SLOTted version.

Portage 2.0.51.19 (default-linux/x86, gcc-3.4.3-20050110, glibc-2.3.5-r0,
2.6.11-gentoo-r8 i686)
=================================================================
System uname: 2.6.11-gentoo-r8 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5,dev-lang/python-2.4.1 [2.4.1 (#1, May
25 2005, 20:52:56)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5, 2.4.1
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7, 2.14.90.0.8-r1
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
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 /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms
strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="nl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-gentopia"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acpi alsa arts audiofile avi bash-completion berkdb
bitmap-fonts bonobo caps cddb cdr crypt cups curl dga directfb divx4linux dv dvd
emboss encode esd fbcon flac foomaticdb fortran gdbm ggi gif gimpprint glut
gnome gnutils gpm gstreamer gtk gtk2 gtkhtml guile hal imagemagick imlib ipv6
java jikes jpeg kde kdeenablefinal kdexdeltas lcms ldap libcaca libg++ libwww
mad maildir mikmod mmx mng motif mozilla mp3 mpeg mpi nas ncurses nfs nls nptl
offensive ogg oggvorbis opengl oss pdflib perl pic png povray python qt
quicktime readline samba sdl slang sndfile socks5 speex spell sse ssl svg svga
symlink tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts
unicode v4l vorbis wmf xine xml xml2 xmms xprint xv xvid yv12 zlib linguas_nl
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 SpanKY gentoo-dev 2005-05-26 19:32:32 UTC
*** Bug 94131 has been marked as a duplicate of this bug. ***
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-05-26 19:55:12 UTC
Created attachment 59915 [details, diff]
no countdown when --ask is specified

Dammit vapier ;)
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-05-28 00:55:24 UTC
There appears to be code supporting slots already. I'll confirm myself as 
well, but if you haven't unmerged python-2.4 already, can you give the output 
of `emerge -Cp =python-2.4.1" please? 
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-05-28 03:44:20 UTC
Got python-2.4.1 installed and reproduced it. The check was in the wrong place 
for the slot checks to actually do anything. 
Comment 5 Holly Bostick 2005-05-28 05:00:36 UTC
For completeness' sake, here's the requested output:

# emerge -Cp =python-2.4.1
________________________________________________________________________________

cfg-update 1.7.1 : Building checksum index... (takes a few seconds)  done!
________________________________________________________________________________


>>> These are the packages that I would unmerge:


!!! Trying to unmerge package(s) in system profile. 'dev-lang/python'
!!! This could be damaging to your system.


 dev-lang/python
    selected: 2.4.1
   protected: none
     omitted: 2.3.5

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 05:47:34 UTC
Fixed on or before 2.0.51.22-r1 
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 06:58:24 UTC
Looking through the batch of bugs, I'm not sure that some of these are 
actually fixed in stable. Others, the requirements have possibly changed after 
the initial fix was committed. 
 
If you think this bug has been closed incorrectly, please reopen or ask that 
it be reopened. 
Comment 8 Nathan West 2005-09-14 03:55:01 UTC
> If you think this bug has been closed incorrectly, please reopen or ask that 
> it be reopened. 

Could I please have this bug reopened.  I am seeing this behaviour after emerging 
2.0.51.22-r2  
See http://forums.gentoo.org/viewtopic-p-2723836.html#2723836
Comment 9 Jason Stubbs (RETIRED) gentoo-dev 2005-09-14 04:28:59 UTC
This is by intention. Actually, when I just modified the code I didn't see 
anything to prevent slotted packages from displaying a warning. However, 
slotted packages can be critical. Take gcc as example where the stdlibs of 
both may have packages linked to them.