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

Bug 571328

Summary: dev-libs/Ice-3.5.1 automagically uses system libraries incorrectly
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: Current packagesAssignee: Robert Förster <Dessa>
Status: UNCONFIRMED ---    
Severity: normal CC: cpp+disabled, kripton
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log

Description Martin von Gagern 2016-01-09 00:19:27 UTC
Created attachment 422344 [details]
build log

I've been upgrading my gcc from 4.9.3 to 5.3.0. While rebuilding all affected packages, I got a build failure from Ice. Looking at the attached log, it seems as though the package currently being built were already linking against files installed previously.

I could resolve the issue for me personally using
emerge -C Ice; emerge -1 --nodeps Ice
but I shouldn't have to do such things.
Comment 1 Rafał Mużyło 2017-12-23 11:27:49 UTC
...
Ouch
...

I mean, the way I understand the build system, using 'embedded_runpath_prefix=""' would fix it for the common cases, but would kill prefix support.
Bit of short sight of upstream part. Probably needs '-Wl,-rpath-link,' sprinkled across the build system to fix properly.

On the other hand, though, it might just be ebuild isn't using the current build system correctly - it seems 'prefix' isn't meant to be used as anything but the *final* location...needs more reading into.
Comment 2 Rafał Mużyło 2017-12-23 11:52:50 UTC
...and upon further reading, the build system seems to support DESTDIR solution.

So, 'prefix=${EPREFIX}/usr DESTDIR=${D}', it seems.
Comment 3 Rafał Mużyło 2017-12-23 11:55:47 UTC
...no quite sure if it won't still be broken in the upgrade case on prefix, but in the standard cases, this seems the cleanest.