summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-06-17 19:56:18 +0000
committerMike Frysinger <vapier@gentoo.org>2006-06-17 19:56:18 +0000
commit1e9ddae8735167e4a67bbd82e9b1c100930061ca (patch)
treea1d915eb5314c5d829eaed1f59c4a7753ad11595 /eclass
parentAdd ~amd64, #136523. (diff)
downloadhistorical-1e9ddae8735167e4a67bbd82e9b1c100930061ca.tar.gz
historical-1e9ddae8735167e4a67bbd82e9b1c100930061ca.tar.bz2
historical-1e9ddae8735167e4a67bbd82e9b1c100930061ca.zip
make sure destination dir exists if installing into empty $ROOT as pointed out by kanaka
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index a17c383bc308..a2351cfca3f0 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.292 2006/06/16 03:52:32 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.293 2006/06/17 19:56:18 vapier Exp $
HOMEPAGE="http://gcc.gnu.org/"
LICENSE="GPL-2 LGPL-2.1"
@@ -873,6 +873,10 @@ gcc-compiler_pkg_postinst() {
if ! is_crosscompile ; then
# hack to prevent collisions between SLOT
+ [[ ! -d ${ROOT}/lib/rcscripts/awk ]] \
+ && mkdir -p "${ROOT}"/lib/rcscripts/awk
+ [[ ! -d ${ROOT}/sbin ]] \
+ && mkdir -p "${ROOT}"/sbin
cp "${ROOT}/${DATAPATH}"/fixlafiles.awk "${ROOT}"/lib/rcscripts/awk/ || die "installing fixlafiles.awk"
cp "${ROOT}/${DATAPATH}"/fix_libtool_files.sh "${ROOT}"/sbin/ || die "installing fix_libtool_files.sh"
fi