Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379591 - media-gfx/xsvg fails because of underlinking
Summary: media-gfx/xsvg fails because of underlinking
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2011-08-17 17:11 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2016-10-01 07:28 UTC (History)
2 users (show)

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


Attachments
Build log (xsvg-0.2.1:20110817-164902.log,9.47 KB, text/plain)
2011-08-17 17:11 UTC, Diego Elio Pettenò (RETIRED)
Details
xsvg-0.2.1-build.patch (xsvg-0.2.1-build.patch,199 bytes, patch)
2011-12-15 14:51 UTC, Michael Palimaka (kensington)
Details | Diff
xsvg-0.2.1-ebuild.patch (xsvg-0.2.1-ebuild.patch,853 bytes, patch)
2011-12-15 14:54 UTC, Michael Palimaka (kensington)
Details | Diff
working patch (media-gfx_xsvg_ebuild.patch,1.65 KB, patch)
2015-09-19 06:25 UTC, David Haller
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 2011-08-17 17:11:18 UTC
Created attachment 283671 [details]
Build log

Hello there!

You're getting this bug because the package in Summary failed to build in my tinderbox using the gold link editor from binutils. Before closing the bug as INVALID let me explain why this is still important!

The gold link editor does not support underlinking of shared objects, which is something I have described in my blog post:

http://blog.flameeyes.eu/2010/11/26/it-s-not-all-gold-that-shines-why-underlinking-is-a-bad-thing

Even the basic link editor (ld.bfd) has an option to support this but it is a heck to enable and get passed, so linking with gold is simply quicker.

Fixing underlinking provides optimized --as-needed builds (because the "softer" version no longer need to recover libraries that are underlinked), so it is a Good Thing To Do.

Thank you very much for the attention!
Comment 1 Michael Palimaka (kensington) gentoo-dev 2011-12-15 14:51:00 UTC
Created attachment 295931 [details, diff]
xsvg-0.2.1-build.patch

Updated asneeded patch to include required libs to solve underlinking.
Comment 2 Michael Palimaka (kensington) gentoo-dev 2011-12-15 14:54:33 UTC
Created attachment 295933 [details, diff]
xsvg-0.2.1-ebuild.patch

Updated ebuild bumping EAPI and fixing deps: xsvg links against libX11 and libXrender, and uses headers from libXcursor and xproto.
Comment 3 Nico Baggus 2014-05-15 23:51:47 UTC
this one still fails to build unless

LDFLAGS="-lXrender -lX11" emerge -1 xsvg \

is used
Comment 4 David Haller 2015-09-19 06:25:13 UTC
Created attachment 412230 [details, diff]
working patch

I could build it cleanly with this patch.
Comment 5 Pacho Ramos gentoo-dev 2016-10-01 07:28:17 UTC
removed