Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322667 - app-pda/ifuse: fails with forced --as-needed
Summary: app-pda/ifuse: 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 QA (vote)
Assignee: Tony Vroon (RETIRED)
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2010-06-03 18:49 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-06-06 16:50 UTC (History)
2 users (show)

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


Attachments
Build log (ifuse-1.0.0:20100603-184105.log,11.58 KB, text/plain)
2010-06-03 18:49 UTC, Diego Elio Pettenò (RETIRED)
Details
adding epatch and autotools (ifuse-1.0.0.diff,825 bytes, patch)
2010-06-06 16:07 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff
fixing as-needed issues (ifuse-1.0.0-asneeded.patch,486 bytes, patch)
2010-06-06 16:07 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
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 2010-06-03 18:49:26 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 2010-06-03 18:49:37 UTC
Created attachment 234023 [details]
Build log
Comment 2 Kevin Pyle 2010-06-05 03:18:19 UTC
The libraries are specified too early in the command line, so they are discarded as unneeded.  The object file appears last, so the linker has discarded all the libraries before it knows it needs any symbols.  The libraries need to be moved to the end of the command line.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-06-06 16:07:32 UTC
Created attachment 234319 [details, diff]
adding epatch and autotools

also fixing dependencies, using emake in favour of make, added die to dodoc
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-06-06 16:07:46 UTC
Created attachment 234321 [details, diff]
fixing as-needed issues
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2010-06-06 16:13:35 UTC
Kacper, please feel free to either take maintainership of this package & commit or drop my maintainer tag & commit. Thank you.
Comment 6 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-06-06 16:50:32 UTC
Fixed in tree:
+  06 Jun 2010; Kacper Kowalik <xarthisius@gentoo.org> ifuse-1.0.0.ebuild,
+  +files/ifuse-1.0.0-asneeded.patch:
+  Fixing build with --as-needed wrt bug 322667. Thanks Diego for the report.

@Tony: done:
+  Removing Chainsaw from metadata (bug 322667)