[Xcb] [RFC PATCHv2] New XCB socket handoff mechanism for Xlib/XCB and other libraries
Rémi Cardona
remi at gentoo.org
Sun May 4 00:42:48 PDT 2008
pcpa at mandriva.com.br a écrit :
> Quoting Mikhail Gusarov <dottedmag at dottedmag.net>:
>
>> Twas brillig at 20:48:56 01.05.2008 UTC-04 when James Cloos did gyre
>> and gimble:
>>
>> JC> A lot of other binaries on my box needed rebuilding as they directly
>> JC> referenced libxcb-xlib.so.0.
>>
>> It is bug in packaging, called 'overlinking' and usually caused by
>> installing libtool .la files. Here is one spectacular example:
>> http://lists.debian.org/debian-devel-announce/2005/11/msg00016.html
Yep, we had the same issue when expat changed ABI. Most unsuspecting
users had to rebuild 200+ packages. Users who had been using --as-needed
(described bellow) only had 20~30.
> pkgconfig files installed by default build of xorg packages seens to
> be correct by using *.private, but .la files adds dependencies,
> and, as an example, applications that don't know neither use xcb, are
> linked with xcb.
Overlinking can be "fixed" by using binutil's --as-needed flag. We've
been working on getting tree-wide support in Gentoo for this flag which
does wonders. At first, we had a lot of breakage, but now only very few
apps refuse to work correctly with it. I think Ubuntu is using it by
default now too.
Gentoo's documentation : http://www.gentoo.org/proj/en/qa/asneeded.xml
Of course, that doesn't fix the issues with libtool's .la files, but for
Xorg, you shouldn't even need to install them (except for static linking...)
Cheers,
Rémi
More information about the xorg
mailing list