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

Bug 280170

Summary: sys-apps/dbus-1.3.0 fails with tests enabled with --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED FIXED    
Severity: QA CC: aballier, cardoe, kanelxake, rhill, steev, tommy, zmedico
Priority: High    
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    
Attachments: Build log

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-03 12:26:29 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-08-03 12:27:24 UTC
Created attachment 200012 [details]
Build log
Comment 2 Thomas Sachau gentoo-dev 2009-08-03 17:29:26 UTC
This happens with --as-needed in LDFLAGS too, but it only happens while building on amd64, seems to build fine on x86.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-08-05 17:20:52 UTC
+  05 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> dbus-1.3.0.ebuild,
+  +files/dbus-1.3.0-asneeded.patch:
+  Fix test suite building with -Wl,--as-needed (undefined reference to
+  clock_gettime) wrt #280170.