summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-20 08:56:45 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-23 23:44:03 +0200
commit1c2d52b662f289d1d735a847d25d3eb6e491ce16 (patch)
treef51e7b2c72d86788d84f8fbe4dd17c1a8138923f /eclass/python-utils-r1.eclass
parentpython-utils-r1.eclass: Ban private API in EAPI 8 (diff)
downloadgentoo-1c2d52b662f289d1d735a847d25d3eb6e491ce16.tar.gz
gentoo-1c2d52b662f289d1d735a847d25d3eb6e491ce16.tar.bz2
gentoo-1c2d52b662f289d1d735a847d25d3eb6e491ce16.zip
python-utils-r1.eclass: Use 'dosym -r' in EAPI 8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index bab4be0f521d..4de550aa6a63 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -34,6 +34,7 @@ fi
if [[ ! ${_PYTHON_UTILS_R1} ]]; then
+[[ ${EAPI} == [67] ]] && inherit eapi8-dosym
inherit toolchain-funcs
# @ECLASS-VARIABLE: _PYTHON_ALL_IMPLS
@@ -712,8 +713,9 @@ python_newexe() {
)
# install the wrapper
- _python_ln_rel "${ED%/}"/usr/lib/python-exec/python-exec2 \
- "${ED%/}/${wrapd}/${newfn}" || die
+ local dosym=dosym
+ [[ ${EAPI} == [67] ]] && dosym=dosym8
+ "${dosym}" -r /usr/lib/python-exec/python-exec2 "${wrapd}/${newfn}"
# don't use this at home, just call python_doscript() instead
if [[ ${_PYTHON_REWRITE_SHEBANG} ]]; then