summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-12-07 22:23:04 +0000
committerMichał Górny <mgorny@gentoo.org>2012-12-07 22:23:04 +0000
commitcadc23461bce19c81873ca78d6e10770470658bb (patch)
treebe01e0d69178574ecd449b467b1c6101639e6c99
parentClean up elibtoolize logic and re-sync 9999/non-9999 ebuilds. (diff)
downloadgentoo-2-cadc23461bce19c81873ca78d6e10770470658bb.tar.gz
gentoo-2-cadc23461bce19c81873ca78d6e10770470658bb.tar.bz2
gentoo-2-cadc23461bce19c81873ca78d6e10770470658bb.zip
Use separate TMPDIR for each Python implementation.
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/distutils-r1.eclass6
2 files changed, 9 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 44e5db673916..3c2e6be8b7ae 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.552 2012/12/07 21:09:22 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.553 2012/12/07 22:23:04 mgorny Exp $
+
+ 07 Dec 2012; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass:
+ Use separate TMPDIR for each Python implementation.
07 Dec 2012; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass:
Report running implementation-common sub-phases verbosely.
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index bd7f173ebd6e..33d716c9ed9e 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.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/distutils-r1.eclass,v 1.29 2012/12/07 21:09:22 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.30 2012/12/07 22:23:04 mgorny Exp $
# @ECLASS: distutils-r1
# @MAINTAINER:
@@ -379,6 +379,10 @@ distutils-r1_run_phase() {
export PYTHONPATH
fi
+ local TMPDIR=${T}/${EPYTHON}
+
+ mkdir -p "${TMPDIR}" || die
+
if [[ ${DISTUTILS_NO_PARALLEL_BUILD} ]]; then
"${@}"
else