<pre style='margin:0'>
tobypeterson pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4a612d6f2f632c5b2d46b3d7a4ee9c623bab8e66">https://github.com/macports/macports-ports/commit/4a612d6f2f632c5b2d46b3d7a4ee9c623bab8e66</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 4a612d6f2f6 python38: fix build for arm64
</span>4a612d6f2f6 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 4a612d6f2f632c5b2d46b3d7a4ee9c623bab8e66
</span>Author: Toby Peterson <toby@macports.org>
AuthorDate: Sat Jul 18 14:29:04 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> python38: fix build for arm64
</span>---
lang/python38/Portfile | 3 ++-
lang/python38/files/patch-arm64.diff | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python38/Portfile b/lang/python38/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 65390f43841..42be1214835 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python38/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python38/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,7 +37,8 @@ patchfiles patch-setup.py.diff \
</span> patch-configure.diff \
patch-Lib-ctypes-macholib-dyld.py.diff \
patch-libedit.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-configure-xcode4bug.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-configure-xcode4bug.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-arm64.diff
</span>
if {${os.platform} eq "darwin" && ${os.major} < 10} {
# work around no copyfile and/or pthread_threadid_np on older systems
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python38/files/patch-arm64.diff b/lang/python38/files/patch-arm64.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3c9a1e56866
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python38/files/patch-arm64.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,35 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Mac/Tools/pythonw.c 2020-07-13 05:11:53.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Mac/Tools/pythonw.c 2020-07-18 14:22:39.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -121,6 +121,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cpu_types[0] = CPU_TYPE_POWERPC;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined(__i386__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cpu_types[0] = CPU_TYPE_X86;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif defined(__arm64__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ cpu_types[0] = CPU_TYPE_ARM64;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # error "Unknown CPU"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Modules/_decimal/libmpdec/mpdecimal.h 2020-07-13 05:11:53.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Modules/_decimal/libmpdec/mpdecimal.h 2020-07-18 14:24:04.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -135,6 +135,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined(__x86_64__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define CONFIG_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define ASM
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #elif defined(__arm64__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #define CONFIG_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #define ANSI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #error "unknown architecture for universal build."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure 2020-07-13 05:11:53.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2020-07-18 14:21:25.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -9260,6 +9260,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case `/usr/bin/arch` in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ arm64)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ MACOSX_DEFAULT_ARCH="arm64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ i386)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MACOSX_DEFAULT_ARCH="x86_64"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span></pre><pre style='margin:0'>
</pre>