Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366487 - /lib symlink disappears using no-multilib profile
Summary: /lib symlink disappears using no-multilib profile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-08 17:32 UTC by Andrew Brouwers
Modified: 2011-05-16 15:36 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 Andrew Brouwers 2011-05-08 17:32:06 UTC
I just installed a new amd64 instance, and chose the no-multilib profile.  I updated world, and chose to add a few toolchain components to package.keywords (gcc-4.5, glibc-2.13).  The update went fine, and the system works nicely.

However, after trying to select the new gcc, I spotted a nice error message:

 * source /etc/profile

 * Switching native-compiler to x86_64-pc-linux-gnu-4.5.2 ...>>> Regenerating /etc/ld.so.cache...
 [ ok ]
 * Running 'fix_libtool_files.sh 4.4.5'
 * fix_libtool_files.sh: /lib/rcscripts/awk/fixlafiles.awk does not exist!

This seemed a little strange, so I checked, and sure enough:

thinkpad ~ $ ls -dl /lib/
drwxr-xr-x 2 root root 4096 May  8 13:16 /lib/

The only thing showing up in /lib is 'cpp' . 

While there is probably a small bug in gcc-config expecting the symlink to be present, according to the variables, the symlink should have never disappeared in the first place:

thinkpad ~ $ portageq envvar -v SYMLINK_LIB LIBDIR_x86 LIBDIR_amd64
SYMLINK_LIB='yes'
LIBDIR_x86='lib32'
LIBDIR_amd64='lib64'

So, I'm not sure exactly where the bug lies - perhaps in the no-multilib profile?

Reproducible: Always
Comment 1 Andrew Brouwers 2011-05-08 17:34:26 UTC
Sorry, I just spotted an error - the missing /lib/rcscripts/awk/fixlafiles.awk actually came about when I was removing the old gcc (4.4.5), not during the initial switch with gcc-config.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-12 18:34:37 UTC
(In reply to comment #0)
> thinkpad ~ $ ls -dl /lib/
> drwxr-xr-x 2 root root 4096 May  8 13:16 /lib/

ls(1) is highly unreliable. :)

wieneke ~ # ls -ld /lib/ /lib
lrwxrwxrwx  1 root root    5 May 11 06:56 /lib -> lib64
drwxr-xr-x 10 root root 4096 May 12 19:30 /lib/

Note that it lists the output in a specific order instead of in the order of the command line arguments, which is of minor importance. However, the output of `ls -d' varies depending on whether you add the trailing slash.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-12 18:37:01 UTC
1) Please post your `emerge --info' output too.
2) Tell us which stage tarball you used.
Comment 4 Andrew Brouwers 2011-05-13 02:11:38 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > thinkpad ~ $ ls -dl /lib/
> > drwxr-xr-x 2 root root 4096 May  8 13:16 /lib/
> 
> ls(1) is highly unreliable. :)
> 
> wieneke ~ # ls -ld /lib/ /lib
> lrwxrwxrwx  1 root root    5 May 11 06:56 /lib -> lib64
> drwxr-xr-x 10 root root 4096 May 12 19:30 /lib/
> 
> Note that it lists the output in a specific order instead of in the order of
> the command line arguments, which is of minor importance. However, the output
> of `ls -d' varies depending on whether you add the trailing slash.

Ah, sorry; I am pretty positive the symlink was gone, regardless of my poor coreutils skills :)  I noticed after /lib/ seems basically empty.

Regarding the profile, stage tarball, it was actually fine upon extraction, and the symlink only disappeared after a world update (I suspect rebuilding glibc) with the no-multilib profile.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-13 15:07:41 UTC
(In reply to comment #3)
> 2) Tell us which stage tarball you used.

Please? The thing has a creation date, possibly you even have the URL.
Comment 6 Andrew Brouwers 2011-05-13 15:22:16 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > 2) Tell us which stage tarball you used.
> 
> Please? The thing has a creation date, possibly you even have the URL.

Ah, sorry; sure, I posted the bug immediately (and did the update to world right after install, too), so I would say:

"stage3-amd64-20110428.tar.bz2"

just to be clear, the symlink was there after the stage extraction, and only disappeared after selecting the no-multilib profile, and updating world (again, I have a feeling glibc).
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2011-05-13 15:31:32 UTC
What is your glibc version?
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-13 15:37:15 UTC
(In reply to comment #3)
> 1) Please post your `emerge --info' output too.

Ah yes...
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2011-05-13 15:37:41 UTC
The behavior seems similar to 

http://bugs.gentoo.org/show_bug.cgi?id=358143
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-13 16:11:36 UTC
Similar, but I think that stage3 has 2.11.3 already. I know this because I used the same tarball just days ago to set up a no-multilib system myself (yay, finally I have amd64!) and didn't see this issue. Not that this information helps, I'm just thumping my chest here.
Comment 11 Markos Chandras (RETIRED) gentoo-dev 2011-05-13 16:22:35 UTC
(In reply to comment #10)
> Similar, but I think that stage3 has 2.11.3 already. I know this because I used
> the same tarball just days ago to set up a no-multilib system myself (yay,
> finally I have amd64!) and didn't see this issue. Not that this information
> helps, I'm just thumping my chest here.

Well, yes but the problem was in the multilib eclass not in the glibc ebuild. But if you say that the the latest amd64 tarballs + no-multilib worked for you then it may not be related to the old bug.
Comment 12 Andrew Brouwers 2011-05-13 20:13:11 UTC
Sorry, I won't have access for an emerge --info for a few days (I'm not sure which specific piece of information will be useful, by the way?)

I also knew that the multilib profile had the problem awhile ago, which is what led me to believe that perhaps it was also broken in the no-multilib profile (but with fewer consumers, may have not been as noticed).  For glibc versions, I updated to 2.13-r2, but, as mentioned above, believe the issue is more related to the profile than the ebuild.
Comment 13 Andrew Brouwers 2011-05-16 15:36:52 UTC
I tried twice over the weekend to reproduce this, using the same make.conf, stage3 tarball, and no-multilib profile, but could not.  So, I think I will close as invalid for now - sorry for the noise (and lack of explanation!).  Thanks for the help!