Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79427 - kernel-2.eclass should make relative symlink
Summary: kernel-2.eclass should make relative symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 02:29 UTC by Martin von Gagern
Modified: 2005-01-25 08:29 UTC (History)
0 users

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 Martin von Gagern 2005-01-25 02:29:21 UTC
When kernel-2.eclass creates a symlink for the new kernel directory, it uses an absolute path. This makes it harder to mix chrooted and non-chrooted environments. It would be easier and shorter to simply have a relative symlink.

so change   ln -sf ${ROOT}usr/src/linux-${KV_FULL} ${ROOT}usr/src/linux
       to   ln -s linux-${KV_FULL} ${ROOT}usr/src/linux

The force is superfluous, since the old symlink is removed before, since otherwise it would be treated as a directory.


Reproducible: Always
Steps to Reproduce:
Comment 1 John Mylchreest (RETIRED) gentoo-dev 2005-01-25 08:29:31 UTC
good catch.
Changed in my local copy and will be comitted after some other changes have been tested.
Comment 2 John Mylchreest (RETIRED) gentoo-dev 2005-01-25 08:29:50 UTC
marking fixed.
please re-open if the next commit does not suit your needs.