Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181613 - Dangling symlinks in gentoo stages
Summary: Dangling symlinks in gentoo stages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Stages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-11 00:56 UTC by Donald R. Gray Jr
Modified: 2008-10-07 18:15 UTC (History)
4 users (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 Donald R. Gray Jr 2007-06-11 00:56:48 UTC
symlinks the following symlinks as dangling:

dangling: /bin/zfgrep -> zgrep
dangling: /bin/zegrep -> zgrep
dangling: /bin/zcmp -> zdiff 

Reproducible: Always

Steps to Reproduce:
1. extract a stage into a dummy directory
2. ls -l bin/zfgrep bin/zegrep bin/zcmp 
lrwxrwxrwx 1 root root 5 2007-06-10 17:51 bin/zcmp -> zdiff
lrwxrwxrwx 1 root root 5 2007-06-10 17:51 bin/zegrep -> zgrep
lrwxrwxrwx 1 root root 5 2007-06-10 17:51 bin/zfgrep -> zgrep

3. # which zgrep zdiff
/usr/bin/zgrep
/usr/bin/zdiff

4. links should point to ../usr/bin/zgrep and ../usr/bin/zdiff
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2007-06-15 18:35:49 UTC
OK.  Which stages, exactly?
Comment 2 Donald R. Gray Jr 2007-06-23 07:27:52 UTC
I found them in :

stage1-x86-2007.0.tar.bz2   
stage1-x86-hardened-2.6-2007.0.tar.bz2  
stage1-amd64-2007.0.tar.bz2  
stage1-amd64-hardened-2007.0.tar.bz2

So I figured it probably affected more than just those stages.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2007-06-23 13:21:39 UTC
Thanks, that gives me a starting place to try to track down the root cause of the problem.

Danny, Andrew, Christian:  What machines did you build your release media on for 2007.0?  I'm guessing this is probably an artifact of some version change between our initial and final snapshots, causing the location to move, but I'd like to make sure it isn't catalyst.
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2007-06-23 18:26:58 UTC
The x86 build was done on my home machine. The amd64 build was done on poseidon (afaik). I believe the hardened builds were done on miranda.

Also, I don't think it can be a snapshot change as I did a cacheless rebuild of all the (non-hardened) x86 media near the end of the release cycle.

It may be a problem with the ebuild in whatever version is in the release. In my local version of gzip (1.3.12), those symlinks have been replaced with wrapper scripts that call the other utility.
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2008-07-13 01:06:52 UTC
Is this still an issue with 2008.0?
Comment 6 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-10-07 13:18:16 UTC
on the i686 stage 3 (stage3-i686-2008.0.tar.bz2 md5:2076...d435) i found this:

dangling: /usr/i486-pc-linux-gnu/lib/libopcodes.la -> /usr/lib/binutils/i486-pc-linux-gnu/2.18/libopcodes.la
dangling: /usr/i486-pc-linux-gnu/lib/libopcodes.so -> /usr/lib/binutils/i486-pc-linux-gnu/2.18/libopcodes.so
dangling: /usr/i486-pc-linux-gnu/lib/libopcodes-2.18.so -> /usr/lib/binutils/i486-pc-linux-gnu/2.18/libopcodes-2.18.so
dangling: /usr/i486-pc-linux-gnu/lib/ldscripts -> /usr/lib/binutils/i486-pc-linux-gnu/2.18/ldscripts
dangling: /usr/i486-pc-linux-gnu/lib/libopcodes.a -> /usr/lib/binutils/i486-pc-linux-gnu/2.18/libopcodes.a
dangling: /usr/i486-pc-linux-gnu/lib/libiberty.a -> /usr/lib/binutils/i486-pc-linux-gnu/2.18/libiberty.a
dangling: /usr/i486-pc-linux-gnu/lib/libbfd.a -> /usr/lib/binutils/i486-pc-linux-gnu/2.18/libbfd.a
dangling: /usr/i486-pc-linux-gnu/lib/libbfd-2.18.so -> /usr/lib/binutils/i486-pc-linux-gnu/2.18/libbfd-2.18.so
dangling: /usr/i486-pc-linux-gnu/lib/libbfd.la -> /usr/lib/binutils/i486-pc-linux-gnu/2.18/libbfd.la
dangling: /usr/i486-pc-linux-gnu/lib/libbfd.so -> /usr/lib/binutils/i486-pc-linux-gnu/2.18/libbfd.so
marsupilami / # ls /usr/lib/binutils/
i686-pc-linux-gnu
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2008-10-07 13:37:01 UTC
Those are probably just artifacts from the move from i486 to i686 CHOST when the i686 stages were built from the x86 stage1. Those files are probably created by gcc-config or binutils-config.

Do the files referenced by the original reporter still exist?
Comment 8 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-10-07 18:15:52 UTC
nope! i didnt check the amd64 image though - but it wasnt on x86 or i686.
thanks..