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 1MigsY-0000Ba-IT for garchives@archives.gentoo.org; Wed, 02 Sep 2009 03:51:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C45CE087E; Wed, 2 Sep 2009 09:00:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 46613E087E for ; Wed, 2 Sep 2009 09:00:09 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 4EBD16429F for ; Wed, 2 Sep 2009 09:00:09 +0000 (UTC) Received: from grobian by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1MilhI-0005Li-H1 for gentoo-commits@lists.gentoo.org; Wed, 02 Sep 2009 09:00:08 +0000 From: "Fabian Groffen (grobian)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, grobian@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain-funcs.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: toolchain-funcs.eclass X-VCS-Directories: eclass X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen Content-Type: text/plain; charset=utf8 Message-Id: Sender: Fabian Groffen Date: Wed, 02 Sep 2009 09:00:08 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 9e323026-4b22-4b98-8234-1367558397fd X-Archives-Hash: 056bf961a86b706ae2dfb82d1ebe3932 grobian 09/09/02 09:00:08 Modified: toolchain-funcs.eclass Log: Make the lib we're going to update using install_name_tool writable if it isn't. Restore write permissions afterwards, fixes bug #283424 Revision Changes Path 1.94 eclass/toolchain-funcs.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain-f= uncs.eclass?rev=3D1.94&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain-f= uncs.eclass?rev=3D1.94&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain-f= uncs.eclass?r1=3D1.93&r2=3D1.94 Index: toolchain-funcs.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v retrieving revision 1.93 retrieving revision 1.94 diff -u -r1.93 -r1.94 --- toolchain-funcs.eclass 15 Aug 2009 15:12:56 -0000 1.93 +++ toolchain-funcs.eclass 2 Sep 2009 09:00:08 -0000 1.94 @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.93 = 2009/08/15 15:12:56 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.94 = 2009/09/02 09:00:08 grobian Exp $ =20 # @ECLASS: toolchain-funcs.eclass # @MAINTAINER: @@ -471,9 +471,14 @@ # libdir=3D/lib because that messes up libtool files. # Make sure we don't lose the specific version, so just modify the # existing install_name + if [[ ! -w "${ED}/${libdir}/${tlib}" ]] ; then + fperms u+w "${libdir}/${tlib}" # needed to write to it + local nowrite=3Dyes + fi install_name_tool \ -id "${EPREFIX}"/${libdir}/${tlib} \ - "${ED}"/${libdir}/${tlib} + "${ED}"/${libdir}/${tlib} || die "install_name_tool failed" + [[ -n ${nowrite} ]] && fperms u-w "${libdir}/${tlib}" # Now as we don't use GNU binutils and our linker doesn't # understand linker scripts, just create a symlink. pushd "${ED}/usr/${libdir}" > /dev/null