Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36342 - New ebuild: sys-apps/srclinux-update
Summary: New ebuild: sys-apps/srclinux-update
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-22 20:58 UTC by Ryan Finnie
Modified: 2004-04-09 08:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Finnie 2003-12-22 20:58:47 UTC
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:
Comment 1 Jason Cox (RETIRED) gentoo-dev 2004-04-08 21:25:25 UTC
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.
Comment 2 Jason Cox (RETIRED) gentoo-dev 2004-04-09 08:04:33 UTC
Four months old. No updates. Closing.