diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-12-13 16:47:25 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-12-13 16:47:25 +0000 |
commit | ae7b5d183fbdf942eeb2027c5aaf68b136c79b8e (patch) | |
tree | b395c62dd34616671d22dbb8788b8cc18ddfbf40 /eclass | |
parent | sys-fs/cachefilesd: Build as PIE binary as suggested by upstream (diff) | |
download | gentoo-2-ae7b5d183fbdf942eeb2027c5aaf68b136c79b8e.tar.gz gentoo-2-ae7b5d183fbdf942eeb2027c5aaf68b136c79b8e.tar.bz2 gentoo-2-ae7b5d183fbdf942eeb2027c5aaf68b136c79b8e.zip |
Add (temporary) fix for sandbox failures when compiling Python modules. Bug #447126.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 6 | ||||
-rw-r--r-- | eclass/distutils-r1.eclass | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index 24c6ca8cf13a..cc033f654917 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for eclass directory # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.557 2012/12/10 16:47:55 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.558 2012/12/13 16:47:25 mgorny Exp $ + + 13 Dec 2012; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass: + Add (temporary) fix for sandbox failures when compiling Python modules. Bug + #447126. 10 Dec 2012; Lars Wendler <polynomial-c@gentoo.org> mozcoreconf-2.eclass: Added changes to mozcoreconf-2.eclass on request by Anarchy. diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index f5cc4e6f7f8e..4ac9f01377cf 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.31 2012/12/09 20:56:25 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.32 2012/12/13 16:47:25 mgorny Exp $ # @ECLASS: distutils-r1 # @MAINTAINER: @@ -323,6 +323,10 @@ distutils-r1_python_install() { local PYTHONDONTWRITEBYTECODE export PYTHONDONTWRITEBYTECODE + # python likes to compile any module it sees, which triggers sandbox + # failures if some packages haven't compiled their modules yet. + addpredict "$(python_get_sitedir)" + local root=${D}/_${EPYTHON} esetup.py install "${flags[@]}" --root="${root}" "${@}" |