Mailing List Archive

[PATCH 3/4] distutils-r1.eclass: Use 'dosym -r' in EAPI 8
Signed-off-by: Micha? Górny <mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 87091951fafa..749809378c93 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -775,8 +775,10 @@ _distutils-r1_wrap_scripts() {
local basename=${f##*/}

debug-print "${FUNCNAME}: installing wrapper at ${bindir}/${basename}"
- _python_ln_rel "${ED%/}"/usr/lib/python-exec/python-exec2 \
- "${D%/}${bindir}/${basename}" || die
+ local dosym=dosym
+ [[ ${EAPI} == [67] ]] && dosym=dosym8
+ "${dosym}" -r /usr/lib/python-exec/python-exec2 \
+ "${bindir#${EPREFIX}}/${basename}"
done

for f in "${non_python_files[@]}"; do
--
2.32.0
Re: [PATCH 3/4] distutils-r1.eclass: Use 'dosym -r' in EAPI 8 [ In reply to ]
>>>>> On Fri, 25 Jun 2021, Micha? Górny wrote:

> + local dosym=dosym
> + [[ ${EAPI} == [67] ]] && dosym=dosym8
> + "${dosym}" -r /usr/lib/python-exec/python-exec2 \
> + "${bindir#${EPREFIX}}/${basename}"

Shouldn't the eclass inherit eapi8-dosym in EAPIs 6 and 7?

Ulrich
Re: [PATCH 3/4] distutils-r1.eclass: Use 'dosym -r' in EAPI 8 [ In reply to ]
On Sat, 2021-06-26 at 09:58 +0200, Ulrich Mueller wrote:
> > > > > > On Fri, 25 Jun 2021, Micha? Górny wrote:
>
> > + local dosym=dosym
> > + [[ ${EAPI} == [67] ]] && dosym=dosym8
> > + "${dosym}" -r /usr/lib/python-exec/python-
> > exec2 \
> > + "${bindir#${EPREFIX}}/${basename}"
>
> Shouldn't the eclass inherit eapi8-dosym in EAPIs 6 and 7?

It relies on python-utils-r1 taking care of that.

--
Best regards,
Micha? Górny