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
*** Bug 94131 has been marked as a duplicate of this bug. ***
Created attachment 59915 [details, diff] no countdown when --ask is specified Dammit vapier ;)
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?
Got python-2.4.1 installed and reproduced it. The check was in the wrong place for the slot checks to actually do anything.
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.
Fixed on or before 2.0.51.22-r1
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.
> 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
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.