<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0c6b77f5ceffc8f8d7035d8451cf973a7394a7d4">https://github.com/macports/macports-ports/commit/0c6b77f5ceffc8f8d7035d8451cf973a7394a7d4</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 0c6b77f5cef python313-devel: handle undefined TARGET_OS_OSX
</span>0c6b77f5cef is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 0c6b77f5ceffc8f8d7035d8451cf973a7394a7d4
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Apr 15 22:42:55 2024 +1000
<span style='display:block; white-space:pre;color:#404040;'> python313-devel: handle undefined TARGET_OS_OSX
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/69729
</span>---
lang/python313-devel/Portfile | 3 ++-
lang/python313-devel/files/_testexternalinspection.c.patch | 14 ++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python313-devel/Portfile b/lang/python313-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b3a5261ea6c..39d1d82cbf3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python313-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python313-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,7 +32,8 @@ patchfiles patch-configure.diff \
</span> configure-disable-libuuid.patch \
configure-disable-tkinter.patch \
readline-functypes.patch \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- platform_triplet.c.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ platform_triplet.c.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _testexternalinspection.c.patch
</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/python313-devel/files/_testexternalinspection.c.patch b/lang/python313-devel/files/_testexternalinspection.c.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..10a204669a7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python313-devel/files/_testexternalinspection.c.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Modules/_testexternalinspection.c.orig 2024-04-09 19:56:22
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Modules/_testexternalinspection.c 2024-04-15 22:40:19
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -17,6 +17,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <TargetConditionals.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// TARGET_OS_OSX is not defined by older macOS SDKs. It is always
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// defined to 0 when targeting iOS.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# ifndef TARGET_OS_OSX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define TARGET_OS_OSX 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if TARGET_OS_OSX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <libproc.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <mach-o/fat.h>
</span></pre><pre style='margin:0'>
</pre>