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 1PoamS-0004Xr-Vz for garchives@archives.gentoo.org; Sun, 13 Feb 2011 12:10:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 68FB0E08C9; Sun, 13 Feb 2011 12:10:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 25F69E08C9 for ; Sun, 13 Feb 2011 12:10:14 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8BC351B4042 for ; Sun, 13 Feb 2011 12:10:13 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2145) id 2CBBA20054; Sun, 13 Feb 2011 12:10:12 +0000 (UTC) From: "Ryan Hill (dirtyepic)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, dirtyepic@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: toolchain.eclass X-VCS-Directories: eclass X-VCS-Committer: dirtyepic X-VCS-Committer-Name: Ryan Hill Content-Type: text/plain; charset=utf8 Message-Id: <20110213121012.2CBBA20054@flycatcher.gentoo.org> Date: Sun, 13 Feb 2011 12:10:12 +0000 (UTC) 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: X-Archives-Hash: 9f68d1955159defc1415ac3e7192f4a7 dirtyepic 11/02/13 12:10:12 Modified: toolchain.eclass Log: Rewrite gdb module installation and make it actually work. (bug #348128= ). Revision Changes Path 1.450 eclass/toolchain.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.e= class?rev=3D1.450&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.e= class?rev=3D1.450&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.e= class?r1=3D1.449&r2=3D1.450 Index: toolchain.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.eclass,v retrieving revision 1.449 retrieving revision 1.450 diff -u -r1.449 -r1.450 --- toolchain.eclass 18 Jan 2011 07:00:50 -0000 1.449 +++ toolchain.eclass 13 Feb 2011 12:10:12 -0000 1.450 @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.449 2011/= 01/18 07:00:50 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.450 2011/= 02/13 12:10:12 dirtyepic Exp $ # # Maintainer: Toolchain Ninjas =20 @@ -1927,12 +1927,15 @@ chown -R root:0 "${D}"${LIBPATH} =20 # Move pretty-printers to gdb datadir to shut ldconfig up - gdbdir=3D/usr/share/gdb/auto-load - for module in $(find "${D}" -iname "*-gdb.py" -print); do - insinto ${gdbdir}/$(dirname "${module/${D}/}" | \ - sed -e "s:/lib/:/$(get_libdir)/:g") - doins "${module}" - rm "${module}" + gdbdir=3D/usr/share/gdb/auto-load${LIBPATH/\/lib\//\/$(get_libdir)\/} + for i in "${D}"${LIBPATH}{,/32}/*-gdb.py; do + if [[ -e ${i} ]]; then + basedir=3D"$(dirname ${i/${D}${LIBPATH}/})" + sed -i -e "s:^\(libdir =3D \).*:\1'${LIBPATH}${basedir}':" "${i}" #34= 8128 + insinto "${gdbdir}${basedir}" + doins "${i}" + rm "${i}" + fi done =20 # Don't scan .gox files for executable stacks - false positives