mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-10 04:23:47 -05:00
There are no new (glaring) platform incompatibilities in MacOS 12 so those releases should technically run in it as well
81 lines
2.8 KiB
Diff
81 lines
2.8 KiB
Diff
From 785de1ab8b4ab8b89d0e62ffd7521b5b2636923a Mon Sep 17 00:00:00 2001
|
|
From: David Bohman <debohman@gmail.com>
|
|
Date: Tue, 12 Oct 2021 17:10:26 -0700
|
|
Subject: [PATCH] bpo-45405: Prevent ``internal configure error`` when running
|
|
``configure`` with recent versions of non-Apple clang. (#28845)
|
|
|
|
Change the configure logic to function properly on macOS when the compiler
|
|
outputs a platform triplet for option --print-multiarch.
|
|
|
|
Co-authored-by: Ned Deily <nad@python.org>
|
|
---
|
|
.../next/Build/2021-10-11-16-27-38.bpo-45405.iSfdW5.rst | 2 ++
|
|
configure | 8 +++++---
|
|
configure.ac | 8 +++++---
|
|
3 files changed, 12 insertions(+), 6 deletions(-)
|
|
create mode 100644 Misc/NEWS.d/next/Build/2021-10-11-16-27-38.bpo-45405.iSfdW5.rst
|
|
|
|
diff --git a/Misc/NEWS.d/next/Build/2021-10-11-16-27-38.bpo-45405.iSfdW5.rst b/Misc/NEWS.d/next/Build/2021-10-11-16-27-38.bpo-45405.iSfdW5.rst
|
|
new file mode 100644
|
|
index 0000000000..a2dc5bcc32
|
|
--- /dev/null
|
|
+++ b/Misc/NEWS.d/next/Build/2021-10-11-16-27-38.bpo-45405.iSfdW5.rst
|
|
@@ -0,0 +1,2 @@
|
|
+Prevent ``internal configure error`` when running ``configure``
|
|
+with recent versions of non-Apple clang. Patch by David Bohman.
|
|
diff --git a/configure b/configure
|
|
index ffa61c1dc5..18597d4de8 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -5196,9 +5196,6 @@ $as_echo "$as_me:
|
|
fi
|
|
|
|
|
|
-MULTIARCH=$($CC --print-multiarch 2>/dev/null)
|
|
-
|
|
-
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
|
|
$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; }
|
|
cat >> conftest.c <<EOF
|
|
@@ -5357,6 +5354,11 @@ $as_echo "none" >&6; }
|
|
fi
|
|
rm -f conftest.c conftest.out
|
|
|
|
+if test x$PLATFORM_TRIPLET != xdarwin; then
|
|
+ MULTIARCH=$($CC --print-multiarch 2>/dev/null)
|
|
+fi
|
|
+
|
|
+
|
|
if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
|
|
if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
|
|
as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 8fe5fa5742..577ce9040f 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -727,9 +727,6 @@ then
|
|
fi
|
|
|
|
|
|
-MULTIARCH=$($CC --print-multiarch 2>/dev/null)
|
|
-AC_SUBST(MULTIARCH)
|
|
-
|
|
AC_MSG_CHECKING([for the platform triplet based on compiler characteristics])
|
|
cat >> conftest.c <<EOF
|
|
#undef bfin
|
|
@@ -885,6 +882,11 @@ else
|
|
fi
|
|
rm -f conftest.c conftest.out
|
|
|
|
+if test x$PLATFORM_TRIPLET != xdarwin; then
|
|
+ MULTIARCH=$($CC --print-multiarch 2>/dev/null)
|
|
+fi
|
|
+AC_SUBST(MULTIARCH)
|
|
+
|
|
if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
|
|
if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
|
|
AC_MSG_ERROR([internal configure error for the platform triplet, please file a bug report])
|
|
--
|
|
2.36.0
|
|
|