Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 101374

Summary: glibc-2.3.5-r1 Stripping nptl thread libraries
Product: Gentoo Linux Reporter: Stefan Jones (RETIRED) <cretin>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefan Jones (RETIRED) gentoo-dev 2005-08-04 12:15:05 UTC
When emerging glibc with USE="nptl -nptlonly" you get:

mv: missing file argument
Try `mv --help' for more information.
mv: missing file argument
Try `mv --help' for more information.
mv: missing file argument
Try `mv --help' for more information.
mv: missing file argument
Try `mv --help' for more information.
prepallstrip:
strip: i686-pc-linux-gnu-strip --strip-unneeded
strip: i686-pc-linux-gnu-strip --strip-unneeded


From the following snip in the ebuild:

        # Now, strip everything but the thread libs #46186, as well as the dynamic
        # linker, else we cannot set breakpoints in shared libraries.
        # Fix for ld-* by Lonnie Princehouse.
        mkdir -p ${T}/thread-backup
        for x in ${D}$(alt_libdir)/lib{pthread,thread_db}* \
                 ${D}$(alt_libdir)/ld-* ; do
                [[ -f ${x} ]] && mv -f ${x} ${T}/thread-backup/
        done
        if want_linuxthreads && want_nptl ; then
                mkdir -p ${T}/thread-backup/tls
                for x in ${D}$(alt_libdir)/tls/lib{pthread,thread_db}* ; do
                        [[ -f ${x} ]] && mv -f ${T}/thread-backup/tls
                done
        fi
        env -uRESTRICT CHOST=${CTARGET} prepallstrip

Note the [[ -f ${x} ]] && mv -f ${T}/thread-backup/tls line being very wrong (it
is missing the ${x} )

Please do the obvious easy fix... or I will!

Reproducible: Always
Steps to Reproduce:
1. start console logging
2. USE="nptl -nptlonly" emerge glibc
3. look though log, and see tls/libthread* are wrongly stripped

Actual Results:  
All tls libpthread libraries stripped

Expected Results:  
Not to have stripped the libraries as per bug #46186
( debugging threads does not work in tls enviroment )
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2005-08-04 12:36:52 UTC
Thank you for being a ass.  It should however fixed now.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-06 00:16:23 UTC
Yeah cretin, show a little amount of respect if you want any given in return. 
There's no need to be a jerk about things.
Comment 3 Stefan Jones (RETIRED) gentoo-dev 2005-08-06 07:30:41 UTC
Okey, I'm sorry. I apologise that I caused offense.
I did not mean to, though I accept I probably went overboard in the filing of
the bug.
(I was just concerned that it might not get noticed or fixed, in that I was very
wrong)