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

Bug 379591

Summary: media-gfx/xsvg fails because of underlinking
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED WONTFIX    
Severity: normal CC: kensington, mlspamcb
Priority: Highest    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372079    
Attachments: Build log
xsvg-0.2.1-build.patch
xsvg-0.2.1-ebuild.patch
working patch

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