I really wonder what is happening...
Code: Select all
ls -al /usr/src/
total 28
drwxr-xr-x 7 root root 4096 Mar 9 14:23 .
drwxr-xr-x 11 root root 4096 Dec 18 2024 ..
drwxr-xr-x 4 root root 4096 Mar 9 14:25 debug
lrwxrwxrwx 1 root root 19 Feb 20 00:32 linux -> linux-6.17.7-gentoo
drwxr-xr-x 27 root root 4096 Feb 20 00:41 linux-6.1.163-gentoo
drwxr-xr-x 27 root root 4096 Jun 30 2025 linux-6.14.4-gentoo
drwxr-xr-x 27 root root 4096 Jan 2 06:05 linux-6.15.9-gentoo
drwxr-xr-x 27 root root 4096 Mar 9 16:23 linux-6.17.7-gentooAnd now:
Code: Select all
emerge -pv --depclean =gentoo-sources-6.1.163
Calculating dependencies... done!
sys-kernel/gentoo-sources-6.1.163 pulled in by:
virtual/linux-sources-3-r8 requires sys-kernel/gentoo-sources
>>> No packages selected for removal by depclean
Packages installed: 1111
Packages in world: 128
Packages in system: 50
Required packages: 1111
Number to remove: 0I tried to reinstall virtual/linux-sources-3-r8, it didn't help.
And I can't see nothing in its ebuild to trigger this behaviour.
I have always uninstalled old sources without any issues many-many times...
I don't have installed neither installkernel nor any other of these modern things. Only a manual configuration.
EDIT
And it becomes more and more interesting...
Code: Select all
/usr/src # emerge --deselect =gentoo-sources-6.1.163
>>> Removing sys-kernel/gentoo-sources:6.1.163 from "world" favorites file...
/usr/src # emerge -pv --depclean =gentoo-sources-6.1.163
Calculating dependencies... done!
sys-kernel/gentoo-sources-6.1.163 pulled in by:
virtual/linux-sources-3-r8 requires sys-kernel/gentoo-sources
>>> No packages selected for removal by depclean
Packages installed: 1111
Packages in world: 127
Packages in system: 50
Required packages: 1111
Number to remove: 0
/usr/src # cat /var/lib/portage/world | grep sources
sys-kernel/gentoo-sources:6.14.4
sys-kernel/gentoo-sources:6.15.9
sys-kernel/gentoo-sources:6.17.7And with the slot notation (emerge -pv --depclean gentoo-sources:6.1.163) it does not work either.

