<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/0ce2be89f596f5c5540972ea4fb9cafeb835cbf3">https://github.com/macports/macports-ports/commit/0ce2be89f596f5c5540972ea4fb9cafeb835cbf3</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 0ce2be8 lang/ruby24: add a workaround to fix #54866
</span>0ce2be8 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 0ce2be89f596f5c5540972ea4fb9cafeb835cbf3
</span>Author: kimura wataru <kimuraw@macports.org>
AuthorDate: Wed Sep 20 22:27:43 2017 +0900
<span style='display:block; white-space:pre;color:#404040;'> lang/ruby24: add a workaround to fix #54866
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> load error occurs at "require" a library that has native extension
</span><span style='display:block; white-space:pre;color:#404040;'> built with previous version of ruby-2.4.x.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> to avoid this problem, generate past versions of libruby as symlink:
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - libruby.2.4.0.dylib -> libruby.2.4.2.dylib
</span><span style='display:block; white-space:pre;color:#404040;'> - libruby.2.4.1.dylib -> libruby.2.4.2.dylib
</span>---
lang/ruby24/Portfile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby24/Portfile b/lang/ruby24/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ba20856..1cd7318 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby24/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby24/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup select 1.0
</span>
name ruby24
version 2.4.2
<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 openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -82,6 +82,14 @@ post-destroot {
</span> destroot.keepdirs-append ${subdir}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # workaround to fix #54866
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # generate past versions of libruby as symlink
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # - libruby.2.4.0.dylib -> libruby.2.4.2.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # - libruby.2.4.1.dylib -> libruby.2.4.2.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach v {2.4.0 2.4.1} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${destroot}${prefix}/lib/libruby.2.4.dylib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/lib/libruby.${v}.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> # install destination of commands from port:rb21-*
xinstall -m 0755 -d ${destroot}${prefix}/libexec/ruby2.4
destroot.keepdirs-append ${destroot}${prefix}/libexec/ruby2.4
</pre><pre style='margin:0'>
</pre>