From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OT2rJ-000395-6V for garchives@archives.gentoo.org; Mon, 28 Jun 2010 01:10:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BDF04E0F15; Mon, 28 Jun 2010 01:09:56 +0000 (UTC) Received: from mail-iw0-f181.google.com (mail-iw0-f181.google.com [209.85.214.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 6A490E0EFC for ; Mon, 28 Jun 2010 01:09:45 +0000 (UTC) Received: by iwn3 with SMTP id 3so173261iwn.40 for ; Sun, 27 Jun 2010 18:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=aGEB26NNZFQ9+DteYBBkS5tVD2c1L6td2BXVJ8epxDs=; b=qGc2V4M1IeqVShTb+777JqA9bfKcefl7876aOaTzKnG7ibl0dxrzvBUbehlvwxF7Yp Kv443Q72slvPMiKnPKdyR92eCLZvGBnY9md+6n1ZvDSQXMiBVDM3dGJZZab0Ewjy+pWJ dbF1/Newah6rqEIo78vbe0fqNp3xa6Vm0QCbQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=MLpZPLIDv66MwA9lV5ujUpWrxQ8HAKMSCBv4fr9DDIYQDhLkQUhYe/xJgITGteS6HU jqHPxYiyfdKJ/0IfTHGhzxSPp8XmDa0Bzyjcop5EjoJCJG/gcueVK3Zh2U5dazzd/nUv vJYSPxKN40Q0JYdepCGRx/6wdYNzzqdZZpwsw= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.231.124.73 with SMTP id t9mr4540886ibr.170.1277687384812; Sun, 27 Jun 2010 18:09:44 -0700 (PDT) Sender: nirbheek.chauhan@gmail.com Received: by 10.231.150.68 with HTTP; Sun, 27 Jun 2010 18:09:44 -0700 (PDT) Date: Mon, 28 Jun 2010 06:39:44 +0530 X-Google-Sender-Auth: uMVAv9utjG_PFc6-kn2B81ix_lE Message-ID: Subject: [gentoo-dev] Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults From: Nirbheek Chauhan To: Gentoo Dev Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 711845e3-7cc9-4072-8e0c-c8a63ec15287 X-Archives-Hash: 4d877108b67a4161eeaa5722aee7a297 Hello everyone, I'm sure at least half of you are thinking "Oh no, not this again...", and I agree. However, I'm /also/ thinking "Why the heck haven't we done this yet?" We've been discussing this since 2008, and probably waaay before that too. The entire discussion about whether we should do this or not has already passed, there is NO NEED to have that again. This email is about discussion on what all is *left* before we can do $SUBJECT. What prompted this email? libpng-1.4 and many other upgrades that have left gentoo systems very very broken. We have to resort to random scripts to fix breakage, which reflects very badly on us. Even worse, a lot of users just give up and reinstall their system, or don't upgrade, or just move away from Gentoo. I understand that these kind of breakages are inevitable, but with as-needed, we can reduce their effect *drastically*. Instead of having to rebuild almost their entire system, the user would only need to rebuild packages that directly link(ed) to libpng. I honestly think that we cannot afford to expose our users to any more such upgrades without as-needed in the default linux profile. There's a tracker bug for this, and the problems still remaining are: http://bugs.gentoo.org/showdependencytree.cgi?id=129413&hide_resolved=1 *Most* of the problems listed there are forced-as-needed problems, which need to be fixed no doubt, but should NOT block addition of --as-needed to LDFLAGS in make.defaults which will not trigger those build failures. What needs to be done now is for someone with lots of CPU power to grab the list of packages[1], and build them one-by-one (all versions), adding to a new list all the ebuilds that fail. How to test: LDFLAGS="-Wl,--as-needed" emerge -v1 $atom Once we have the list that fails with normal as-needed, we can fix them, get the fix upstreamed (if possible), and switch the flag on. This action should probably be accompanied by a news item informing users about the change, and encouraging them to report the (rare) bug which might hit them. Let's try to make Gentoo less frustrating for our users. 1. http://dev.gentoo.org/~nirbheek/files/as-needed-failures.list -- ~Nirbheek Chauhan Gentoo GNOME+Mozilla Team