summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMark Loeser <halcy0n@gentoo.org>2009-08-13 18:15:13 +0000
committerMark Loeser <halcy0n@gentoo.org>2009-08-13 18:15:13 +0000
commit20b8cef82092559e18415be7b5dd0b0caaf9119e (patch)
tree9ae6e17cf5eca80d82060f84862f720cb3ee204d /eclass
parentVersion bump, #276473. (diff)
downloadgentoo-2-20b8cef82092559e18415be7b5dd0b0caaf9119e.tar.gz
gentoo-2-20b8cef82092559e18415be7b5dd0b0caaf9119e.tar.bz2
gentoo-2-20b8cef82092559e18415be7b5dd0b0caaf9119e.zip
Fix bug #279252; --with-python-dir prepends the prefix to the path already, so we strip it from DATAPATH and stick the scripts in a python directory there
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 9e96adbafcc3..3b935ca15aaa 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -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.403 2009/07/26 20:09:59 halcy0n Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.404 2009/08/13 18:15:13 halcy0n Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -1208,6 +1208,12 @@ gcc-compiler-configure() {
confgcc="${confgcc} --enable-cld"
fi
fi
+
+ # Stick the python scripts in their own slotted directory
+ # bug #279252
+ if tc_version_is_at_least "4.4" ; then
+ confgcc="${confgcc} --with-python-dir=${DATAPATH/$PREFIX/}/python"
+ fi
fi
# GTK+ is preferred over xlib in 3.4.x (xlib is unmaintained