Gentoo Archives: gentoo-dev

From: James Le Cuirot <chewi@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Cc: James Le Cuirot <chewi@g.o>
Subject: [gentoo-dev] [PATCH 10/12] python-any-r1.eclass: Create wrappers against build system's config
Date: Thu, 03 Jan 2019 21:44:00
Message-Id: 20190103213924.22835-11-chewi@gentoo.org
In Reply to: [gentoo-dev] [PATCH] Eclass changes for cross-compiling Python modules by James Le Cuirot
1 python-any-r1 is not to be used in packages requiring Python at
2 runtime. It may not even be installed.
3
4 Signed-off-by: James Le Cuirot <chewi@g.o>
5 ---
6 eclass/python-any-r1.eclass | 5 +++++
7 1 file changed, 5 insertions(+)
8
9 diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
10 index 7c5ae87872eb..c46ca0e2444b 100644
11 --- a/eclass/python-any-r1.eclass
12 +++ b/eclass/python-any-r1.eclass
13 @@ -283,6 +283,11 @@ _python_EPYTHON_supported() {
14 python_setup() {
15 debug-print-function ${FUNCNAME} "${@}"
16
17 + # Ensure Python wrappers are created against the build system's
18 + # configuration as python-any-r1 is not to be used in packages
19 + # requiring Python at runtime. It may not even be installed.
20 + local SYSROOT ESYSROOT=${BROOT-${EPREFIX}}
21 +
22 # support developer override
23 if [[ ${PYTHON_COMPAT_OVERRIDE} ]]; then
24 local impls=( ${PYTHON_COMPAT_OVERRIDE} )
25 --
26 2.19.2