Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313673 - dev-libs/libmba: fails with forced --as-needed
Summary: dev-libs/libmba: 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: Markus Ullmann (RETIRED)
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2010-04-07 12:18 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-06-20 18:53 UTC (History)
2 users (show)

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


Attachments
Build log (libmba-0.9.1:20100407-121533.log,8.84 KB, text/plain)
2010-04-07 12:18 UTC, Diego Elio Pettenò (RETIRED)
Details
updating ebuild (libmba-0.9.1.diff,1.52 KB, patch)
2010-04-07 16:43 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff
fixing QA issues (libmba-0.9.1-qa.patch,2.76 KB, patch)
2010-04-07 16:44 UTC, Kacper Kowalik (Xarthisius) (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 2010-04-07 12:18:15 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

P.S.: the shared library does not get linked to libutil leaving undefined symbols around; this in turn causes tcpsound to fail as per bug #313661.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-04-07 12:18:36 UTC
Created attachment 226875 [details]
Build log
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-04-07 16:43:17 UTC
Created attachment 226895 [details, diff]
updating ebuild

Since I messed with Makefile, I've addressed multiples issue that were solved by "ebuild tricks". In the process whole ebuild underwent significant simplification.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-04-07 16:44:01 UTC
Created attachment 226897 [details, diff]
fixing QA issues

Addresing multiple QA issues:
 - fixing CFLAGS, LDFLAGS, CC
 - fixing parallel build
 - fixing as-needed issues
 - making static libs optional
 - introducing make DESTDIR compatibility
 - removing Makefile.PLATFORM bits, as they violate sandbox
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-06-20 18:52:56 UTC
+*libmba-0.9.1-r1 (20 Jun 2010)
+
+  20 Jun 2010; Kacper Kowalik <xarthisius@gentoo.org>
+  +libmba-0.9.1-r1.ebuild, +files/libmba-0.9.1-qa.patch:
+  Fixing multiple QA issues and --as-needed failure wrt bug 313673. Thanks
+  Diego for reporting.
+