commit:     9f831e240a9804a996fc80015f64d5e102ced740
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 20 09:37:44 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 23 21:44:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f831e24

distutils-r1.eclass: Use 'dosym -r' in EAPI 8

Signed-off-by: Michał Górny <mgorny <AT> 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 e74a6800717..7501f6540bb 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -776,8 +776,10 @@ _distutils-r1_wrap_scripts() {
                        local basename=${f##*/}
 
                        debug-print "${FUNCNAME}: installing wrapper at 
${bindir}/${basename}"
-                       _python_ln_rel 
"${path}${EPREFIX}"/usr/lib/python-exec/python-exec2 \
-                               "${path}${bindir}/${basename}" || die
+                       local dosym=dosym
+                       [[ ${EAPI} == [67] ]] && dosym=dosym8
+                       "${dosym}" -r 
"${path#${D}}"/usr/lib/python-exec/python-exec2 \
+                               "${path#${D}}${bindir#${EPREFIX}}/${basename}"
                done
 
                for f in "${non_python_files[@]}"; do

Reply via email to