summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2023-06-28 08:26:35 +0200
committerFabian Groffen <grobian@gentoo.org>2023-06-28 08:26:35 +0200
commit849472dfa3e08b890b31bf72e11f5969e9ce2db2 (patch)
tree1c2441ffe925a54094b54c9b3b12a5e8b9ccaeae
parentscripts/bootstrap-prefix: provide safe compiler wrappers in stage1 (diff)
downloadprefix-849472dfa3e08b890b31bf72e11f5969e9ce2db2.tar.gz
prefix-849472dfa3e08b890b31bf72e11f5969e9ce2db2.tar.bz2
prefix-849472dfa3e08b890b31bf72e11f5969e9ce2db2.zip
dev-lang/python-3.11.3: hide __dyld_shared_cache_contains_path on macOS 10.15
Bug: https://bugs.gentoo.org/908187 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--dev-lang/python/python-3.11.3.ebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev-lang/python/python-3.11.3.ebuild b/dev-lang/python/python-3.11.3.ebuild
index 33c454eac4..0c2e6778d4 100644
--- a/dev-lang/python/python-3.11.3.ebuild
+++ b/dev-lang/python/python-3.11.3.ebuild
@@ -159,6 +159,16 @@ src_prepare() {
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