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

Bug 272575

Summary: app-cdr/cdw: fails with forced --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Mr. Bones. (RETIRED) <mr_bones_>
Status: RESOLVED FIXED    
Severity: QA CC: asolokha, media-optical, xarthisius
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
First part
Second part
adding patch to ebuild
fixing as-needed issues

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-04 11:54:53 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-06-04 11:55:41 UTC
Created attachment 193497 [details]
Build log
Comment 2 Arseny Solokha 2009-09-28 02:48:18 UTC
Please review the following patchset.
Comment 3 Arseny Solokha 2009-09-28 02:49:28 UTC
Created attachment 205436 [details, diff]
First part
Comment 4 Arseny Solokha 2009-09-28 02:54:12 UTC
Created attachment 205438 [details, diff]
Second part

My emerge fails on unresolved symbols related to standard math functions, so I've added -lm to AM_LDFLAGS as well.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-09-28 08:57:58 UTC
Comment on attachment 205438 [details, diff]
Second part

The problem to begin with is that _it shouldn't be passing libraries to AM_LDFLAGS_ !
Comment 6 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2009-10-16 17:20:32 UTC
Created attachment 207336 [details, diff]
adding patch to ebuild

Just copy of http://bugs.gentoo.org/attachment.cgi?id=205436 for completeness
Comment 7 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2009-10-16 17:20:53 UTC
Created attachment 207337 [details, diff]
fixing as-needed issues
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2009-10-16 19:53:18 UTC
in portage.  thanks for the patch.