Skip to content

Commit

Permalink
dev-lang/python-3.11.7: fixes for older Darwin
Browse files Browse the repository at this point in the history
- drop Catalina workaround, likely incorrect bug #921332
- update Darwin 9 KQUEUE fix, stuff changed here

Bug: https://bugs.gentoo.org/921332
Signed-off-by: Fabian Groffen <[email protected]>
  • Loading branch information
grobian committed Jan 23, 2024
1 parent eaff3b8 commit 7d2508d
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions dev-lang/python/python-3.11.7.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MY_PV=${PV/_rc/rc}
MY_P="Python-${MY_PV%_p*}"
PYVER=$(ver_cut 1-2)
PATCHSET="python-gentoo-patches-${MY_PV}_p1"
PREFIX_PATCHSET="python-prefix-gentoo-${MY_PV}-patches-r0"
PREFIX_PATCHSET="python-prefix-gentoo-${MY_PV}-patches-r1"

DESCRIPTION="An interpreted, interactive, object-oriented programming language"
HOMEPAGE="
Expand Down Expand Up @@ -150,24 +150,6 @@ src_prepare() {
-e '/^CFLAGS_ALIASING=/s/$/ -fno-tree-ter/' Makefile.pre.in || die
fi

# Darwin 9's kqueue seems to act up (at least at this stage), so
# make Python's selectors resort to poll() or select()
if [[ ${CHOST} == powerpc*-darwin9 ]] ; then
sed -i \
-e 's/KQUEUE/KQUEUE_DISABLED/' \
configure.ac configure || die
fi

if [[ ${CHOST} == *-darwin19 ]] ; then
# HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH is set because
# _dyld_shared_cache_contains_path could be found, yet it cannot
# be resolved when dlopen()ing, so simply pretend it doesn't
# exist here
sed -i \
-e 's/_dyld_shared_cache_contains_path/disabled&/' \
configure.ac configure || die
fi

if [[ ${CHOST} == *-solaris* ]] ; then
# OpenIndiana/Solaris 11 defines inet_aton no longer in
# libresolv, so use hstrerror to check if we need -lresolv
Expand Down Expand Up @@ -301,6 +283,10 @@ src_configure() {
# flock on 32-bits sparc Solaris is broken
[[ ${CHOST} == sparc-*-solaris* ]] && \
export ac_cv_flock_decl=no
# Darwin 9's kqueue seems to act up (at least at this stage), so
# make Python's selectors resort to poll() or select()
[[ ${CHOST} == powerpc*-darwin9 ]] && \
export ac_cv_func_kqueue=no

local myeconfargs=(
# glibc-2.30 removes it; since we can't cleanly force-rebuild
Expand Down

0 comments on commit 7d2508d

Please sign in to comment.