Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278159 - =dev-libs/redland-bindings-1.0.10.1: "make check" fails -Wl,--as-needed
Summary: =dev-libs/redland-bindings-1.0.10.1: "make check" fails -Wl,--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: Gentoo Sound Team
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2009-07-17 14:55 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-12-19 19:11 UTC (History)
0 users

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


Attachments
Build log (redland-bindings-1.0.8.1:20090717-072058.log,43.31 KB, text/plain)
2009-07-17 14:56 UTC, Diego Elio Pettenò (RETIRED)
Details
Part of the solution. (redland-bindings-1.0.8.1-asneeded.patch,631 bytes, patch)
2009-07-17 16:15 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-17 14:55:43 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 2009-07-17 14:56:11 UTC
Created attachment 198309 [details]
Build log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-07-17 15:13:47 UTC
Fails also with LDFLAGS="-Wl,--as-needed" in the test suite; the same way.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-17 15:21:42 UTC
IMHO it's not just the make check, the Python binding seems to be just broken, lacking a link to libraptor or something.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-07-17 16:15:29 UTC
Created attachment 198330 [details, diff]
Part of the solution.

Problem with this is that then CORE.so from perl -bindings get built without LDFLAGS, so from one problem to another.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-17 16:42:17 UTC
Settings LDFLAGS to LIBS does not look right to me to be honest...
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-07-17 17:01:32 UTC
(In reply to comment #5)
> Settings LDFLAGS to LIBS does not look right to me to be honest...
> 

Makefile.am's set AM_LDFLAGS=@LIBRDF_LDFLAGS@ $(MEM_LIBS) etc., but they have $(LDFLAGS) as used separately so AFAIK it's only the name that must be bothering you here (it bothers me too a bit) but anyway, that isn't the problem with CORE.so in perl/ directory.. It's using both Makefile.am and Makefile.PL, and I couldn't get the LDFLAGS passed into the Makefile.PL which generates the Makefile, it must be something _very_ simple.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-17 17:04:15 UTC
Errrr AM_LDFLAGS should _not_ list libraries!
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2009-12-19 19:03:46 UTC
1.0.10.1 still fails, I've added a workaround to the ebuild to avoid broken python bindings being installed and a comment to the ebuild. 

Leaving open for correct resolution...
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2009-12-19 19:04:06 UTC
Comment on attachment 198330 [details, diff]
Part of the solution.

Pretty bogus.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2009-12-19 19:11:43 UTC
Nevermind. Fixed it properly.