<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/581f300c466d0687854f4e55aa975fef30025cae">https://github.com/macports/macports-ports/commit/581f300c466d0687854f4e55aa975fef30025cae</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 581f300c466 python312: Fix build on 10.4 i386
</span>581f300c466 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 581f300c466d0687854f4e55aa975fef30025cae
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Fri Oct 20 21:31:10 2023 -0700
<span style='display:block; white-space:pre;color:#404040;'> python312: Fix build on 10.4 i386
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Python 3.12 needs thread-local storage, which isn't guaranteed by
</span><span style='display:block; white-space:pre;color:#404040;'> compiler.c_standard alone. It's also necessary to set
</span><span style='display:block; white-space:pre;color:#404040;'> compiler.thread_local_storage.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This changes the default compiler selection on 10.4 i386 from
</span><span style='display:block; white-space:pre;color:#404040;'> 'MacPorts Clang 3.4' to 'MacPorts GCC 7'. 10.4 x86_64 is untested.
</span><span style='display:block; white-space:pre;color:#404040;'> In all other cases, the compiler selection is unaffected.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Since this change only affects a broken build, no revbump is needed.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'> Abbreviated (default variants only) due to the limited scope of the
</span><span style='display:block; white-space:pre;color:#404040;'> change.
</span><span style='display:block; white-space:pre;color:#404040;'> Successfully builds on 10.4-10.5 ppc, 10.4-10.6 i386, 10.5-10.15
</span><span style='display:block; white-space:pre;color:#404040;'> x86_64, and 11.x-14.x arm64.
</span>---
lang/python312/Portfile | 1 +
1 file changed, 1 insertion(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python312/Portfile b/lang/python312/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 60a57792692..e6053a550f3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python312/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python312/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -56,6 +56,7 @@ depends_run port:python_select \
</span> port:python3_select
compiler.c_standard 2011
<span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.thread_local_storage yes
</span>
configure.args --enable-framework=${frameworks_dir} \
--enable-ipv6 \
</pre><pre style='margin:0'>
</pre>