Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30585 - Problem with symbolic links created with coreutils install
Summary: Problem with symbolic links created with coreutils install
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-07 11:01 UTC by Jason Gibson
Modified: 2003-12-08 19:02 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 Jason Gibson 2003-10-07 11:01:27 UTC
In src_install(), the links created from /bin/?? to /usr/bin/?? are created
within /usr/bin with "ln -s ../../bin/*".  This caused a problem since my /usr
is actually a symbolic link to elsewhere.  This threw off the ../../bin
assumption.  Is there any reason /bin could not be hardcoded?

Reproducible: Always
Steps to Reproduce:
Move /bin to a nonstandard location and replace with a symbolic link.  Emerge
coreutils

Actual Results:  
Dead links in /usr/bin.  Emerge no longer worked since it referenced a broken
/usr/bin/env link.

Expected Results:  
Link to /bin instead of ../../bin
Comment 1 Jason Gibson 2003-10-07 11:03:47 UTC
Description not quite right.  My /usr is actually the dir in the nonstandard
location, link to /usr.  This is what caused the ../../bin to be incorrect.
Comment 2 Jason Gibson 2003-10-07 11:06:37 UTC
To reproduce, move /usr to nonstandard location and link to /usr.  emerge
coreutils.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-13 13:07:59 UTC
It is the standard way to do things (using relative symlinks), as it is
supposidly more 'secure' than absolute symlinks.  Have you done a:

  $ ls -l /usr/X11R6/lib/X11/

lately ?

My take on this is that it is really a non-standard setup, and complicates
things too much - rather then use bind-mounts to get what you want.

Seemant?
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-08 19:02:41 UTC
we don't support symlinking /usr and /bin to non-standard locations.  Like Az said, you're better off bind mounting.