Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248397 - sys-apps/usb_modeswitch: fails with forced --as-needed
Summary: sys-apps/usb_modeswitch: 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 normal (vote)
Assignee: Wolfram Schlich (RETIRED)
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-11-23 16:13 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-02-23 09:43 UTC (History)
0 users

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


Attachments
Build log (usb_modeswitch-0.9.4:20081123-095249.log,2.87 KB, text/plain)
2008-11-23 16:14 UTC, Diego Elio Pettenò (RETIRED)
Details
Patch to usb_modeswitch-0.9.4.ebuild to fix link ordering (usb_modeswitch.ebuild.patch,486 bytes, patch)
2009-02-13 05:23 UTC, Kevin Pyle
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 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.