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-02-23 18:29:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby-build (Old) and /work/SRC/openSUSE:Factory/.ruby-build.new.1977 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby-build" Mon Feb 23 18:29:11 2026 rev:102 rq:1334532 version:20260222 Changes: -------- --- /work/SRC/openSUSE:Factory/ruby-build/ruby-build.changes 2026-01-22 17:59:31.323924300 +0100 +++ /work/SRC/openSUSE:Factory/.ruby-build.new.1977/ruby-build.changes 2026-02-23 18:29:13.869934153 +0100 @@ -1,0 +2,10 @@ +Mon Feb 23 14:40:23 UTC 2026 - Lukas Müller <[email protected]> + +- Update to version 20260222. + Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20260222 + * Add JRuby 10.0.3.0 by @headius in #2602 + * Fix OpenSSL version requirement range for Ruby >= 4 by @glaszig in #2601 + * Fix `jruby-dev` to use updated URLs, add arm64 support by @eregon in #2603 + * Support building `ruby-dev` from arbitrary git revision by @byroot in #2604 + +------------------------------------------------------------------- Old: ---- ruby-build-20260121.tar.gz New: ---- ruby-build-20260222.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby-build.spec ++++++ --- /var/tmp/diff_new_pack.jCTsxs/_old 2026-02-23 18:29:14.525961323 +0100 +++ /var/tmp/diff_new_pack.jCTsxs/_new 2026-02-23 18:29:14.525961323 +0100 @@ -24,7 +24,7 @@ %endif Name: ruby-build -Version: 20260121 +Version: 20260222 Release: 0 BuildArch: noarch License: MIT ++++++ ruby-build-20260121.tar.gz -> ruby-build-20260222.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20260121/README.md new/ruby-build-20260222/README.md --- old/ruby-build-20260121/README.md 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/README.md 2026-02-22 21:09:37.000000000 +0100 @@ -123,6 +123,8 @@ | `RUBY_MAKE_INSTALL_OPTS` | Additional `make install` options (applies only to Ruby source). | | `NO_COLOR` | Disable ANSI colors in output. The default is to use colors for output connected to a terminal. | | `CLICOLOR_FORCE` | Use ANSI colors in output even when not connected to a terminal. | +| `RUBY_REPO` | The URL of the git repository to use when building `ruby-dev` | +| `RUBY_REF` | The git branch (or revision) to use when building `ruby-dev`, e.g. `some-branch@af12decf` | #### Applying Patches diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20260121/bin/ruby-build new/ruby-build-20260222/bin/ruby-build --- old/ruby-build-20260121/bin/ruby-build 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/bin/ruby-build 2026-02-22 21:09:37.000000000 +0100 @@ -16,7 +16,7 @@ # -6, --ipv6 Resolve names to IPv6 addresses only # -RUBY_BUILD_VERSION="20260121" +RUBY_BUILD_VERSION="20260222" OLDIFS="$IFS" @@ -571,6 +571,18 @@ local git_url="$2" local git_ref="$3" + local git_branch=${git_ref} + local git_sha='' + if [[ "${git_ref}" = *@* ]]; then + git_branch="$(echo "${git_ref}" | cut -d@ -f 1)" + git_sha="$(echo "${git_ref}" | cut -d@ -f 2)" + fi + + local depth_args=("--depth" "1") + if [[ -n "${git_sha}" ]]; then + depth_args=() + fi + log_info "Cloning ${git_url}..." if ! type git &>/dev/null; then @@ -582,18 +594,24 @@ local cache_dir cache_dir="$RUBY_BUILD_CACHE_PATH/$(sanitize "$git_url")" if [ -e "$cache_dir" ]; then - log_command git -C "$cache_dir" fetch --force "$git_url" "+${git_ref}:${git_ref}" 2>&3 + log_command git -C "$cache_dir" fetch --force "$git_url" "+${git_branch}:${git_branch}" 2>&3 else - log_command git clone --bare --branch "$git_ref" "$git_url" "$cache_dir" 2>&3 + log_command git clone --bare --single-branch --branch "$git_branch" "$git_url" "$cache_dir" 2>&3 fi git_url="$cache_dir" fi if [ -e "$package_name" ]; then - log_command git -C "$package_name" fetch --depth 1 origin "+${git_ref}" 2>&3 - log_command git -C "$package_name" checkout -q -B "$git_ref" "origin/${git_ref}" 2>&3 + log_command git -C "$package_name" fetch "${depth_args[@]}" origin "+${git_ref}" 2>&3 + if [ -z "${git_sha}" ]; then + log_command git -C "$package_name" checkout -q -B "$git_branch" "origin/${git_branch}" 2>&3 + fi else - log_command git clone --depth 1 --branch "$git_ref" "$git_url" "$package_name" 2>&3 + log_command git clone "${depth_args[@]}" --single-branch --branch "$git_branch" "$git_url" "$package_name" 2>&3 + fi + + if [ -n "${git_sha}" ]; then + log_command git -C "$package_name" checkout -q "$git_sha" 2>&3 fi } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20260121/share/man/man1/ruby-build.1 new/ruby-build-20260222/share/man/man1/ruby-build.1 --- old/ruby-build-20260121/share/man/man1/ruby-build.1 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/share/man/man1/ruby-build.1 2026-02-22 21:09:37.000000000 +0100 @@ -1,13 +1,13 @@ '\" t .\" Title: ruby-build .\" Author: Mislav Marohnić -.\" Generator: Asciidoctor 2.0.26 -.\" Date: 2024-09-23 +.\" Generator: Asciidoctor 2.0.20 +.\" Date: 2025-01-21 .\" Manual: ruby-build Manual -.\" Source: ruby-build 20260121 +.\" Source: ruby-build 20260222 .\" Language: English .\" -.TH "RUBY\-BUILD" "1" "2024-09-23" "ruby\-build 20260121" "ruby\-build Manual" +.TH "RUBY\-BUILD" "1" "2025-01-21" "ruby\-build 20260222" "ruby\-build Manual" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 @@ -31,7 +31,7 @@ ruby-build \- Download, compile, and install a version of Ruby .SH "SYNOPSIS" .sp -ruby\-build [\-dvpk] \fI<definition>\fP \fI<prefix>\fP [\-\- \fI<configure\-args>\fP.\|.\|.] +ruby\-build [\-dvpk] \fI<definition>\fP \fI<prefix>\fP [\-\- \fI<configure\-args>\fP...] .br ruby\-build {\-\-list|\-\-definitions} .br diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20260121/share/ruby-build/4.0-dev new/ruby-build-20260222/share/ruby-build/4.0-dev --- old/ruby-build-20260121/share/ruby-build/4.0-dev 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/share/ruby-build/4.0-dev 2026-02-22 21:09:37.000000000 +0100 @@ -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.1.1-3.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-20260121/share/ruby-build/4.0.0 new/ruby-build-20260222/share/ruby-build/4.0.0 --- old/ruby-build-20260121/share/ruby-build/4.0.0 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/share/ruby-build/4.0.0 2026-02-22 21:09:37.000000000 +0100 @@ -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.1.1-3.x.x install_package "ruby-4.0.0" "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.0.tar.gz#2e8389c8c072cb658c93a1372732d9eac84082c88b065750db1e52a5ac630271" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20260121/share/ruby-build/4.0.0-preview2 new/ruby-build-20260222/share/ruby-build/4.0.0-preview2 --- old/ruby-build-20260121/share/ruby-build/4.0.0-preview2 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/share/ruby-build/4.0.0-preview2 2026-02-22 21:09:37.000000000 +0100 @@ -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.1.1-3.x.x install_package "ruby-4.0.0-preview2" "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.0-preview2.tar.gz#0a3330dae710302e11f7f0323e83219ab3c6517984691a312c662f329c5120e1" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20260121/share/ruby-build/4.0.0-preview3 new/ruby-build-20260222/share/ruby-build/4.0.0-preview3 --- old/ruby-build-20260121/share/ruby-build/4.0.0-preview3 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/share/ruby-build/4.0.0-preview3 2026-02-22 21:09:37.000000000 +0100 @@ -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.1.1-3.x.x install_package "ruby-4.0.0-preview3" "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.0-preview3.tar.gz#43d0926e776fbd5599adcc7bccb4ccc804e109f402a2068607a2a86562c2cdc0" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20260121/share/ruby-build/4.0.1 new/ruby-build-20260222/share/ruby-build/4.0.1 --- old/ruby-build-20260121/share/ruby-build/4.0.1 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/share/ruby-build/4.0.1 2026-02-22 21:09:37.000000000 +0100 @@ -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.1.1-3.x.x install_package "ruby-4.0.1" "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.1.tar.gz#3924be2d05db30f4e35f859bf028be85f4b7dd01714142fd823e4af5de2faf9d" enable_shared standard diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20260121/share/ruby-build/4.1-dev new/ruby-build-20260222/share/ruby-build/4.1-dev --- old/ruby-build-20260121/share/ruby-build/4.1-dev 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/share/ruby-build/4.1-dev 2026-02-22 21:09:37.000000000 +0100 @@ -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.0.2-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-3.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-20260121/share/ruby-build/jruby-10.0.3.0 new/ruby-build-20260222/share/ruby-build/jruby-10.0.3.0 --- old/ruby-build-20260121/share/ruby-build/jruby-10.0.3.0 1970-01-01 01:00:00.000000000 +0100 +++ new/ruby-build-20260222/share/ruby-build/jruby-10.0.3.0 2026-02-22 21:09:37.000000000 +0100 @@ -0,0 +1,2 @@ +require_java 21 +install_package "jruby-10.0.3.0" "https://repo1.maven.org/maven2/org/jruby/jruby-dist/10.0.3.0/jruby-dist-10.0.3.0-bin.tar.gz#0edb5b02c3f482205d1cf8358f38e31d9e4c6d93a210039224750c72501e4717" jruby diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20260121/share/ruby-build/jruby-dev new/ruby-build-20260222/share/ruby-build/jruby-dev --- old/ruby-build-20260121/share/ruby-build/jruby-dev 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/share/ruby-build/jruby-dev 2026-02-22 21:09:37.000000000 +0100 @@ -1,12 +1,19 @@ -case $(uname -s) in -Linux) - install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-ubuntu-24.04.tar.gz" jruby +platform="$(uname -s)-$(uname -m)" +case $platform in +Linux-x86_64) + install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-ubuntu-24.04-x64.tar.gz" jruby ;; -Darwin) - install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-macos-latest.tar.gz" jruby +Linux-aarch64) + install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-ubuntu-24.04-arm64.tar.gz" jruby + ;; +Darwin-x86_64) + install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-darwin-x64.tar.gz" jruby + ;; +Darwin-arm64) + install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-darwin-arm64.tar.gz" jruby ;; *) - colorize 1 "Unsupported operating system: $(uname -s)" + colorize 1 "Unsupported platform: $platform" return 1 ;; esac diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20260121/share/ruby-build/ruby-dev new/ruby-build-20260222/share/ruby-build/ruby-dev --- old/ruby-build-20260121/share/ruby-build/ruby-dev 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/share/ruby-build/ruby-dev 2026-02-22 21:09:37.000000000 +0100 @@ -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.0.2-3.x.x -install_git "ruby-master" "https://github.com/ruby/ruby.git" "master" autoconf enable_shared standard_install_with_bundled_gems +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_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-20260121/test/fetch.bats new/ruby-build-20260222/test/fetch.bats --- old/ruby-build-20260121/test/fetch.bats 2026-01-21 20:08:27.000000000 +0100 +++ new/ruby-build-20260222/test/fetch.bats 2026-02-22 21:09:37.000000000 +0100 @@ -38,7 +38,7 @@ } @test "fetching from git repository" { - stub git "clone --depth 1 --branch master http://example.com/packages/package.git package-dev : mkdir package-dev" + stub git "clone --depth 1 --single-branch --branch master http://example.com/packages/package.git package-dev : mkdir package-dev" run_inline_definition <<DEF install_git "package-dev" "http://example.com/packages/package.git" master copy @@ -48,6 +48,19 @@ unstub git } +@test "fetching from git repository at specific ref" { + stub git \ + "clone --single-branch --branch my-branch http://example.com/packages/package.git package-dev : mkdir package-dev" \ + "-C package-dev checkout -q deadbeef : true" + + run_inline_definition <<DEF +install_git "package-dev" "http://example.com/packages/package.git" my-branch@deadbeef copy +DEF + assert_success + assert_output_contains "Cloning http://example.com/packages/package.git..." + unstub git +} + @test "updating existing git repository" { mkdir -p "${RUBY_BUILD_BUILD_PATH}/package-dev" stub git \ @@ -59,5 +72,19 @@ DEF assert_success assert_output_contains "Cloning http://example.com/packages/package.git..." + unstub git +} + +@test "updating existing git repository at specific ref" { + mkdir -p "${RUBY_BUILD_BUILD_PATH}/package-dev" + stub git \ + "-C package-dev fetch origin +my-branch@deadbeef : true" \ + "-C package-dev checkout -q deadbeef : true" + + run_inline_definition <<DEF +install_git "package-dev" "http://example.com/packages/package.git" my-branch@deadbeef copy +DEF + assert_success + assert_output_contains "Cloning http://example.com/packages/package.git..." unstub git }
