Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338155 - media-gfx/argyllcms: fails with forced --as-needed
Summary: media-gfx/argyllcms: fails with forced --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Andreas K. Hüttel
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2010-09-20 11:32 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-09-20 20:04 UTC (History)
0 users

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


Attachments
Build log (argyllcms-1.3.0:20100919-052625.log,11.76 KB, text/plain)
2010-09-20 11:32 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-09-20 11:32:17 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details).

Please note that this bug _might_ apply to -Wl,--as-needed in LDFLAGS as well; in both cases it should be fixed. Also, if this is due to the package in question not respecting user-defined LDFLAGS, you should get to fix that too.

Check the attached build log.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-09-20 11:32:29 UTC
Created attachment 248119 [details]
Build log
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2010-09-20 17:54:34 UTC
That was due to a really strange build system interaction...
Fixed in CVS. Thanks for the report.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-09-20 18:59:14 UTC
It's not fixed. In Jamtop you need to append libraries to LINKLIBS instead of LINKFLAGS. Reopening...
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2010-09-20 20:04:07 UTC
Grr, must have tested this in a shell with the wrong compiler.

Via misuse of the Jam rules, the build system of this package _prepends_ all the shared libraries in the list of objects to be linked. No wonder it fails with forced as-needed.

Added the libs once more at the end of the list. Ugly, but it works now...