Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH v2] distutils-r1.eclass: Use 'dosym -r' in EAPI 8
Date: Sun, 20 Jun 2021 13:23:49
Message-Id: 20210620132341.789542-1-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 27/28] distutils-r1.eclass: Use 'dosym -r' in EAPI 8 by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/distutils-r1.eclass | 6 ++++--
4 1 file changed, 4 insertions(+), 2 deletions(-)
5
6 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
7 index e74a68007179..7501f6540bb6 100644
8 --- a/eclass/distutils-r1.eclass
9 +++ b/eclass/distutils-r1.eclass
10 @@ -776,8 +776,10 @@ _distutils-r1_wrap_scripts() {
11 local basename=${f##*/}
12
13 debug-print "${FUNCNAME}: installing wrapper at ${bindir}/${basename}"
14 - _python_ln_rel "${path}${EPREFIX}"/usr/lib/python-exec/python-exec2 \
15 - "${path}${bindir}/${basename}" || die
16 + local dosym=dosym
17 + [[ ${EAPI} == [67] ]] && dosym=dosym8
18 + "${dosym}" -r "${path#${D}}"/usr/lib/python-exec/python-exec2 \
19 + "${path#${D}}${bindir#${EPREFIX}}/${basename}"
20 done
21
22 for f in "${non_python_files[@]}"; do
23 --
24 2.32.0