Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ruby-build for openSUSE:Factory checked in at 2026-10-23 20:29:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby-build (Old) and /work/SRC/openSUSE:Factory/.ruby-build.new.2252680 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby-build" Fri Oct 23 20:29:08 2026 rev:120 rq:1388146 version:20261023 Changes: -------- --- /work/SRC/openSUSE:Factory/ruby-build/ruby-build.changes 2026-10-14 18:36:04.572279369 +0200 +++ /work/SRC/openSUSE:Factory/.ruby-build.new.2252680/ruby-build.changes 2026-10-23 20:30:11.637351734 +0200 @@ -1,0 +2,16 @@ +Fri Oct 23 08:36:54 UTC 2026 - Müller <[email protected]> + +- Add explicit dependencies on awk and xargs. + +------------------------------------------------------------------- +Fri Oct 23 07:43:10 UTC 2026 - Lukas Müller <[email protected]> + +- Update to version 20261023. + Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20261023 + * Add 4.0.8 + * Add 4.0.9 + * Add 3.4.12 + * Add 3.3.13 + * Allow OpenSSL 4 for Rubies that support it by @p-linnane in #2647 + +------------------------------------------------------------------- Old: ---- ruby-build-20261013.tar.gz New: ---- ruby-build-20261023.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby-build.spec ++++++ --- /var/tmp/diff_new_pack.ebAwuC/_old 2026-10-23 20:30:12.415384383 +0200 +++ /var/tmp/diff_new_pack.ebAwuC/_new 2026-10-23 20:30:12.417384466 +0200 @@ -24,7 +24,7 @@ %endif Name: ruby-build -Version: 20261013 +Version: 20261023 Release: 0 BuildArch: noarch License: MIT @@ -41,6 +41,8 @@ Requires: gzip Requires: make Requires: tar +Requires: awk +Requires: /usr/bin/xargs # Maybe Requires would be better. Recommends: %{name}-dependencies-mri ++++++ ruby-build-20261013.tar.gz -> ruby-build-20261023.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/bin/ruby-build new/ruby-build-20261023/bin/ruby-build --- old/ruby-build-20261013/bin/ruby-build 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/bin/ruby-build 2026-10-23 06:47:16.000000000 +0200 @@ -18,7 +18,7 @@ # -6, --ipv6 Resolve names to IPv6 addresses only # -RUBY_BUILD_VERSION="20261013" +RUBY_BUILD_VERSION="20261023" OLDIFS="$IFS" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/script/update-cruby new/ruby-build-20261023/script/update-cruby --- old/ruby-build-20261013/script/update-cruby 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/script/update-cruby 2026-10-23 06:47:16.000000000 +0200 @@ -36,11 +36,20 @@ exit 1 fi -major_version=$(echo ${version} | cut -d '.' -f 1) +IFS=.- read -r major_version minor_version patch_version _prerelease <<< "$version" +openssl_upper_bound="3.x.x" +# These releases include Ruby/OpenSSL 3.2.4, 3.3.3, and 4.0.2, respectively. +if (( (major_version == 3 && minor_version == 3 && patch_version >= 12) || + (major_version == 3 && minor_version == 4 && patch_version >= 10) || + (major_version == 4 && (minor_version >= 1 || patch_version >= 6)) || + major_version > 4 )); then + openssl_upper_bound="4.x.x" +fi + if [ "$major_version" -ge 4 ]; then - needs_openssl="needs_openssl:1.1.1-3.x.x" + needs_openssl="needs_openssl:1.1.1-${openssl_upper_bound}" else - needs_openssl="needs_openssl:1.0.2-3.x.x" + needs_openssl="needs_openssl:1.0.2-${openssl_upper_bound}" fi cat > "$file" <<EOS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/man/man1/ruby-build.1 new/ruby-build-20261023/share/man/man1/ruby-build.1 --- old/ruby-build-20261013/share/man/man1/ruby-build.1 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/man/man1/ruby-build.1 2026-10-23 06:47:16.000000000 +0200 @@ -4,10 +4,10 @@ .\" Generator: Asciidoctor 2.0.26 .\" Date: 2026-05-07 .\" Manual: ruby-build Manual -.\" Source: ruby-build 20261013 +.\" Source: ruby-build 20261023 .\" Language: English .\" -.TH "RUBY\-BUILD" "1" "2026-05-07" "ruby\-build 20261013" "ruby\-build Manual" +.TH "RUBY\-BUILD" "1" "2026-05-07" "ruby\-build 20261023" "ruby\-build Manual" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/3.3-dev new/ruby-build-20261023/share/ruby-build/3.3-dev --- old/ruby-build-20261013/share/ruby-build/3.3-dev 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/3.3-dev 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.0.18" "https://github.com/openssl/openssl/releases/download/openssl-3.0.18/openssl-3.0.18.tar.gz#d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b" openssl --if needs_openssl:1.0.2-3.x.x +install_package "openssl-3.0.18" "https://github.com/openssl/openssl/releases/download/openssl-3.0.18/openssl-3.0.18.tar.gz#d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b" openssl --if needs_openssl:1.0.2-4.x.x install_git "ruby-3.3-dev" "https://github.com/ruby/ruby.git" "ruby_3_3" autoconf enable_shared standard_install_with_bundled_gems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/3.3.12 new/ruby-build-20261023/share/ruby-build/3.3.12 --- old/ruby-build-20261013/share/ruby-build/3.3.12 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/3.3.12 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.0.21" "https://github.com/openssl/openssl/releases/download/openssl-3.0.21/openssl-3.0.21.tar.gz#617e29af8e421f46649484a4937e48c685e47f46488167c982f88bc4ec1d522f" openssl --if needs_openssl:1.0.2-3.x.x +install_package "openssl-3.0.21" "https://github.com/openssl/openssl/releases/download/openssl-3.0.21/openssl-3.0.21.tar.gz#617e29af8e421f46649484a4937e48c685e47f46488167c982f88bc4ec1d522f" openssl --if needs_openssl:1.0.2-4.x.x install_package "ruby-3.3.12" "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.12.tar.gz#b06d63beae271933033e27f0a389bc582a009e7845357d44365c39de525a051b" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/3.3.13 new/ruby-build-20261023/share/ruby-build/3.3.13 --- old/ruby-build-20261013/share/ruby-build/3.3.13 1970-01-01 01:00:00.000000000 +0100 +++ new/ruby-build-20261023/share/ruby-build/3.3.13 2026-10-23 06:47:16.000000000 +0200 @@ -0,0 +1,2 @@ +install_package "openssl-3.0.22" "https://github.com/openssl/openssl/releases/download/openssl-3.0.22/openssl-3.0.22.tar.gz#67ebca7e50d17383028045486653492195b83db95f8558709701bb47b5c1ef81" openssl --if needs_openssl:1.0.2-4.x.x +install_package "ruby-3.3.13" "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.13.tar.gz#4cae72e971bd1cdb20ca87d299111182417c5276c162de8ead0ab0531426cd61" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/3.4-dev new/ruby-build-20261023/share/ruby-build/3.4-dev --- old/ruby-build-20261013/share/ruby-build/3.4-dev 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/3.4-dev 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.0.18" "https://github.com/openssl/openssl/releases/download/openssl-3.0.18/openssl-3.0.18.tar.gz#d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b" openssl --if needs_openssl:1.0.2-3.x.x +install_package "openssl-3.0.18" "https://github.com/openssl/openssl/releases/download/openssl-3.0.18/openssl-3.0.18.tar.gz#d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b" openssl --if needs_openssl:1.0.2-4.x.x install_git "ruby-3.4-dev" "https://github.com/ruby/ruby.git" "ruby_3_4" autoconf enable_shared standard_install_with_bundled_gems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/3.4.10 new/ruby-build-20261023/share/ruby-build/3.4.10 --- old/ruby-build-20261013/share/ruby-build/3.4.10 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/3.4.10 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.0.21" "https://github.com/openssl/openssl/releases/download/openssl-3.0.21/openssl-3.0.21.tar.gz#617e29af8e421f46649484a4937e48c685e47f46488167c982f88bc4ec1d522f" openssl --if needs_openssl:1.0.2-3.x.x +install_package "openssl-3.0.21" "https://github.com/openssl/openssl/releases/download/openssl-3.0.21/openssl-3.0.21.tar.gz#617e29af8e421f46649484a4937e48c685e47f46488167c982f88bc4ec1d522f" openssl --if needs_openssl:1.0.2-4.x.x install_package "ruby-3.4.10" "https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.10.tar.gz#ecee2d072a14f2d14347dd56dfd8fe5c3130abf5117bfaacbda0f4ef9cc429ec" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/3.4.11 new/ruby-build-20261023/share/ruby-build/3.4.11 --- old/ruby-build-20261013/share/ruby-build/3.4.11 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/3.4.11 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.0.22" "https://github.com/openssl/openssl/releases/download/openssl-3.0.22/openssl-3.0.22.tar.gz#67ebca7e50d17383028045486653492195b83db95f8558709701bb47b5c1ef81" openssl --if needs_openssl:1.0.2-3.x.x +install_package "openssl-3.0.22" "https://github.com/openssl/openssl/releases/download/openssl-3.0.22/openssl-3.0.22.tar.gz#67ebca7e50d17383028045486653492195b83db95f8558709701bb47b5c1ef81" openssl --if needs_openssl:1.0.2-4.x.x install_package "ruby-3.4.11" "https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.11.tar.gz#5c22be44524312b3d433d68739bcc530633b1da5ef8ba0afa0a37680da17d3de" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/3.4.12 new/ruby-build-20261023/share/ruby-build/3.4.12 --- old/ruby-build-20261013/share/ruby-build/3.4.12 1970-01-01 01:00:00.000000000 +0100 +++ new/ruby-build-20261023/share/ruby-build/3.4.12 2026-10-23 06:47:16.000000000 +0200 @@ -0,0 +1,2 @@ +install_package "openssl-3.0.22" "https://github.com/openssl/openssl/releases/download/openssl-3.0.22/openssl-3.0.22.tar.gz#67ebca7e50d17383028045486653492195b83db95f8558709701bb47b5c1ef81" openssl --if needs_openssl:1.0.2-4.x.x +install_package "ruby-3.4.12" "https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.12.tar.gz#5e5d85ad93b0adcccbad47733680f4892bd0078e3342437f7babce01c1872479" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/4.0-dev new/ruby-build-20261023/share/ruby-build/4.0-dev --- old/ruby-build-20261013/share/ruby-build/4.0-dev 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/4.0-dev 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.0.18" "https://github.com/openssl/openssl/releases/download/openssl-3.0.18/openssl-3.0.18.tar.gz#d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b" openssl --if needs_openssl:1.1.1-3.x.x +install_package "openssl-3.0.18" "https://github.com/openssl/openssl/releases/download/openssl-3.0.18/openssl-3.0.18.tar.gz#d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b" openssl --if needs_openssl:1.1.1-4.x.x install_git "ruby-4.0-dev" "https://github.com/ruby/ruby.git" "ruby_4_0" autoconf enable_shared standard_install_with_bundled_gems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/4.0.6 new/ruby-build-20261023/share/ruby-build/4.0.6 --- old/ruby-build-20261013/share/ruby-build/4.0.6 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/4.0.6 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.0.21" "https://github.com/openssl/openssl/releases/download/openssl-3.0.21/openssl-3.0.21.tar.gz#617e29af8e421f46649484a4937e48c685e47f46488167c982f88bc4ec1d522f" openssl --if needs_openssl:1.1.1-3.x.x +install_package "openssl-3.0.21" "https://github.com/openssl/openssl/releases/download/openssl-3.0.21/openssl-3.0.21.tar.gz#617e29af8e421f46649484a4937e48c685e47f46488167c982f88bc4ec1d522f" openssl --if needs_openssl:1.1.1-4.x.x install_package "ruby-4.0.6" "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.6.tar.gz#837d299e8f7ddf2be31a229a7a7e019d354979825117989acb3b32b1a9be262a" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/4.0.7 new/ruby-build-20261023/share/ruby-build/4.0.7 --- old/ruby-build-20261013/share/ruby-build/4.0.7 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/4.0.7 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.0.22" "https://github.com/openssl/openssl/releases/download/openssl-3.0.22/openssl-3.0.22.tar.gz#67ebca7e50d17383028045486653492195b83db95f8558709701bb47b5c1ef81" openssl --if needs_openssl:1.1.1-3.x.x +install_package "openssl-3.0.22" "https://github.com/openssl/openssl/releases/download/openssl-3.0.22/openssl-3.0.22.tar.gz#67ebca7e50d17383028045486653492195b83db95f8558709701bb47b5c1ef81" openssl --if needs_openssl:1.1.1-4.x.x install_package "ruby-4.0.7" "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.7.tar.gz#911ace20f90d068ca0e4dda6d0e4f0f81e52e52f2dd4f4004c721e253412e82d" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/4.0.8 new/ruby-build-20261023/share/ruby-build/4.0.8 --- old/ruby-build-20261013/share/ruby-build/4.0.8 1970-01-01 01:00:00.000000000 +0100 +++ new/ruby-build-20261023/share/ruby-build/4.0.8 2026-10-23 06:47:16.000000000 +0200 @@ -0,0 +1,2 @@ +install_package "openssl-3.0.22" "https://github.com/openssl/openssl/releases/download/openssl-3.0.22/openssl-3.0.22.tar.gz#67ebca7e50d17383028045486653492195b83db95f8558709701bb47b5c1ef81" openssl --if needs_openssl:1.1.1-4.x.x +install_package "ruby-4.0.8" "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.8.tar.gz#0968e2ac4cbd6f1fd85d3092aed66cd3c2d8ba4a5e2493d6e6c6cb0c431897d2" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/4.0.9 new/ruby-build-20261023/share/ruby-build/4.0.9 --- old/ruby-build-20261013/share/ruby-build/4.0.9 1970-01-01 01:00:00.000000000 +0100 +++ new/ruby-build-20261023/share/ruby-build/4.0.9 2026-10-23 06:47:16.000000000 +0200 @@ -0,0 +1,2 @@ +install_package "openssl-3.0.22" "https://github.com/openssl/openssl/releases/download/openssl-3.0.22/openssl-3.0.22.tar.gz#67ebca7e50d17383028045486653492195b83db95f8558709701bb47b5c1ef81" openssl --if needs_openssl:1.1.1-4.x.x +install_package "ruby-4.0.9" "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.9.tar.gz#c35350682ff050b79702d57ade4516e7336063f510155d19fb2fb5b3f3909511" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/4.1-dev new/ruby-build-20261023/share/ruby-build/4.1-dev --- old/ruby-build-20261013/share/ruby-build/4.1-dev 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/4.1-dev 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.5.4" "https://github.com/openssl/openssl/releases/download/openssl-3.5.4/openssl-3.5.4.tar.gz#967311f84955316969bdb1d8d4b983718ef42338639c621ec4c34fddef355e99" openssl --if needs_openssl:1.1.1-3.x.x +install_package "openssl-3.5.4" "https://github.com/openssl/openssl/releases/download/openssl-3.5.4/openssl-3.5.4.tar.gz#967311f84955316969bdb1d8d4b983718ef42338639c621ec4c34fddef355e99" openssl --if needs_openssl:1.1.1-4.x.x install_git "ruby-master" "https://github.com/ruby/ruby.git" "master" autoconf enable_shared standard_install_with_bundled_gems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/4.1.0-preview1 new/ruby-build-20261023/share/ruby-build/4.1.0-preview1 --- old/ruby-build-20261013/share/ruby-build/4.1.0-preview1 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/4.1.0-preview1 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.0.22" "https://github.com/openssl/openssl/releases/download/openssl-3.0.22/openssl-3.0.22.tar.gz#67ebca7e50d17383028045486653492195b83db95f8558709701bb47b5c1ef81" openssl --if needs_openssl:1.1.1-3.x.x +install_package "openssl-3.0.22" "https://github.com/openssl/openssl/releases/download/openssl-3.0.22/openssl-3.0.22.tar.gz#67ebca7e50d17383028045486653492195b83db95f8558709701bb47b5c1ef81" openssl --if needs_openssl:1.1.1-4.x.x install_package "ruby-4.1.0-preview1" "https://cache.ruby-lang.org/pub/ruby/4.1/ruby-4.1.0-preview1.tar.gz#fb530bb88e90de3ae91c1310a27ae090e6bd989b8726de50ef12a890a85b88ef" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/share/ruby-build/ruby-dev new/ruby-build-20261023/share/ruby-build/ruby-dev --- old/ruby-build-20261013/share/ruby-build/ruby-dev 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/share/ruby-build/ruby-dev 2026-10-23 06:47:16.000000000 +0200 @@ -1,2 +1,2 @@ -install_package "openssl-3.5.4" "https://github.com/openssl/openssl/releases/download/openssl-3.5.4/openssl-3.5.4.tar.gz#967311f84955316969bdb1d8d4b983718ef42338639c621ec4c34fddef355e99" openssl --if needs_openssl:1.1.1-3.x.x +install_package "openssl-3.5.4" "https://github.com/openssl/openssl/releases/download/openssl-3.5.4/openssl-3.5.4.tar.gz#967311f84955316969bdb1d8d4b983718ef42338639c621ec4c34fddef355e99" openssl --if needs_openssl:1.1.1-4.x.x install_git "ruby-master" "${RUBY_REPO:-https://github.com/ruby/ruby.git}" "${RUBY_REF:-master}" autoconf enable_shared standard_install_with_bundled_gems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20261013/test/build.bats new/ruby-build-20261023/test/build.bats --- old/ruby-build-20261013/test/build.bats 2026-10-13 00:54:05.000000000 +0200 +++ new/ruby-build-20261023/test/build.bats 2026-10-23 06:47:16.000000000 +0200 @@ -371,6 +371,34 @@ OUT } +@test "use system OpenSSL 4" { + cached_tarball "ruby-3.2.0" configure + + stub_repeated uname '-s : echo Linux' + stub_repeated brew false + stub cc '-xc -E - : echo "OpenSSL 4.0.3 29 Sep 2026"' + stub_repeated pkg-config false + stub_make_install + + run_inline_definition <<DEF +install_package "openssl-1.1.1w" "https://www.openssl.org/source/openssl-1.1.1w.tar.gz" openssl --if needs_openssl:1.1.1-4.x.x +install_package "ruby-3.2.0" "http://ruby-lang.org/ruby/2.0/ruby-3.2.0.tar.gz" +DEF + assert_success + + unstub uname + unstub brew + unstub cc + unstub pkg-config + unstub make + + assert_build_log <<OUT +ruby-3.2.0: [--prefix=$INSTALL_ROOT,--with-ext=openssl,psych,+] +make -j 2 +make install +OUT +} + @test "use pkg-config OpenSSL" { cached_tarball "ruby-3.2.0" configure @@ -635,6 +663,49 @@ make -j 2 make install OUT +} + +@test "link to Homebrew OpenSSL 4" { + cached_tarball "ruby-3.2.0" configure + + local homebrew_prefix="${TMP}/homebrew" + executable "${homebrew_prefix}/opt/openssl@3/bin/openssl" <<EXE +#!/$BASH +[ "\$1" = "version" ] || exit 1 +echo 'OpenSSL 3.5.4 30 Sep 2025' +EXE + executable "${homebrew_prefix}/opt/openssl@4/bin/openssl" <<EXE +#!/$BASH +[ "\$1" = "version" ] || exit 1 +echo 'OpenSSL 4.0.3 29 Sep 2026' +EXE + + stub_repeated uname '-s : echo Linux' + stub cc '-xc -E - : echo "OpenSSL 1.0.1a 1 Aug 2023"' + stub_repeated brew \ + 'list : printf "openssl@3\nopenssl@4\n"' \ + "--prefix : if [ \$# -ge 2 ]; then echo '$homebrew_prefix'/opt/\$2; else echo '$homebrew_prefix'; fi " \ + "--repository : echo '$homebrew_prefix'" + stub_repeated pkg-config false + stub_make_install + + run_inline_definition <<DEF +install_package "openssl-1.1.1w" "https://www.openssl.org/source/openssl-1.1.1w.tar.gz" openssl --if needs_openssl:1.1.1-4.x.x +install_package "ruby-3.2.0" "http://ruby-lang.org/ruby/2.0/ruby-3.2.0.tar.gz" +DEF + assert_success + + unstub uname + unstub cc + unstub brew + unstub pkg-config + unstub make + + assert_build_log <<OUT +ruby-3.2.0: [--prefix=$INSTALL_ROOT,--with-openssl-dir=$TMP/homebrew/opt/openssl@4,--with-ext=openssl,psych,+] +make -j 2 +make install +OUT } @test "forward extra command-line arguments as configure flags" {
