[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [gentoo-dev] Re: RFC: Should preserve-libs be enabled by default?

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta_at_gmail.com>
Date: Thu, 29 May 2008 16:35:40 +0200

2008-05-29 11:02:55 Diego 'Flameeyes' Pettenò napisał(a):
> Marius Mauch <genone_at_gentoo.org> writes:
> > Also it is not going to be a perfect solution against all runtime link
> > errors, but if enabled it should eliminate the need for revdep-rebuild
> > in most cases.
> I'm afraid that it will turn, for complex libraries like libexpat and
> users not using --as-needed, the message telling you the program cannot
> be started with subtle crashes for symbol collision.
> preserve-libs would be quite perfect if all libraries out there used
> versioned symbol, but this is far from true (and some systems Gentoo
> runs on don't even consider versioned symbol to begin with).
> Example at hand? When the libexpat transition started, the choice of
> keeling .so.0 around with .so.1 was discarded right away because:
> - library libfoo links to libexpat;
> - program bar links to libfoo;
> - user is not using --as-needed, so bar has a NEEDED against both libfoo
> and libexpat;
> - user rebuilds libfoo, but not bar; or bar and not libfoo, the result
> is the same;

In this case @preserved-rebuild set should contain both bar and libfoo,
so `emerge -1 @preserved-rebuild` would rebuild both.

Arfrever Frehtes Taifersar Arahesis

Received on 2008-05-29 16:40:16 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.