Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31935 - Portage not removing older packages
Summary: Portage not removing older packages
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-24 12:18 UTC by Narada Sage
Modified: 2005-05-17 06:08 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Narada Sage 2003-10-24 12:18:15 UTC
Portage does not remove the older versions of a package when emerging the newer version.  Later on, when you are emerging something else, portage will unmerge the older version of a package that you upgraded earlier.  Basically, emerge clean is not being run when it should and is being run at other random instances when portage is called by emerging something.  AUTOCLEAN is untouched and is set by default to "yes".  This problem has been present for the past two or three revisions of portage.

A concrete example was when I upgraded findutils by typing `emerge findutils` it did upgrade but did not remove the older version.  Then later on, when I emerged xtrlock, it emerged it and then decided to remove the older version of findutils afterwards.  This to me seems like very odd behaviour.  The expected behaviour should be to remove older versions right after the newer version has been emerged.

$ emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test8-bk4)
=================================================================
System uname: 2.6.0-test8-bk4 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs notitles buildpkg"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.linux.no/ http://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linux/gentoo http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://www.fhh.opensource-mirror.de/gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.caliu.info/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="x86 oss avi encode gif jpeg libwww mad motif mpeg ncurses oggvorbis pdflib png quicktime sdl svga truetype xml2 xmms xv zlib berkdb slang readline X tcpd pam ssl perl python imlib gtk opengl acpi acpi4linux apache2 dvd dvdr faad fbcon gtk2 imap java javascript maildir mmx nocd nptl openal php sse tiff xml -apm -arts -crypt -cups -foomaticdb -gdbm -gpm -kde -gnome -libg++ -mikmod -nls -qt -spell"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-12-23 00:30:14 UTC
This 
Comment 2 Narada Sage 2004-01-12 09:25:23 UTC
Okay.  Autocleaning is totally screwed up.  When I emerged nvidia-kernel and nvidia-glx it installed them but then removed like 6-8 other packages.  Then I typed emerge clean to see if there were any more and it removed one more package which was nvidia-kernel (portage 2.0.49-r21).  Also nvidia-kernel installed as a new package even though it was installed and if it was a different slot why did emerge clean remove the older version?
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-05-17 06:08:27 UTC
This _has_ to be fixed.