Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336597 - media-sound/dvda-author: fails with forced --as-needed
Summary: media-sound/dvda-author: 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: Gentoo Sound Team
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2010-09-09 14:22 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2014-05-10 14:05 UTC (History)
1 user (show)

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


Attachments
Build log (dvda-author-10.06:20100909-132357.log,39.85 KB, text/plain)
2010-09-09 14:22 UTC, Diego Elio Pettenò (RETIRED)
Details

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-09-09 14:22:19 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-09-09 14:22:45 UTC
Created attachment 246595 [details]
Build log
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-10 12:15:50 UTC
x86_64-pc-linux-gnu-gcc [...] -Wl,--as-needed [...] -o dvda [...]
make[3]: Leaving directory '/var/tmp/portage/media-sound/dvda-author-10.06/work/dvda-author-10.06/src'

Works well for me, checking if someone else can reproduce this...
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-05-10 12:39:20 UTC
(In reply to Tom Wijsman (TomWij) from comment #2)
> x86_64-pc-linux-gnu-gcc [...] -Wl,--as-needed [...] -o dvda [...]
> make[3]: Leaving directory
> '/var/tmp/portage/media-sound/dvda-author-10.06/work/dvda-author-10.06/src'
> 
> Works well for me, checking if someone else can reproduce this...

forced asneeded is not the same thing as -Wl,--as-needed in LDFLAGS. forced asneeded means -Wl,--as-needed is added directly to the gcc specs. see Diego's blog about this.
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-10 14:05:49 UTC
+  10 May 2014; Tom Wijsman <TomWij@gentoo.org> +dvda-author-10.06-r1.ebuild:
+  [QA] Revision bump. EAPI 5. Support --as-needed specification by reordering
+  the linker command; fixes bug #336597, filed by Diego (flameeyes), with help
+  from Samuli (ssuominen).

Thank you very much for filing this.