1 |
commit: ef15c6bb841ab2caa13d52c86cced0f0d92b1ab0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 20 08:39:52 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 23 21:44:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef15c6bb |
7 |
|
8 |
python-r1.eclass: Use 'dosym -r' in EAPI 8 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/python-r1.eclass | 4 +++- |
13 |
1 file changed, 3 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass |
16 |
index d464d3ef8f8..08d3b744af8 100644 |
17 |
--- a/eclass/python-r1.eclass |
18 |
+++ b/eclass/python-r1.eclass |
19 |
@@ -846,7 +846,9 @@ python_replicate_script() { |
20 |
# install the wrappers |
21 |
local f |
22 |
for f; do |
23 |
- _python_ln_rel "${ED%/}/usr/lib/python-exec/python-exec2" "${f}" || die |
24 |
+ local dosym=dosym |
25 |
+ [[ ${EAPI} == [67] ]] && dosym=dosym8 |
26 |
+ "${dosym}" -r /usr/lib/python-exec/python-exec2 "${f#${ED}}" |
27 |
done |
28 |
} |