emerge --depclean wants to remove the gentoo-sources for my old kernel [sys-kernel/gentoo-sources-3.8.13] which I want to hang on to for the time being.
Is there a way to instruct emerge not to remove them? emerge(1) Packages that are part of the world set will always be kept. They can be manually added to this set with emerge --noreplace <atom>. If I understood the instruction above, 'emerge --noreplace sys-kernel/gentoo-sources-3.8.13' should have added 'gentoo-sources' to /var/lib/portage/world_sets, which it didn't seem to do. box0 src # emerge --noreplace sys-kernel/gentoo-sources-3.8.13 !!! 'sys-kernel/gentoo-sources-3.8.13' is not a valid package atom. !!! Please check ebuild(5) for full details. box0=; ls -l `pwd`/world* -rw-r--r-- 1 root portage 920 Sep 20 20:45 /var/lib/portage/world -rw-r--r-- 1 root portage 0 Sep 20 20:45 /var/lib/portage/world_sets Or is it a matter of defining something like this: CONFIG_PROTECT_MASK="/usr/src/linux-3.8.13-gentoo" in /etc/portage/make.conf? Any pointers would be much appreciated.