updating to linux-2.4.24-grsec-1.9.13-r1 removes old sources under /usr/src/linux-2.4.24-grsec-1.9.13 but the link /usr/src/linux does not point after emerge to the new directory linux-2.4.24-grsec-1.9.13-r1, instead it points to the old directory linux-2.4.24-grsec-1.9.13 Reproducible: Always Steps to Reproduce: 1.emerge -u grsec-sources 2. 3. Expected Results: either set the link to the new dir or do not remove the old dir # emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.24-grsec-1.9.13-r1) ================================================================= System uname: 2.4.24-grsec-1.9.13-r1 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.linux.no/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X apache2 apm arts avi berkdb crypt cups encode esd foomaticdb gd gdbm gif gpm gtk2 imlib innodb java jbig jpeg kde lcms libg++ libwww linguas_de mad mbox mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline sdl slang slp snmp spell ssl svga tcltk tcpd tiff truetype usb wmf x86 xml2 xv zlib"
portage will never touch /usr/src/linux if it still points to a directory that exists
but portage will ever try to fully remove the directory where the link /usr/src/linux points to ?
no, it wont be removed by portage because it has object files in it thus it isnt empty portage is a tool to make your life easier, it's not going to hold your hand for everything ... plus, trying to do too much can easily result in unwanted behavior