Signed-off-by: Michał Górny <[email protected]>
---
 eclass/python-utils-r1.eclass | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index bab4be0f521d..e164b9c20eb9 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -544,6 +544,8 @@ python_get_scriptdir() {
 _python_ln_rel() {
        debug-print-function ${FUNCNAME} "${@}"
 
+       [[ ${EAPI} == [67] ]] || die "${FUNCNAME} banned in EAPI ${EAPI}"
+
        local target=${1}
        local symname=${2}
 
@@ -712,8 +714,13 @@ python_newexe() {
        )
 
        # install the wrapper
-       _python_ln_rel "${ED%/}"/usr/lib/python-exec/python-exec2 \
-               "${ED%/}/${wrapd}/${newfn}" || die
+       if [[ ${EAPI} != [67] ]]; then
+               dosym -r /usr/lib/python-exec/python-exec2 \
+                       "${wrapd}/${newfn}"
+       else
+               _python_ln_rel "${ED%/}"/usr/lib/python-exec/python-exec2 \
+                       "${ED%/}/${wrapd}/${newfn}" || die
+       fi
 
        # don't use this at home, just call python_doscript() instead
        if [[ ${_PYTHON_REWRITE_SHEBANG} ]]; then
-- 
2.32.0


Reply via email to