• [gentoo-dev] [PATCH 6/7] python-utils-r1.eclass: Use BROOT rather than

    From James Le Cuirot@21:1/5 to All on Sat Jan 21 23:30:01 2023
    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>
    ---
    eclass/python-utils-r1.eclass | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    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)
    --
    2.39.1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)