summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-20 11:37:44 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-23 23:44:26 +0200
commit9f831e240a9804a996fc80015f64d5e102ced740 (patch)
treed06b91dcc799bc85bbf7e71d4b82d30bfe9bb711
parentdistutils-r1.eclass: Ban dift --via-home in EAPI 8 (diff)
downloadgentoo-9f831e240a9804a996fc80015f64d5e102ced740.tar.gz
gentoo-9f831e240a9804a996fc80015f64d5e102ced740.tar.bz2
gentoo-9f831e240a9804a996fc80015f64d5e102ced740.zip
distutils-r1.eclass: Use 'dosym -r' in EAPI 8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--eclass/distutils-r1.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index e74a68007179..7501f6540bb6 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