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-29 08:04:57 +0200
commitc8406daedfa823e9b59b6749c423efee4e713c0c (patch)
tree8c38c353468261e8eb58e5e82e167506aa7c21f5 /eclass/distutils-r1.eclass
parentdistutils-r1.eclass: Eliminate path arg to ..._wrap_scripts (diff)
downloadgentoo-c8406daedfa823e9b59b6749c423efee4e713c0c.tar.gz
gentoo-c8406daedfa823e9b59b6749c423efee4e713c0c.tar.bz2
gentoo-c8406daedfa823e9b59b6749c423efee4e713c0c.zip
distutils-r1.eclass: Use 'dosym -r' in EAPI 8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/distutils-r1.eclass')
-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 3d50cd5a2f23..e2cafb425c3a 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