diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-12-26 22:56:05 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-01-28 22:11:26 +0000 |
commit | 112404b843cd492715f679acf8a31fd7e35ed568 (patch) | |
tree | 79541b4171f557ed982af65606a695543b85e320 /eclass/python-utils-r1.eclass | |
parent | sys-devel/clang: Move clang prefix tweaks from profile (diff) | |
download | gentoo-112404b843cd492715f679acf8a31fd7e35ed568.tar.gz gentoo-112404b843cd492715f679acf8a31fd7e35ed568.tar.bz2 gentoo-112404b843cd492715f679acf8a31fd7e35ed568.zip |
python-utils-r1.eclass: Use BROOT rather than EPREFIX for PYTHON var
The PYTHON variable is used for the wrapper shebangs. These should point
to the build system rather than the host system. The variable is also
used in other contexts, but the build system is still likely to be most
appropriate. If this does break anything, it'll only be for prefixed
systems.
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r-- | eclass/python-utils-r1.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 43472bd1fae0..bc397229a670 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -332,7 +332,7 @@ _python_export() { debug-print "${FUNCNAME}: EPYTHON = ${EPYTHON}" ;; PYTHON) - export PYTHON=${EPREFIX}/usr/bin/${impl} + export PYTHON=${BROOT-${EPREFIX}}/usr/bin/${impl} debug-print "${FUNCNAME}: PYTHON = ${PYTHON}" ;; PYTHON_SITEDIR) |