Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 23 Jun 2021 21:44:40
Message-Id: 1624484666.9f831e240a9804a996fc80015f64d5e102ced740.mgorny@gentoo
1 commit: 9f831e240a9804a996fc80015f64d5e102ced740
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 20 09:37:44 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 23 21:44:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f831e24
7
8 distutils-r1.eclass: Use 'dosym -r' in EAPI 8
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 eclass/distutils-r1.eclass | 6 ++++--
13 1 file changed, 4 insertions(+), 2 deletions(-)
14
15 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
16 index e74a6800717..7501f6540bb 100644
17 --- a/eclass/distutils-r1.eclass
18 +++ b/eclass/distutils-r1.eclass
19 @@ -776,8 +776,10 @@ _distutils-r1_wrap_scripts() {
20 local basename=${f##*/}
21
22 debug-print "${FUNCNAME}: installing wrapper at ${bindir}/${basename}"
23 - _python_ln_rel "${path}${EPREFIX}"/usr/lib/python-exec/python-exec2 \
24 - "${path}${bindir}/${basename}" || die
25 + local dosym=dosym
26 + [[ ${EAPI} == [67] ]] && dosym=dosym8
27 + "${dosym}" -r "${path#${D}}"/usr/lib/python-exec/python-exec2 \
28 + "${path#${D}}${bindir#${EPREFIX}}/${basename}"
29 done
30
31 for f in "${non_python_files[@]}"; do