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

Bug 248397

Summary: sys-apps/usb_modeswitch: fails with forced --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Wolfram Schlich (RETIRED) <wschlich>
Status: RESOLVED FIXED    
Severity: normal    
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
Patch to usb_modeswitch-0.9.4.ebuild to fix link ordering

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-23 16:13:51 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).

Check the attached build log.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-23 16:14:12 UTC
Created attachment 173002 [details]
Build log
Comment 2 Kevin Pyle 2009-02-13 05:23:03 UTC
Created attachment 181834 [details, diff]
Patch to usb_modeswitch-0.9.4.ebuild to fix link ordering

This package calls the compiler directly from the ebuild, so the fix is to patch the ebuild to move the library to appear after the source file.  While changing it, $CPPFLAGS are added to the call, for consistency with the LINK.c macro that GNU make uses for the implicit rule "%: %.c".
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-02-23 09:43:12 UTC
Thanks for the patch, fixed now.