Gentoo Linux's policy is for /usr/src/linux to always point to the current running kernel's source tree, so programs such as nvidia-kernel have a common place to look for kernel source files. This makes sense, but can be annoying to keep track of when you move between different kernels (and revisions of the same kernel). srclinux-update is a small script that tries to remedy this. If you run srclinux-update at each system boot, the program tries to determine what source tree /usr/src/linux should be linked to. Ebuild below: # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Manage /usr/src/linux according to the running kernel" HOMEPAGE="http://www.finnie.org/software/srclinux-update" SRC_URI="http://www.finnie.org/software/srclinux-update/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc sparc amd64" DEPEND=">=dev-lang/perl-5" src_install() { exeinto /usr/sbin doexe srclinux-update exeinto /etc/init.d newexe gentoo.init srclinux-update dodoc README } Reproducible: Always Steps to Reproduce:
This is being taken care of with the kernel-2 eclass now. The symlink still needs to be recreated, but the ebuilds which provide modules for the kernel no longer rely on the /usr/src/linux symlink. I'm guessing it's safe to assume that interest in this has never caught on. If you have no objections, I'd like to close this bug.
Four months old. No updates. Closing.