diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-02 22:51:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-02 22:51:20 +0100 |
commit | 1e9c38efad2f42ea208e40924d1e5936810ac7c0 (patch) | |
tree | dbcaa52c820c84eaba974e8a5bf4ba2b05a4bed2 /eclass | |
parent | 1f6d51a43dbfcb87ef81da70c688d354560e846a (diff) |
gentoo auto-resync : 02:08:2023 - 22:51:19
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/Manifest.gz | bin | 38321 -> 38322 bytes | |||
-rw-r--r-- | eclass/python-utils-r1.eclass | 6 |
2 files changed, 2 insertions, 4 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz Binary files differindex dd57b02eb6da..4965f7f3fd19 100644 --- a/eclass/Manifest.gz +++ b/eclass/Manifest.gz diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index a883135eaa41..2555ce12d066 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -338,7 +338,7 @@ _python_export() { debug-print "${FUNCNAME}: EPYTHON = ${EPYTHON}" ;; PYTHON) - export PYTHON=${BROOT-${EPREFIX}}/usr/bin/${impl} + export PYTHON=${BROOT}/usr/bin/${impl} debug-print "${FUNCNAME}: PYTHON = ${PYTHON}" ;; PYTHON_SITEDIR) @@ -1023,8 +1023,6 @@ python_fix_shebang() { debug-print-function ${FUNCNAME} "${@}" [[ ${EPYTHON} ]] || die "${FUNCNAME}: EPYTHON unset (pkg_setup not called?)" - local PYTHON - _python_export "${EPYTHON}" PYTHON local force quiet while [[ ${@} ]]; do @@ -1097,7 +1095,7 @@ python_fix_shebang() { if [[ ! ${error} ]]; then debug-print "${FUNCNAME}: in file ${f#${D%/}}" debug-print "${FUNCNAME}: rewriting shebang: ${shebang}" - sed -i -e "1s@${from}@#!${PYTHON}@" "${f}" || die + sed -i -e "1s@${from}@#!${EPREFIX}/usr/bin/${EPYTHON}@" "${f}" || die any_fixed=1 else eerror "The file has incompatible shebang:" |