Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: dev-lang/python/
Date: Fri, 01 Jun 2018 20:02:43
Message-Id: 1527883351.05e91ddb79908f0b52b42b7df6238e91ebec69ee.grobian@gentoo
1 commit: 05e91ddb79908f0b52b42b7df6238e91ebec69ee
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 1 20:02:31 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 1 20:02:31 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=05e91ddb
7
8 dev-lang/python: ensure Python framework gets built without $D
9
10 On macOS when building native stuff, the Makefile uses DESTDIR in the
11 install_name of the framework. This obviously causes install_name QA
12 checks to go off, so ensure we never use DESTDIR in the install_name by
13 removing it.
14
15 Package-Manager: Portage-2.3.40.1-prefix, Repoman-2.3.9
16
17 dev-lang/python/python-2.7.14-r2.ebuild | 2 ++
18 1 file changed, 2 insertions(+)
19
20 diff --git a/dev-lang/python/python-2.7.14-r2.ebuild b/dev-lang/python/python-2.7.14-r2.ebuild
21 index 494beb6780..abe2442ccc 100644
22 --- a/dev-lang/python/python-2.7.14-r2.ebuild
23 +++ b/dev-lang/python/python-2.7.14-r2.ebuild
24 @@ -127,6 +127,8 @@ src_prepare() {
25 configure.ac configure || die
26 # we handle creation of symlinks in src_install
27 sed -i -e '/ln -fs .*PYTHONFRAMEWORK/d' Makefile.pre.in || die
28 + # build the Python framework without DESTDIR in install_name
29 + sed -i -e '/-install_name/s/$(DESTDIR)//' Makefile.pre.in || die
30 fi
31 # don't try to do fancy things on Darwin
32 sed -i -e 's/__APPLE__/__NO_MUCKING_AROUND__/g' Modules/readline.c || die