From 20b8cef82092559e18415be7b5dd0b0caaf9119e Mon Sep 17 00:00:00 2001 From: Mark Loeser Date: Thu, 13 Aug 2009 18:15:13 +0000 Subject: 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 --- eclass/toolchain.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'eclass/toolchain.eclass') 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 @@ -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 -- cgit v1.2.3-65-gdbad