Daniel Frey <djqf...@gmail.com> writes: > On 04/29/2017 06:23 PM, lee wrote: >> Daniel Frey <djqf...@gmail.com> writes: >>> Do a --depclean and that will resolve itself. >> >> Last time I tried that, it wanted to remove the source of the kernel I'm >> using, along with other things. It would have made sense if I had >> upgraded the kernel, too, but I didn't have the time to do that yet. >> >> > > It will only remove things that it deems not needed. Usually these are > packages that have just been upgraded.
Yes, the sources wouldn't be needed if I had upgraded the kernel. Still one might expect it to figure out which kernel is in use and to not try to delete it --- that would make some sense. > For kernel sources, tell portage to not remove it: > > `emerge --noreplace sys-kernel/gentoo-sources:4.4.52` > > as an example. > > If you do that, --depclean will not remove the sources for 4.4.52 (as an > example.) Thanks, I couldn't find an option like this. It worked --- now some time when I do upgrade the kernel, I somehow need to remove these sources from the world list, I guess ... -- "Didn't work" is an error.