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 27/28] distutils-r1.eclass: Use 'dosym -r' in EAPI 8
Date: Sun, 20 Jun 2021 10:04:45
Message-Id: 20210620095552.625633-28-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/28] python-r1 suite EAPI 8 support/cleanup by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/distutils-r1.eclass | 10 ++++++++--
4 1 file changed, 8 insertions(+), 2 deletions(-)
5
6 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
7 index a46b71431e48..314604e62660 100644
8 --- a/eclass/distutils-r1.eclass
9 +++ b/eclass/distutils-r1.eclass
10 @@ -776,8 +776,14 @@ _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 + if [[ ${EAPI} != [67] ]]; then
17 + dosym -r "${path#${D}}"/usr/lib/python-exec/python-exec2 \
18 + "${path#${D}}${bindir#${EPREFIX}}/${basename}"
19 + else
20 + _python_ln_rel \
21 + "${path}${EPREFIX}"/usr/lib/python-exec/python-exec2 \
22 + "${path}${bindir}/${basename}" || die
23 + fi
24 done
25
26 for f in "${non_python_files[@]}"; do
27 --
28 2.32.0

Replies

Subject Author
[gentoo-dev] [PATCH v2] distutils-r1.eclass: Use 'dosym -r' in EAPI 8 "Michał Górny" <mgorny@g.o>