Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Rémi Cardona <remi@g.o>
Subject: Re: Re: RFC: Should preserve-libs be enabled by default?
Date: Fri, 30 May 2008 14:31:48 +0200
Santiago M. Mola a écrit :
> On Fri, May 30, 2008 at 9:16 AM, Mike Auty <ikelos@g.o> wrote:
>> I've been using it for a pretty long time now (probably a couple weeks
>> after Diego first blogged about it) and don't have many problems at all
>> (now), but every once in a while a version bump or a new package will
>> just fail to compile properly and the problem leads back to as-needed.
>> I'm not sure whether ~arch users would be able to catch all the
>> as-needed bugs before they hit stable, so I couldn't say whether it
>> should be enabled by default or not.

Our experience in the gnome herd is that most --as-needed issues come up 
*very* quickly: either the build fails, or application plugins don't get 
loaded. As such, they're quite easy to catch. Fixing them can be trickier.

> --as-needed breaking legitimate code is a problem, though. I wonder if
> we have that kind of code in any application in the tree and if we
> have some way to detect it.

--as-needed breaks legitimate C++ code, I have yet to see it break plain 
C code (but I could be wrong). Ciaran posted an example code a while 
ago, either here or on his blog.

His example is valid C++ code (basically it was about implicitly loading 
.so plugins) but IMHO, it's just not a good engineering practice. Plugin 
loading should be explicit (readdir + dlopen). But that's my opinion. 
There could be a couple other odd cases but I don't remember them.

All I can say is that --as-needed *today* does much more good than harm.

Cheers

-- 
Rémi Cardona
LRI, INRIA
remi.cardona@...
remi@g.o
-- 
gentoo-dev@g.o mailing list


Replies:
Re: RFC: Should preserve-libs be enabled by default?
-- Diego 'Flameeyes' Pettenò
References:
RFC: Should preserve-libs be enabled by default?
-- Marius Mauch
Re: RFC: Should preserve-libs be enabled by default?
-- Diego 'Flameeyes' Pettenò
Re: Re: RFC: Should preserve-libs be enabled by default?
-- Marius Mauch
Re: Re: RFC: Should preserve-libs be enabled by default?
-- Peter Volkov
Re: Re: RFC: Should preserve-libs be enabled by default?
-- Mike Auty
Re: Re: RFC: Should preserve-libs be enabled by default?
-- Santiago M. Mola
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?)
Next by thread:
Re: RFC: Should preserve-libs be enabled by default?
Previous by date:
Re: RFC: Should preserve-libs be enabled by default?
Next by date:
Re: RFC: Should preserve-libs be enabled by default?


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.