commit: 05e91ddb79908f0b52b42b7df6238e91ebec69ee
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 1 20:02:31 2018 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Jun 1 20:02:31 2018 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=05e91ddb
dev-lang/python: ensure Python framework gets built without $D
On macOS when building native stuff, the Makefile uses DESTDIR in the
install_name of the framework. This obviously causes install_name QA
checks to go off, so ensure we never use DESTDIR in the install_name by
removing it.
Package-Manager: Portage-2.3.40.1-prefix, Repoman-2.3.9
dev-lang/python/python-2.7.14-r2.ebuild | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dev-lang/python/python-2.7.14-r2.ebuild
b/dev-lang/python/python-2.7.14-r2.ebuild
index 494beb6780..abe2442ccc 100644
--- a/dev-lang/python/python-2.7.14-r2.ebuild
+++ b/dev-lang/python/python-2.7.14-r2.ebuild
@@ -127,6 +127,8 @@ src_prepare() {
configure.ac configure || die
# we handle creation of symlinks in src_install
sed -i -e '/ln -fs .*PYTHONFRAMEWORK/d' Makefile.pre.in || die
+ # build the Python framework without DESTDIR in install_name
+ sed -i -e '/-install_name/s/$(DESTDIR)//' Makefile.pre.in || die
fi
# don't try to do fancy things on Darwin
sed -i -e 's/__APPLE__/__NO_MUCKING_AROUND__/g' Modules/readline.c ||
die