<pre style='margin:0'>
kimura wataru (kimuraw) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f2be812917312f8d90913f3ce7d832fd0bcca707">https://github.com/macports/macports-ports/commit/f2be812917312f8d90913f3ce7d832fd0bcca707</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 f2be8129173 lang/ruby33: fix build error on macOS 10.7, 10.8
</span>f2be8129173 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f2be812917312f8d90913f3ce7d832fd0bcca707
</span>Author: kimura wataru <kimuraw@i.nifty.jp>
AuthorDate: Sat Jul 13 19:49:27 2024 +0900
<span style='display:block; white-space:pre;color:#404040;'> lang/ruby33: fix build error on macOS 10.7, 10.8
</span>---
lang/ruby33/Portfile | 6 +++++-
lang/ruby33/files/patch-vm_insnhelper.c.diff | 13 +++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby33/Portfile b/lang/ruby33/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ec20b1fa32f..d3f09f02419 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby33/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby33/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,7 +21,7 @@ set ruby_patch 4
</span> set ruby_ver_nodot [string map {. {}} ${ruby_ver}]
name ruby${ruby_ver_nodot}
version ${ruby_ver}.${ruby_patch}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories lang ruby
maintainers {kimuraw @kimuraw} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -74,6 +74,10 @@ select.file ${filespath}/ruby${ruby_ver_nodot}
</span> #
patchfiles-append patch-sources.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# fix build error on macOS 10.7, 10.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# this problem was reported to ruby-dev team at 2024-07-13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-vm_insnhelper.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> #-------------------------------------------------------------------------------
# Fix compilation on buildbots for 10.12 and earlier.
# Issue: 62183: error: use of undeclared identifier 'fmt'; did you mean 'fma'?
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby33/files/patch-vm_insnhelper.c.diff b/lang/ruby33/files/patch-vm_insnhelper.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..65f1d4aea05
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby33/files/patch-vm_insnhelper.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/vm_insnhelper.c b/vm_insnhelper.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 06419a85f..5a97b4bdd 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/vm_insnhelper.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/vm_insnhelper.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -423,7 +423,7 @@ vm_push_frame(rb_execution_context_t *ec,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ This is a no-op in all cases we've looked at (https://godbolt.org/z/3oxd1446K), but should guarantee it for all
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ future/untested compilers/platforms. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #ifdef HAVE_DECL_ATOMIC_SIGNAL_FENCE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #if defined HAVE_DECL_ATOMIC_SIGNAL_FENCE && HAVE_DECL_ATOMIC_SIGNAL_FENCE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ atomic_signal_fence(memory_order_seq_cst);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>