summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-20 10:39:52 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-23 23:44:20 +0200
commitef15c6bb841ab2caa13d52c86cced0f0d92b1ab0 (patch)
tree4595cdcbf032e89fa9047551117b35823951a189 /eclass/python-r1.eclass
parentpython-r1.eclass: Ban python_gen_usedep in EAPI 8 (diff)
downloadgentoo-ef15c6bb841ab2caa13d52c86cced0f0d92b1ab0.tar.gz
gentoo-ef15c6bb841ab2caa13d52c86cced0f0d92b1ab0.tar.bz2
gentoo-ef15c6bb841ab2caa13d52c86cced0f0d92b1ab0.zip
python-r1.eclass: Use 'dosym -r' in EAPI 8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-r1.eclass')
-rw-r--r--eclass/python-r1.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index d464d3ef8f8a..08d3b744af81 100644
--- a/eclass/python-r1.eclass
+++ b/eclass/python-r1.eclass
@@ -846,7 +846,9 @@ python_replicate_script() {
# install the wrappers
local f
for f; do
- _python_ln_rel "${ED%/}/usr/lib/python-exec/python-exec2" "${f}" || die
+ local dosym=dosym
+ [[ ${EAPI} == [67] ]] && dosym=dosym8
+ "${dosym}" -r /usr/lib/python-exec/python-exec2 "${f#${ED}}"
done
}