Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51055 - Seems emerge development-sources doesn't change simbolic link /usr/src/linux
Summary: Seems emerge development-sources doesn't change simbolic link /usr/src/linux
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 07:20 UTC by Slobodan D. Sredojevic
Modified: 2004-05-17 07:35 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 Slobodan D. Sredojevic 2004-05-14 07:20:59 UTC
Hi,

Had 2.6.3 kernel. Installed 2.6.6 (emerge development-sources) and saw that simbolic link - /usr/src/linux still points to linux-2.6.3. It should point to linux-2.6.6. 

I believe this code in postinst_sources() function in /usr/portage/eclass/kernel-2.eclass is wrong:

postinst_sources() {
    if [ ! -h ${ROOT}usr/src/linux ]
    then
        ln -sf ${ROOT}usr/src/linux-${KV} ${ROOT}usr/src/linux
    fi

Linking will be done only if /usr/src/linux doesn't exist (clean install). Please see man bash and -h switch:

 -h file
              True if file exists and is a symbolic link.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-05-14 09:54:59 UTC
I'm pretty sure this is intentional (and the desired behavior), but I'll let the kernel team explain it.
Comment 2 Jason Cox (RETIRED) gentoo-dev 2004-05-17 07:35:05 UTC
That is correct, we leave it untouched. Not everyone wants to use the new kernel, and it will often get mixed in with a simple emerge world. If the user wants to upgrade the kernel, we trust that they know the proper steps to do so. If it's the first kernel installed, there's no harm in making that link.