Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278159 - =dev-libs/redland-bindings- "make check" fails -Wl,--as-needed
Summary: =dev-libs/redland-bindings- "make check" fails -Wl,--as-needed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Gentoo Sound Team
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: ---

Build log (redland-bindings-,43.31 KB, text/plain)
2009-07-17 14:56 UTC, Diego Elio Pettenò (RETIRED)
Part of the solution. (redland-bindings-,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 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.

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 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...
>'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 in perl/ directory.. It's using both 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 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.