<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/75cd6c1d0ac37f48a123ef122f6899f3a160e6ee">https://github.com/macports/macports-ports/commit/75cd6c1d0ac37f48a123ef122f6899f3a160e6ee</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 75cd6c1d0ac lang/ruby30 .. ruby24: fix build error at ext/openssl
</span>75cd6c1d0ac is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 75cd6c1d0ac37f48a123ef122f6899f3a160e6ee
</span>Author: kimura wataru <kimuraw@i.nifty.jp>
AuthorDate: Tue Nov 9 00:08:06 2021 +0900
<span style='display:block; white-space:pre;color:#404040;'> lang/ruby30 .. ruby24: fix build error at ext/openssl
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> see https://trac.macports.org/ticket/63845
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> pkg-config in ext/openssl/extconf.rb ignores PKG_CONFIG_PATH.
</span><span style='display:block; white-space:pre;color:#404040;'> it leads conflict between openssl-1.1 (from configure args --with-openssl-...)
</span><span style='display:block; white-space:pre;color:#404040;'> and openssl-3 (from $prefix/lib/pkgconfig/openssl.pc).
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> ext/openssl allows compiling without pkgconfig, then commented out pkg_config()
</span><span style='display:block; white-space:pre;color:#404040;'> in ext/openssl/extconf.rb.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> note: ruby23 or earlier might need same fix.
</span>---
lang/ruby24/Portfile | 4 +++-
lang/ruby24/files/patch-ext-openssl-extconf.rb.diff | 13 +++++++++++++
lang/ruby25/Portfile | 4 +++-
lang/ruby25/files/patch-ext-openssl-extconf.rb.diff | 13 +++++++++++++
lang/ruby26/Portfile | 4 +++-
lang/ruby26/files/patch-ext-openssl-extconf.rb.diff | 13 +++++++++++++
lang/ruby27/Portfile | 5 ++++-
lang/ruby27/files/patch-ext-openssl-extconf.rb.diff | 13 +++++++++++++
lang/ruby30/Portfile | 6 ++++--
lang/ruby30/files/patch-ext-openssl-extconf.rb.diff | 13 +++++++++++++
10 files changed, 82 insertions(+), 6 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 4770083da00..73a647fee68 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;'>@@ -10,7 +10,7 @@ deprecated.upstream_support no
</span>
name ruby24
version 2.4.10
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 8
</span>
categories lang ruby
maintainers {kimuraw @kimuraw} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,6 +45,8 @@ patchfiles-append patch-osversions.diff
</span> # from RUBY_ARCH and RUBY_PLATFORM in config.h
# https://trac.macports.org/ticket/58255
patchfiles-append patch-configure_cxx11.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fix ext/openssl uses wrong pkgconfig (#63845)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-ext-openssl-extconf.rb.diff
</span>
checksums md5 b10a7d2fcaf218c98edbaf57efc36e58 \
rmd160 0249650b9da5f11b52533827af5db809e1fa6277 \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby24/files/patch-ext-openssl-extconf.rb.diff b/lang/ruby24/files/patch-ext-openssl-extconf.rb.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1208131615f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby24/files/patch-ext-openssl-extconf.rb.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;'>+--- ext/openssl/extconf.rb.orig 2020-03-31 20:42:18.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ext/openssl/extconf.rb 2021-11-08 23:38:09.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -38,7 +38,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Logging::message "=== Checking for required stuff... ===\n"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-result = pkg_config("openssl") && have_header("openssl/ssl.h")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# mkmf#pkg_config() looks to ignore PKG_CONFIG_PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#result = pkg_config("openssl") && have_header("openssl/ssl.h")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++result = nil
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def find_openssl_library
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if $mswin || $mingw
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby25/Portfile b/lang/ruby25/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 19a2d7fe70f..cafaf9df426 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby25/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby25/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,7 +10,7 @@ deprecated.upstream_support no
</span>
name ruby25
version 2.5.9
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 3
</span>
categories lang ruby
maintainers {kimuraw @kimuraw} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -69,6 +69,8 @@ patchfiles-append patch-osversions.diff
</span> patchfiles-append patch-configure_cxx11.diff
# Fix test failure at ext/fiddle
patchfiles-append patch-test-fiddle-helper.rb.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fix ext/openssl uses wrong pkgconfig (#63845)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-ext-openssl-extconf.rb.diff
</span>
# replace old config.{guess,sub} with recent versions from automake
depends_build-append port:automake
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby25/files/patch-ext-openssl-extconf.rb.diff b/lang/ruby25/files/patch-ext-openssl-extconf.rb.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8d5dbdb4d9f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby25/files/patch-ext-openssl-extconf.rb.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;'>+--- ext/openssl/extconf.rb.orig 2021-04-05 20:46:35.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ext/openssl/extconf.rb 2021-11-08 23:24:58.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -38,7 +38,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Logging::message "=== Checking for required stuff... ===\n"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-result = pkg_config("openssl") && have_header("openssl/ssl.h")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# mkmf#pkg_config() looks to ignore PKG_CONFIG_PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#result = pkg_config("openssl") && have_header("openssl/ssl.h")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++result = nil
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def find_openssl_library
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if $mswin || $mingw
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby26/Portfile b/lang/ruby26/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2b0ff0bf835..12efde0e56e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby26/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby26/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup openssl 1.0
</span>
name ruby26
version 2.6.8
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 4
</span>
categories lang ruby
maintainers {kimuraw @kimuraw} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -79,6 +79,8 @@ patchfiles-append patch-tiger.diff
</span> patchfiles-append patch-osversions.diff
# Fix build with pre-C99 compilers and some locale settings
patchfiles-append patch-c99check.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Fix ext/openssl uses wrong pkgconfig (#63845)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-ext-openssl-extconf.rb.diff
</span>
# [NOTE] workaround for mismatch of sdk versions on macOS 11.x,
# such as MacOSX11.0.sdk (buildbot) <=> MacOSX11.1.sdk (user's Mac).
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby26/files/patch-ext-openssl-extconf.rb.diff b/lang/ruby26/files/patch-ext-openssl-extconf.rb.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..90510ec1689
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby26/files/patch-ext-openssl-extconf.rb.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;'>+--- ext/openssl/extconf.rb.orig 2021-07-07 19:38:58.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ext/openssl/extconf.rb 2021-11-08 22:10:21.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -38,7 +38,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Logging::message "=== Checking for required stuff... ===\n"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-result = pkg_config("openssl") && have_header("openssl/ssl.h")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# mkmf#pkg_config() looks to ignore PKG_CONFIG_PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#result = pkg_config("openssl") && have_header("openssl/ssl.h")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++result = nil
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def find_openssl_library
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if $mswin || $mingw
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby27/Portfile b/lang/ruby27/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e28bf62f5b0..121558e4be7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup openssl 1.0
</span>
name ruby27
version 2.7.4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 3
</span>
categories lang ruby
maintainers {kimuraw @kimuraw} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,6 +49,9 @@ depends_skip_archcheck pkgconfig
</span> select.group ruby
select.file ${filespath}/ruby27
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# patch-ext-openssl-extconf.rb.diff: fix ext/openssl uses wrong pkgconfig (#63845)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-ext-openssl-extconf.rb.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args --enable-shared \
--enable-install-static-library \
--disable-install-doc \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby27/files/patch-ext-openssl-extconf.rb.diff b/lang/ruby27/files/patch-ext-openssl-extconf.rb.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..85652479d86
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby27/files/patch-ext-openssl-extconf.rb.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;'>+--- ext/openssl/extconf.rb.orig 2021-07-07 19:48:22.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ext/openssl/extconf.rb 2021-11-08 21:57:23.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -38,7 +38,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Logging::message "=== Checking for required stuff... ===\n"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-result = pkg_config("openssl") && have_header("openssl/ssl.h")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# mkmf#pkg_config() looks to ignore PKG_CONFIG_PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#result = pkg_config("openssl") && have_header("openssl/ssl.h")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++result = nil
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def find_openssl_library
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if $mswin || $mingw
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ruby30/Portfile b/lang/ruby30/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index fbd60e2e5d3..fe74b86bbf9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ruby30/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby30/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,7 @@ PortGroup compiler_blacklist_versions 1.0
</span>
name ruby30
version 3.0.2
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 4
</span>
categories lang ruby
maintainers {kimuraw @kimuraw} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,7 +52,9 @@ select.group ruby
</span> select.file ${filespath}/ruby30
# patch-random.c.diff: fix build error at Lion (#63571)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-random.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# patch-ext-openssl-extconf.rb.diff: fix ext/openssl uses wrong pkgconfig (#63845)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-random.c.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-ext-openssl-extconf.rb.diff
</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/ruby30/files/patch-ext-openssl-extconf.rb.diff b/lang/ruby30/files/patch-ext-openssl-extconf.rb.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b3232db8b63
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ruby30/files/patch-ext-openssl-extconf.rb.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;'>+--- ext/openssl/extconf.rb.orig 2021-07-07 19:08:35.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ext/openssl/extconf.rb 2021-11-08 21:38:36.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -34,7 +34,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Logging::message "=== Checking for required stuff... ===\n"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-result = pkg_config("openssl") && have_header("openssl/ssl.h")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# mkmf#pkg_config() looks to ignore PKG_CONFIG_PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#result = pkg_config("openssl") && have_header("openssl/ssl.h")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++result = nil
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if $mingw
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append_cflags '-D_FORTIFY_SOURCE=2'
</span></pre><pre style='margin:0'>
</pre>