commit: e2a9159bb3b3836d372aa7a87ee94ff84e59e643
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 24 11:50:40 2016 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jan 24 11:50:40 2016 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e2a9159b
dev-lang/python: apply workaround for increased security in El Capitan (10.11),
bug #572726
Package-Manager: portage-2.2.20-prefix
dev-lang/python/python-3.5.1.ebuild | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dev-lang/python/python-3.5.1.ebuild
b/dev-lang/python/python-3.5.1.ebuild
index 2b22254..f81884e 100644
--- a/dev-lang/python/python-3.5.1.ebuild
+++ b/dev-lang/python/python-3.5.1.ebuild
@@ -80,6 +80,12 @@ src_prepare() {
EPATCH_EXCLUDE="${excluded_patches}" EPATCH_SUFFIX="patch" \
epatch
"${WORKDIR}"/python-prefix-${PV}-gentoo-patches-${PREFIX_PATCHREV}
+ # https://forums.developer.apple.com/thread/9233, bug #572726
+ sed -i -e 's:$(RUNSHARED) ./regen:export RUNSHARED=$(RUNSHARED);
./regen:' \
+ Makefile.pre.in || die
+ sed -i -e '/python$EXE/s/^/env ${RUNSHARED} /' \
+ Lib/plat-darwin/regen || die
+
# we provide a fully working readline also on Darwin, so don't force
# usage of less functional libedit
sed -i -e 's/__APPLE__/__NO_MUCKING_AROUND__/g' Modules/readline.c ||
die