Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 313165

Summary: net-p2p/gnunet: fails with forced --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Gentoo net-p2p team <net-p2p>
Status: RESOLVED FIXED    
Severity: QA CC: esigra, xarthisius
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/proj/en/qa/asneeded.xml
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413, 276796    
Attachments: Build log
updating ebuild
fixing as-needed issues
fixing parallel build

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-04-05 01:55:52 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.: seems like the configure.ac is totally fucked up when it comes to libraries checks.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-04-05 01:56:23 UTC
Created attachment 226601 [details]
Build log
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-04-06 15:31:19 UTC
Created attachment 226741 [details, diff]
updating ebuild

Apart from adding patches (in order of appearance):
 * sorted inherit
 * removed obsolete use flags:
   - --without-ncurses is no longer valid
   - ipv6 is no longer valid
 * AT_M4DIR="${S}/m4" is not necessary (by default -I m4)
 * econf is now called in src_configure instead of src_compile
 * removed emake -j1 as parallel issues were also fixed
 * removed dodoc on non-existent file
 * fixed doins for /etc/gnunet.conf
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-04-06 15:31:40 UTC
Created attachment 226743 [details, diff]
fixing as-needed issues
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-04-06 15:31:57 UTC
Created attachment 226745 [details, diff]
fixing parallel build
Comment 5 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-06-20 13:57:11 UTC
Fixed in tree:

+  20 Jun 2010; Kacper Kowalik <xarthisius@gentoo.org>
+  +files/0.8.1-asneeded.patch, gnunet-0.8.1.ebuild,
+  +files/0.8.1-parallel-build.patch:
+  Fixing parallel build and --as-needed issues wrt bug 313165. Thanks Diego
+  for reporting