<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/8522b08b8a42aaee3b4d9b0485ec2ef4cf3d3e53">https://github.com/macports/macports-ports/commit/8522b08b8a42aaee3b4d9b0485ec2ef4cf3d3e53</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 8522b08 lang/ruby24: update to 2.4.3, includes fixes for CVE-2017-17405
</span>8522b08 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8522b08b8a42aaee3b4d9b0485ec2ef4cf3d3e53
</span>Author: kimura wataru <kimuraw@macports.org>
AuthorDate: Fri Dec 15 07:39:58 2017 +0900
<span style='display:block; white-space:pre;color:#404040;'> lang/ruby24: update to 2.4.3, includes fixes for CVE-2017-17405
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> CVE-2017-17405: Command injection vulnerability in Net::FTP
</span><span style='display:block; white-space:pre;color:#404040;'> https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> fix install_name of libruby on darwin (#54866).
</span><span style='display:block; white-space:pre;color:#404040;'> this problem was fixed at upstream trunk (2.5.0-dev), but the change
</span><span style='display:block; white-space:pre;color:#404040;'> is not merged into 2.4.
</span>---
lang/ruby24/Portfile | 33 ++++---
lang/ruby24/files/patch-CVE-2017-0903.diff | 151 -----------------------------
lang/ruby24/files/patch-configure.diff | 29 +++---
3 files changed, 28 insertions(+), 185 deletions(-)
<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 d5a9d55..038b6a2 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;'>@@ -4,8 +4,8 @@ PortSystem 1.0
</span> PortGroup select 1.0
name ruby24
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 2.4.2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.4.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
categories lang ruby
maintainers kimuraw openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,17 +26,17 @@ use_bzip2 yes
</span> distname ruby-${version}
dist_subdir ruby24
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# ruby-2.4.2 cannot link libgmp nor jemalloc (will be fixed in 2.4.3)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# https://bugs.ruby-lang.org/issues/13402
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# https://bugs.ruby-lang.org/issues/13899
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# fix #54866: correct install_name of libruby by deleting TEENY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# $ otool -D /opt/local/lib/libruby.2.4.3.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# /opt/local/lib/libruby.2.4.3.dylib:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# /opt/local/lib/libruby.2.4.dylib
</span> patchfiles patch-configure.diff
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append patch-CVE-2017-0903.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 5ff3ad6ec816bcce8806a55090936ab6 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 0e44cf9b76d01be568049a634eba8a0959a69ff2 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 a8a50a9297ff656e5230bf0f945acd69cc02a097 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 08e72d0cbe870ed1317493600fbbad5995ea3af2d0166585e7ecc85d04cc50dc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums md5 ac8215ba561cc7c79b4f61daee11b706 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 f02b5ca6b577351c8852a99eecaa4d4a3dda026f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha1 3ca96536320b915762d57fe1ee540df6810bf631 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 0a703dffb7737f56e979c9ebe2482f07751803c71e307c20446b581e0f12cf30
</span>
use_parallel_build no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -84,15 +84,16 @@ post-destroot {
</span> destroot.keepdirs-append ${subdir}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # workaround to fix #54866
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # workaround to fix #54866 for versions 2.4.0..2.4.2
</span> # generate past versions of libruby as symlink
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # - libruby.2.4.0.dylib -> libruby.2.4.2.dylib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # - libruby.2.4.1.dylib -> libruby.2.4.2.dylib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach v {2.4.0 2.4.1} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # - libruby.2.4.[012].dylib -> libruby.2.4.x.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # libruby of 2.4.3 or later has corrected install_name "libruby.2.4.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # from patch-configure.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach v {2.4.0 2.4.1 2.4.2} {
</span> copy ${destroot}${prefix}/lib/libruby.2.4.dylib \
${destroot}${prefix}/lib/libruby.${v}.dylib
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # install destination of commands from port:rb21-*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # install destination of commands from port:rb24-*
</span> xinstall -m 0755 -d ${destroot}${prefix}/libexec/ruby2.4
destroot.keepdirs-append ${destroot}${prefix}/libexec/ruby2.4
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby24/files/patch-CVE-2017-0903.diff b/lang/ruby24/files/patch-CVE-2017-0903.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 65f96cc..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby24/files/patch-CVE-2017-0903.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,151 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 4e206183021b2463e25b2495d3986e9ccc3fb08e Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From: Aaron Patterson <aaron.patterson@gmail.com>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Date: Fri, 6 Oct 2017 11:11:40 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH] Whitelist classes and symbols that are in Gem spec YAML
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-This patch adds a method for loading YAML specs from a gem and
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-whitelists classes and symbols that are allowed in the spec. Then it
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-changes calls to YAML.load to call the whitelisted "safe" loader
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-instead.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-[CVE-2017-0903]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>----
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lib/rubygems.rb | 3 ++-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lib/rubygems/config_file.rb | 2 +-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lib/rubygems/package.rb | 2 +-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lib/rubygems/package/old.rb | 2 +-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lib/rubygems/safe_yaml.rb | 48 +++++++++++++++++++++++++++++++++++++++++++
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lib/rubygems/specification.rb | 2 +-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 6 files changed, 54 insertions(+), 5 deletions(-)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- create mode 100644 lib/rubygems/safe_yaml.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/lib/rubygems.rb b/lib/rubygems.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index d819bdee..ab004e8e 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- lib/rubygems.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ lib/rubygems.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -690,7 +690,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- unless test_syck
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- begin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- gem 'psych', '>= 1.2.1'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ gem 'psych', '>= 2.0.0'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rescue Gem::LoadError
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # It's OK if the user does not have the psych gem installed. We will
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # attempt to require the stdlib version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -714,6 +714,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- require 'yaml'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ require 'rubygems/safe_yaml'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # If we're supposed to be using syck, then we may have to force
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # activate it via the YAML::ENGINE API.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index b98d30cc..a4efed0f 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- lib/rubygems/config_file.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ lib/rubygems/config_file.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -354,7 +354,7 @@ if you believe they were disclosed to a third party.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return {} unless filename and File.exist? filename
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- begin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- content = YAML.load(File.read(filename))
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ content = Gem::SafeYAML.load(File.read(filename))
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- unless content.kind_of? Hash
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- warn "Failed to load #{filename} because it doesn't contain valid YAML hash"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index c36e71d8..77811ed5 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- lib/rubygems/package.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ lib/rubygems/package.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -468,7 +468,7 @@ EOM
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- @checksums = gem.seek 'checksums.yaml.gz' do |entry|
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Zlib::GzipReader.wrap entry do |gz_io|
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- YAML.load gz_io.read
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Gem::SafeYAML.safe_load gz_io.read
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/lib/rubygems/package/old.rb b/lib/rubygems/package/old.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 88193b98..f6e6e67c 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- lib/rubygems/package/old.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ lib/rubygems/package/old.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -101,7 +101,7 @@ class Gem::Package::Old < Gem::Package
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- header << line
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- YAML.load header
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Gem::SafeYAML.safe_load header
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ##
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/lib/rubygems/safe_yaml.rb b/lib/rubygems/safe_yaml.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-new file mode 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 00000000..b98cfaa5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- /dev/null
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ lib/rubygems/safe_yaml.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -0,0 +1,48 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+module Gem
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ###
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # This module is used for safely loading YAML specs from a gem. The
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # `safe_load` method defined on this module is specifically designed for
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # loading Gem specifications. For loading other YAML safely, please see
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # Psych.safe_load
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ module SafeYAML
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ WHITELISTED_CLASSES = %w(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Symbol
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Time
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Date
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Gem::Dependency
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Gem::Platform
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Gem::Requirement
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Gem::Specification
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Gem::Version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Gem::Version::Requirement
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ YAML::Syck::DefaultKey
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Syck::DefaultKey
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ WHITELISTED_SYMBOLS = %w(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ development
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ runtime
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if ::YAML.respond_to? :safe_load
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ def self.safe_load input
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ::YAML.safe_load(input, WHITELISTED_CLASSES, WHITELISTED_SYMBOLS, true)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ def self.load input
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ::YAML.safe_load(input, [::Symbol])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ warn "YAML safe loading is not available. Please upgrade psych to a version that supports safe loading (>= 2.0)."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ def self.safe_load input, *args
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ::YAML.load input
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ def self.load input
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ::YAML.load input
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+end
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index a23ffa22..2d71d184 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- lib/rubygems/specification.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ lib/rubygems/specification.rb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1124,7 +1124,7 @@ class Gem::Specification < Gem::BasicSpecification
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Gem.load_yaml
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- input = normalize_yaml_input input
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- spec = YAML.load input
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ spec = Gem::SafeYAML.safe_load input
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if spec && spec.class == FalseClass then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- raise Gem::EndOfYAMLException
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-2.11.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby24/files/patch-configure.diff b/lang/ruby24/files/patch-configure.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 3d63e91..9eaeab0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby24/files/patch-configure.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby24/files/patch-configure.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,18 +1,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- configure.orig 2017-09-15 23:26:41.000000000 +0900
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ configure 2017-09-15 23:26:59.000000000 +0900
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -10614,6 +10614,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ac_res=$ac_cv_search___gmpz_init
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test "$ac_res" != no; then :
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -10683,6 +10684,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ac_res=$ac_cv_search_malloc_conf
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test "$ac_res" != no; then :
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ $as_echo "#define HAVE_LIBJEMALLOC 1" >>confdefs.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- with_jemalloc=no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2017-12-14 23:36:11.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2017-12-15 06:38:45.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25691,7 +25691,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libprefix="@executable_path/../${libdir_basename}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBRUBY_RELATIVE=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-install_name '${libprefix}'/$(LIBRUBY_SO)'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-install_name '${libprefix}'/lib$(RUBY_BASE_NAME).$(MAJOR).$(MINOR).dylib'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-compatibility_version $(MAJOR).$(MINOR)'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-current_version $(RUBY_PROGRAM_VERSION)'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$visibility_option" = ld; then
</span></pre><pre style='margin:0'>
</pre>