commit:     d6138cf58cf7cce3b98c649099ea2f920513820f
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 22 12:42:29 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Aug 22 12:42:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d6138cf5

dev-lang/python-3.9.6_p1: fix build on Darwin 19

Package-Manager: Portage-3.0.21-prefix, Repoman-3.0.3
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

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

diff --git a/dev-lang/python/python-3.9.6_p1.ebuild 
b/dev-lang/python/python-3.9.6_p1.ebuild
index 951f0c2540..844cd297c2 100644
--- a/dev-lang/python/python-3.9.6_p1.ebuild
+++ b/dev-lang/python/python-3.9.6_p1.ebuild
@@ -124,6 +124,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
+
        eautoreconf
 }
 

Reply via email to