
This change ports several established patches to the Python 3.6.15 build, enabling compilation on arm64/Apple M1 architectures: 1. `0001-Detect-arm64-in-configure.patch` - Updates configure to detect arm64 architectures (port of an existing pyenv patch for 2.7.18). 2. `0002-bpo-36231-Support-building-on-macOS-without-usr-incl.patch` - Adds macOS SDK root computation logic for determining include paths (port of existing Python patches introduced in 2.7.17 and 3.7.4). 3. `0003-Fix-macOS-_tkinter-use-of-Tck-Tk-in-Library-Framewor.patch` - Fixes Tcl/Tk support on macOS (port of an existing pyenv patch for 2.7.18). 4. `0004-Port-ctypes-and-system-libffi-patches-for-arm64-macO.patch` - Fixes system `ffi.h`/`libffi` path determination and usage and enables calling of variadic functions, fixing ctypes support (consolidated port of existing pyenv patches for 2.7.18 that iterate on this logic). 5. `0005-BPO-41100-Support-macOS-11-when-building-GH-21113.patch` - Updates Darwin version checks to handle macOS 11's major version bump (port of Python patches introduced in 3.7.0 and 3.9.0). 6. `0006-bpo-41100-fix-_decimal-for-arm64-Mac-OS-GH-21228.patch` - Adds arm64 to the list of allowable architectures for the `decimal` module (port of Python patch introduced in 3.8.10).
42 lines
1009 B
Diff
42 lines
1009 B
Diff
From 002501946bad91a308f37a09204393c172f03c3e Mon Sep 17 00:00:00 2001
|
|
From: Takumi Sueda <puhitaku@gmail.com>
|
|
Date: Sat, 11 Sep 2021 16:50:14 +0900
|
|
Subject: [PATCH 2/6] Detect arm64 in configure
|
|
|
|
---
|
|
configure | 3 +++
|
|
configure.ac | 3 +++
|
|
2 files changed, 6 insertions(+)
|
|
|
|
diff --git a/configure b/configure
|
|
index e39c16eee2..8dc1fc7595 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -9230,6 +9230,9 @@ fi
|
|
ppc)
|
|
MACOSX_DEFAULT_ARCH="ppc64"
|
|
;;
|
|
+ arm64)
|
|
+ MACOSX_DEFAULT_ARCH="arm64"
|
|
+ ;;
|
|
*)
|
|
as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
|
|
;;
|
|
diff --git a/configure.ac b/configure.ac
|
|
index cf280506bd..34846a7df3 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -2435,6 +2435,9 @@ case $ac_sys_system/$ac_sys_release in
|
|
ppc)
|
|
MACOSX_DEFAULT_ARCH="ppc64"
|
|
;;
|
|
+ arm64)
|
|
+ MACOSX_DEFAULT_ARCH="arm64"
|
|
+ ;;
|
|
*)
|
|
AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
|
|
;;
|
|
--
|
|
2.30.1 (Apple Git-130)
|
|
|