Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571328 - dev-libs/Ice-3.5.1 automagically uses system libraries incorrectly
Summary: dev-libs/Ice-3.5.1 automagically uses system libraries incorrectly
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Robert Förster
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-09 00:19 UTC by Martin von Gagern
Modified: 2018-04-18 09:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (dev-libs:Ice-3.5.1:20160108-235714.log,121.03 KB, text/plain)
2016-01-09 00:19 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
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.