<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/28948d57077c66da3d161e0340212007dc3b1e88">https://github.com/macports/macports-ports/commit/28948d57077c66da3d161e0340212007dc3b1e88</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 28948d5 lang/ruby: fix build error on macOS 10.15 Catalina
</span>28948d5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 28948d57077c66da3d161e0340212007dc3b1e88
</span>Author: kimura wataru <kimuraw@macports.org>
AuthorDate: Tue Oct 15 22:57:22 2019 +0900
<span style='display:block; white-space:pre;color:#404040;'> lang/ruby: fix build error on macOS 10.15 Catalina
</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/59216
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Switch a compiler option to -O1 from -Os on Catalina to fix miniruby's segv.
</span>---
lang/ruby/Portfile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby/Portfile b/lang/ruby/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9e6bc80..0f985c7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,7 +12,7 @@ deprecated.upstream_support no
</span>
name ruby
version 1.8.7-p374
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 10
</span>
categories lang ruby
maintainers {kimuraw @kimuraw}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -87,14 +87,20 @@ use_parallel_build no
</span>
# [OK] apple-gcc-4.2
# clang (Xcode 4.2 or later) with -O[0s]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# clang (Xcode 11 on macOS 10.15) with -O[01]
</span> # [NG] llvm-gcc-4.2
# clang (Xcode 4.1 or earlier)
# clang (Xcode 4.2 or later) with -O[12]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# clang (Xcode 11 on macOS 10.15) with -O[s2]
</span> # TODO: When was this last verified? Is there a ticket open? Radar?
compiler.blacklist-append *llvm-gcc-4.2 {clang < 211}
if {[string match *clang* ${configure.compiler}]} {
configure.optflags -Os
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} >= 19} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/59216
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.optflags -O1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
configure.args --enable-shared \
</pre><pre style='margin:0'>
</pre>