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

Bug 287073

Summary: sys-devel/libtool-2.2.6a-r00.1 fails to build on OS 10.6 with USE="test"
Product: Gentoo/Alt Reporter: Stuart Shelton <srcshelton>
Component: Mac OSXAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stuart Shelton 2009-09-30 12:42:44 UTC
With USE="test", the ebuild executes:

    if use test && ! has_version '>sys-devel/binutils-2.19.51'; then
        einfo "Disabling --as-needed, since you got older binutils and you asked"
        einfo "to run tests. With the stricter (older) --as-needed behaviour"
        einfo "you'd be seeing a test failure in test #63; this has been fixed"
        einfo "in the newer version of binutils."
        append-ldflags -Wl,--no-as-needed
    fi

... which confuses the darwin linker, causing the build to fail.

(The platform binutils is actually 'sys-devel/binutils-apple-3.2', so the inverted version test will always return true.)
Comment 1 Markus Duft (RETIRED) gentoo-dev 2009-09-30 12:58:11 UTC
huh, has_version '>sys-devel/binutils-2.19.51' matches sys-devel/binutils-apple-3.2? thats a different package (!?) is there a virtual in play?
Comment 2 Markus Duft (RETIRED) gentoo-dev 2009-09-30 12:58:49 UTC
ah ignore, my comment :) i oversaw the '!' *lol*
Comment 3 Stuart Shelton 2009-10-02 13:42:31 UTC
sys-devel/libtool-2.2.6a-r00.2 also has the same problem...
Comment 4 Fabian Groffen gentoo-dev 2009-10-05 20:52:09 UTC
as-needed cruft is now fixed, even though it hits a false positive, because it uses this new compile-check to see if as-needed works with the linker
Comment 5 Fabian Groffen gentoo-dev 2009-10-15 18:43:12 UTC
fix was autosynced, so bug should be fixed now