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] python-r1.eclass: Use 'dosym -r' in EAPI 8
Date: Sun, 20 Jun 2021 13:22:31
Message-Id: 20210620132222.788868-1-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 20/28] python-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/python-r1.eclass | 4 +++-
4 1 file changed, 3 insertions(+), 1 deletion(-)
5
6 diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
7 index d464d3ef8f8a..08d3b744af81 100644
8 --- a/eclass/python-r1.eclass
9 +++ b/eclass/python-r1.eclass
10 @@ -846,7 +846,9 @@ python_replicate_script() {
11 # install the wrappers
12 local f
13 for f; do
14 - _python_ln_rel "${ED%/}/usr/lib/python-exec/python-exec2" "${f}" || die
15 + local dosym=dosym
16 + [[ ${EAPI} == [67] ]] && dosym=dosym8
17 + "${dosym}" -r /usr/lib/python-exec/python-exec2 "${f#${ED}}"
18 done
19 }
20
21 --
22 2.32.0