diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-05-15 18:51:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-05-15 18:51:21 +0000 |
commit | 60697ef25dbcc44065028d7b53b50ec935dcd840 (patch) | |
tree | 4f886557b355444e03502e7bfde1340e547807ac /eclass/toolchain.eclass | |
parent | Version bump by Michael Schindhelm <mschindhelm@gmx.de> and me wrt bug #403601. (diff) | |
download | gentoo-2-60697ef25dbcc44065028d7b53b50ec935dcd840.tar.gz gentoo-2-60697ef25dbcc44065028d7b53b50ec935dcd840.tar.bz2 gentoo-2-60697ef25dbcc44065028d7b53b50ec935dcd840.zip |
install .awk into /usr/share/gcc-data/ to avoid /lib/ mess, and we dont need it in /. same goes for fix_libtool_files.sh in /usr/sbin rather than /sbin. #415947 by Jim Faulkner.
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 918925418dfb..03c6a9168685 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.536 2012/05/13 20:24:28 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.537 2012/05/15 18:51:21 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -591,23 +591,19 @@ toolchain_pkg_postinst() { fi if ! is_crosscompile ; then - # hack to prevent collisions between SLOT - [[ ! -d ${ROOT}/$(get_libdir)/rcscripts/awk ]] \ - && mkdir -p "${ROOT}"/$(get_libdir)/rcscripts/awk - [[ ! -d ${ROOT}/sbin ]] \ - && mkdir -p "${ROOT}"/sbin - cp "${ROOT}/${DATAPATH}"/fixlafiles.awk "${ROOT}"/$(get_libdir)/rcscripts/awk/ || die "installing fixlafiles.awk" - cp "${ROOT}/${DATAPATH}"/fix_libtool_files.sh "${ROOT}"/sbin/ || die "installing fix_libtool_files.sh" - - [[ ! -d ${ROOT}/usr/bin ]] \ - && mkdir -p "${ROOT}"/usr/bin + # hack to prevent collisions between SLOTs + + # Clean up old paths + rm -f "${ROOT}"/*/rcscripts/awk/fixlafiles.awk "${ROOT}"/sbin/fix_libtool_files.sh + rmdir "${ROOT}"/*/rcscripts{/awk,} 2>/dev/null + + mkdir -p "${ROOT}"/usr/{share/gcc-data,sbin,bin} + cp "${ROOT}/${DATAPATH}"/fixlafiles.awk "${ROOT}"/usr/share/gcc-data/ || die + cp "${ROOT}/${DATAPATH}"/fix_libtool_files.sh "${ROOT}"/usr/sbin/ || die + # Since these aren't critical files and portage sucks with # handling of binpkgs, don't require these to be found - for x in "${ROOT}/${DATAPATH}"/c{89,99} ; do - if [[ -e ${x} ]]; then - cp ${x} "${ROOT}"/usr/bin/ || die "installing c89/c99" - fi - done + cp "${ROOT}/${DATAPATH}"/c{89,99} "${ROOT}"/usr/bin/ 2>/dev/null fi } |