Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: dev-lang/python/
Date: Thu, 12 May 2022 17:10:39
Message-Id: 1652375429.5952afb72168c02fa2486f222cc44167083c43ec.grobian@gentoo
1 commit: 5952afb72168c02fa2486f222cc44167083c43ec
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 12 17:10:29 2022 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Thu May 12 17:10:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=5952afb7
7
8 dev-lang/python-3.9.12: fix installation on Darwin
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
12
13 dev-lang/python/python-3.9.12.ebuild | 26 +++++++++++++-------------
14 1 file changed, 13 insertions(+), 13 deletions(-)
15
16 diff --git a/dev-lang/python/python-3.9.12.ebuild b/dev-lang/python/python-3.9.12.ebuild
17 index 6ac508e466..6e5c470e8e 100644
18 --- a/dev-lang/python/python-3.9.12.ebuild
19 +++ b/dev-lang/python/python-3.9.12.ebuild
20 @@ -201,17 +201,6 @@ src_configure() {
21 dbmliborder+="${dbmliborder:+:}gdbm"
22 fi
23
24 - if use aqua ; then
25 - ECONF_SOURCE="${S}" OPT="" \
26 - econf \
27 - --enable-framework="${EPREFIX}" \
28 - --config-cache
29 - fi
30 -
31 - # flock on 32-bits sparc Solaris is broken
32 - [[ ${CHOST} == sparc-*-solaris* ]] && \
33 - export ac_cv_flock_decl=no
34 -
35 if use pgo; then
36 local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
37 export PROFILE_TASK="-m test -j${jobs} --pgo-extended -x test_gdb -u-network"
38 @@ -227,6 +216,10 @@ src_configure() {
39 fi
40 fi
41
42 + # flock on 32-bits sparc Solaris is broken
43 + [[ ${CHOST} == sparc-*-solaris* ]] && \
44 + export ac_cv_flock_decl=no
45 +
46 local myeconfargs=(
47 # glibc-2.30 removes it; since we can't cleanly force-rebuild
48 # Python on glibc upgrade, remove it proactively to give
49 @@ -260,6 +253,13 @@ src_configure() {
50 local -x LDFLAGS_NODIST=${LDFLAGS}
51 local -x CFLAGS= LDFLAGS=
52
53 + if use aqua ; then
54 + ECONF_SOURCE="${S}" OPT="" \
55 + econf \
56 + --enable-framework="${EPREFIX}" \
57 + --config-cache
58 + fi
59 +
60 econf "${myeconfargs[@]}"
61
62 if grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
63 @@ -379,8 +379,8 @@ src_install() {
64 # Remove static library
65 rm "${ED}"/usr/$(get_libdir)/libpython*.a || die
66
67 - # Fix collisions between different slots of Python.
68 - rm "${ED}/usr/$(get_libdir)/libpython3$(get_libname)" || die
69 + # Fix collisions between different slots of Python. (if it exists, Darwin)
70 + rm -f "${ED}/usr/$(get_libdir)/libpython3$(get_libname)" || die
71
72 # Cheap hack to get version with ABIFLAGS
73 local abiver=$(cd "${ED}/usr/include"; echo python*)