diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-27 02:45:48 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-27 02:45:48 +0000 |
commit | 662590889071a307dd57302e8b8a969ad206aaf7 (patch) | |
tree | 632f26ae00d141210282562b9a2d99d227b949ec /sys-devel/gcc-config | |
parent | Stable on x86; bug #116526 (diff) | |
download | historical-662590889071a307dd57302e8b8a969ad206aaf7.tar.gz historical-662590889071a307dd57302e8b8a969ad206aaf7.tar.bz2 historical-662590889071a307dd57302e8b8a969ad206aaf7.zip |
Use get_libdir #114633 by Patrick McLean.
Package-Manager: portage-2.1_pre2
Diffstat (limited to 'sys-devel/gcc-config')
-rw-r--r-- | sys-devel/gcc-config/ChangeLog | 6 | ||||
-rw-r--r-- | sys-devel/gcc-config/Manifest | 12 | ||||
-rwxr-xr-x | sys-devel/gcc-config/files/gcc-config-1.3.12 | 16 | ||||
-rw-r--r-- | sys-devel/gcc-config/gcc-config-1.3.12-r4.ebuild | 11 |
4 files changed, 28 insertions, 17 deletions
diff --git a/sys-devel/gcc-config/ChangeLog b/sys-devel/gcc-config/ChangeLog index 4d4618d60437..113279256ca5 100644 --- a/sys-devel/gcc-config/ChangeLog +++ b/sys-devel/gcc-config/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-devel/gcc-config # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.111 2005/11/19 05:23:08 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.112 2005/12/27 02:45:48 vapier Exp $ + + 27 Dec 2005; Mike Frysinger <vapier@gentoo.org> files/gcc-config-1.3.12, + gcc-config-1.3.12-r4.ebuild: + Use get_libdir #114633 by Patrick McLean. *gcc-config-1.3.12-r4 (19 Nov 2005) diff --git a/sys-devel/gcc-config/Manifest b/sys-devel/gcc-config/Manifest index 05be368ea610..601b21ea054b 100644 --- a/sys-devel/gcc-config/Manifest +++ b/sys-devel/gcc-config/Manifest @@ -1,18 +1,18 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 68d7c52689871082544aeb69f4022805 ChangeLog 22219 +MD5 07eaa6817db193063f412cea5f75461b ChangeLog 22370 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-gcc-config-1.3.12-r4 0 MD5 c7cf3a3617d90adfaacc7c2c012ddfb0 files/digest-gcc-config-2.0.0_beta2 79 -MD5 167d3ca0d418fbedadb109ad8bf3b0c7 files/gcc-config-1.3.12 17371 +MD5 4794880fae4bdff68ed4f35640d2405b files/gcc-config-1.3.12 17467 MD5 1b19cf481e2777dff9722f36698c3b24 files/wrapper-1.4.7.c 9837 -MD5 c9487fb4c13f7250b9dc782f6e8f5358 gcc-config-1.3.12-r4.ebuild 1379 +MD5 24240029701d38c83232c60446440aa2 gcc-config-1.3.12-r4.ebuild 1458 MD5 35fee17d74ce037258c00f8d9e9dd820 gcc-config-2.0.0_beta2.ebuild 781 MD5 567094e03359ffc1c95af7356395228d metadata.xml 162 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) -iD8DBQFDqLXr2+ySkm8kpY0RAvzAAJ9jlRKk//qQXy3GcKASO1U62JuwMgCgxwnQ -cClVm22EPjxhqu5P9d8JUZA= -=HTYp +iD8DBQFDsKrx2+ySkm8kpY0RAsVUAJ9cd+bobT5YshjV1Lrz+RzJ2cciXwCgkGBN +89Pzs9+spvQah1E8s4n+WqQ= +=ZXaU -----END PGP SIGNATURE----- diff --git a/sys-devel/gcc-config/files/gcc-config-1.3.12 b/sys-devel/gcc-config/files/gcc-config-1.3.12 index 2b08e80c2feb..c0de03df30c2 100755 --- a/sys-devel/gcc-config/files/gcc-config-1.3.12 +++ b/sys-devel/gcc-config/files/gcc-config-1.3.12 @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.12,v 1.11 2005/12/21 01:53:54 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.12,v 1.12 2005/12/27 02:45:48 vapier Exp $ trap ":" INT QUIT TSTP @@ -223,6 +223,12 @@ switch_profile() { # Fix environment source /etc/profile umask 022 + # Find the bin wrapper + local wrapper + for wrapper in GENTOO_LIBDIR lib lib64 lib32 lib ; do + wrapper="${ROOT}usr/${wrapper}/misc/gcc-config" + [[ -e ${wrapper} ]] && break + done # Update the wrappers for this profile local native="gcc cpp cc c++ g++ f77 g77 gcj" @@ -242,16 +248,14 @@ switch_profile() { [[ ${x} == "cc" ]] && ref=${ROOT}/${GCC_BIN_PATH}/gcc [[ ${x} == "f77" ]] && ref=${ROOT}/${GCC_BIN_PATH}/g77 if [[ -x ${ref} ]] ; then - ${CP} -f "${ROOT}/usr/lib/misc/gcc-config" \ - "${ROOT}/usr/bin/${x}" + ${CP} -f "${wrapper}" "${ROOT}/usr/bin/${x}" ${TOUCH} -r "${ref}" "${ROOT}/usr/bin/${x}" # Install 32bit and 64bit wrappers if need be # This should probably get folded back into the wrapper ... if [[ ${x:${#x}-3} == "gcc" ]] || [[ ${x:${#x}-3} == "g++" ]] ; then for bits in ${GCCBITS} ; do - ${CP} -f "${ROOT}/usr/lib/misc/gcc-config" \ - "${ROOT}/usr/bin/${x}${bits}" + ${CP} -f "${wrapper}" "${ROOT}/usr/bin/${x}${bits}" done fi fi @@ -259,7 +263,7 @@ switch_profile() { # Only install cpp if switching to a native one if ! is_cross_compiler && [[ ${CTARGET} != *-solaris* ]] ; then ${RM} -f "${ROOT}/lib/cpp" - ${CP} -f "${ROOT}/usr/lib/misc/gcc-config" "${ROOT}/lib/cpp" + ${CP} -f "${wrapper}" "${ROOT}/lib/cpp" fi # We need to make sure that libgcc_s.so / libunwind.so make it into /lib. diff --git a/sys-devel/gcc-config/gcc-config-1.3.12-r4.ebuild b/sys-devel/gcc-config/gcc-config-1.3.12-r4.ebuild index d66abe808ef0..4e07d66b7bb9 100644 --- a/sys-devel/gcc-config/gcc-config-1.3.12-r4.ebuild +++ b/sys-devel/gcc-config/gcc-config-1.3.12-r4.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.3.12-r4.ebuild,v 1.1 2005/11/19 05:23:08 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.3.12-r4.ebuild,v 1.2 2005/12/27 02:45:48 vapier Exp $ -inherit toolchain-funcs +inherit toolchain-funcs multilib # Version of .c wrapper to use W_VER="1.4.7" @@ -27,9 +27,12 @@ src_compile() { src_install() { newbin "${FILESDIR}"/${PN}-${PV} ${PN} || die "install gcc-config" - dosed "s:PORTAGE-VERSION:${PVR}:" /usr/bin/${PN} + sed -i \ + -e "s:PORTAGE-VERSION:${PVR}:g" \ + -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ + "${D}"/usr/bin/${PN} - exeinto /usr/lib/misc + exeinto /usr/$(get_libdir)/misc newexe wrapper gcc-config || die "install wrapper" } |