Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
 eclass/distutils-r1.eclass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 87091951fafa..749809378c93 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -775,8 +775,10 @@ _distutils-r1_wrap_scripts() {
                        local basename=${f##*/}
 
                        debug-print "${FUNCNAME}: installing wrapper at 
${bindir}/${basename}"
-                       _python_ln_rel 
"${ED%/}"/usr/lib/python-exec/python-exec2 \
-                               "${D%/}${bindir}/${basename}" || die
+                       local dosym=dosym
+                       [[ ${EAPI} == [67] ]] && dosym=dosym8
+                       "${dosym}" -r /usr/lib/python-exec/python-exec2 \
+                               "${bindir#${EPREFIX}}/${basename}"
                done
 
                for f in "${non_python_files[@]}"; do
-- 
2.32.0


Reply via email to