Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 18 Sep 2018 17:12:42
Message-Id: 1537290754.0b6ceb56b07e645d7c0374dbe93ae0bec67d85f8.mgorny@gentoo
1 commit: 0b6ceb56b07e645d7c0374dbe93ae0bec67d85f8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 18 17:11:16 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 18 17:12:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b6ceb56
7
8 python-utils-r1.eclass: Revert "Block also pythonX.Y in wrappers"
9
10 This turned out to be overzealous and broke calling external programs
11 that were using different Python version.
12
13 Reverts: 7f291f5759959bc338ca0b52b169871f0dccf9a9
14
15 eclass/python-utils-r1.eclass | 12 +-----------
16 1 file changed, 1 insertion(+), 11 deletions(-)
17
18 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
19 index 6bcbe2e5a09..e3cf82b4b58 100644
20 --- a/eclass/python-utils-r1.eclass
21 +++ b/eclass/python-utils-r1.eclass
22 @@ -1043,21 +1043,11 @@ python_wrapper_setup() {
23 nonsupp+=( 2to3 python-config "python${pyver}-config" )
24 fi
25
26 - # block all other interpreters as incompatible
27 - local orig_EPYTHON=${EPYTHON}
28 local x
29 - for x in "${_PYTHON_ALL_IMPLS[@]}"; do
30 - python_export "${x}" EPYTHON
31 - [[ ${EPYTHON} == ${orig_EPYTHON} ]] && continue
32 -
33 - nonsupp+=( "${EPYTHON}" )
34 - [[ ${EPYTHON} == python* ]] && nonsupp+=( "${EPYTHON}-config" )
35 - done
36 -
37 for x in "${nonsupp[@]}"; do
38 cat >"${workdir}"/bin/${x} <<-_EOF_ || die
39 #!/bin/sh
40 - echo "${ECLASS}: ${FUNCNAME}: ${x} is not supported by ${orig_EPYTHON} (PYTHON_COMPAT)" >&2
41 + echo "${ECLASS}: ${FUNCNAME}: ${x} is not supported by ${EPYTHON} (PYTHON_COMPAT)" >&2
42 exit 127
43 _EOF_
44 chmod +x "${workdir}"/bin/${x} || die