1 |
commit: 112404b843cd492715f679acf8a31fd7e35ed568 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 26 22:56:05 2022 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 28 22:11:26 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=112404b8 |
7 |
|
8 |
python-utils-r1.eclass: Use BROOT rather than EPREFIX for PYTHON var |
9 |
|
10 |
The PYTHON variable is used for the wrapper shebangs. These should point |
11 |
to the build system rather than the host system. The variable is also |
12 |
used in other contexts, but the build system is still likely to be most |
13 |
appropriate. If this does break anything, it'll only be for prefixed |
14 |
systems. |
15 |
|
16 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
17 |
|
18 |
eclass/python-utils-r1.eclass | 2 +- |
19 |
1 file changed, 1 insertion(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass |
22 |
index 43472bd1fae0..bc397229a670 100644 |
23 |
--- a/eclass/python-utils-r1.eclass |
24 |
+++ b/eclass/python-utils-r1.eclass |
25 |
@@ -332,7 +332,7 @@ _python_export() { |
26 |
debug-print "${FUNCNAME}: EPYTHON = ${EPYTHON}" |
27 |
;; |
28 |
PYTHON) |
29 |
- export PYTHON=${EPREFIX}/usr/bin/${impl} |
30 |
+ export PYTHON=${BROOT-${EPREFIX}}/usr/bin/${impl} |
31 |
debug-print "${FUNCNAME}: PYTHON = ${PYTHON}" |
32 |
;; |
33 |
PYTHON_SITEDIR) |