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 6/7] python-utils-r1.eclass: Use BROOT rather than EPREFIX for PYTHON var
Date: Sat, 21 Jan 2023 22:22:59
Message-Id: 20230121222037.29094-7-chewi@gentoo.org
In Reply to: [gentoo-dev] Allow prefixed systems to be cross-compiled by James Le Cuirot
1 The PYTHON variable is used for the wrapper shebangs. These should point
2 to the build system rather than the host system. The variable is also
3 used in other contexts, but the build system is still likely to be most
4 appropriate. If this does break anything, it'll only be for prefixed
5 systems.
6
7 Signed-off-by: James Le Cuirot <chewi@g.o>
8 ---
9 eclass/python-utils-r1.eclass | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
13 index 43472bd1fae0..bc397229a670 100644
14 --- a/eclass/python-utils-r1.eclass
15 +++ b/eclass/python-utils-r1.eclass
16 @@ -332,7 +332,7 @@ _python_export() {
17 debug-print "${FUNCNAME}: EPYTHON = ${EPYTHON}"
18 ;;
19 PYTHON)
20 - export PYTHON=${EPREFIX}/usr/bin/${impl}
21 + export PYTHON=${BROOT-${EPREFIX}}/usr/bin/${impl}
22 debug-print "${FUNCNAME}: PYTHON = ${PYTHON}"
23 ;;
24 PYTHON_SITEDIR)
25 --
26 2.39.1