commit:     849472dfa3e08b890b31bf72e11f5969e9ce2db2
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 28 06:26:35 2023 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jun 28 06:26:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=849472df

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 <AT> gentoo.org>

 dev-lang/python/python-3.11.3.ebuild | 10 ++++++++++
 1 file changed, 10 insertions(+)

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

Reply via email to