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-11-19 16:58:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ruby-build (Old)
 and      /work/SRC/openSUSE:Factory/.ruby-build.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ruby-build"

Thu Nov 19 16:58:21 2026 rev:121 rq:1398690 version:20261119

Changes:
--------
--- /work/SRC/openSUSE:Factory/ruby-build/ruby-build.changes    2026-10-23 
20:30:11.637351734 +0200
+++ /work/SRC/openSUSE:Factory/.ruby-build.new.1251/ruby-build.changes  
2026-11-19 16:59:32.359035216 +0100
@@ -1,0 +2,15 @@
+Thu Nov 19 01:26:56 UTC 2026 - Lukas Müller <[email protected]>
+
+- Update to version 20261119.
+  Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20261119
+  * Add 4.0.10
+  * Add 3.4.13
+  * Add 3.3.14
+  * Build Ruby < 3.2 with GCC 15 everywhere, not only on Fedora by @eregon in 
#2649
+  * Put -std=gnu17 on CC for Ruby 2.7 too, its configure ignores cflags by 
@eregon in #2650
+  * Build OpenSSL 1.0 without parallel make by @hsbt in #2651
+  * Add JRuby 10.1.3.0 by @sferik in #2652
+  * JRuby 10.0.8.0 by @headius in #2653
+  * Use OpenSSL 3.5.9 for Ruby 3.3.14, 3.4.13 and 4.0.10 by @hsbt in #2654
+
+-------------------------------------------------------------------

Old:
----
  ruby-build-20261023.tar.gz

New:
----
  ruby-build-20261119.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ruby-build.spec ++++++
--- /var/tmp/diff_new_pack.IenhS3/_old  2026-11-19 16:59:33.825097359 +0100
+++ /var/tmp/diff_new_pack.IenhS3/_new  2026-11-19 16:59:33.829097529 +0100
@@ -24,7 +24,7 @@
 %endif
 
 Name:           ruby-build
-Version:        20261023
+Version:        20261119
 Release:        0
 BuildArch:      noarch
 License:        MIT
@@ -36,13 +36,13 @@
 %if %{with test}
 BuildRequires:  bats
 %endif
+Requires:       /usr/bin/xargs
+Requires:       awk
 Requires:       bash
 Requires:       curl
 Requires:       gzip
 Requires:       make
 Requires:       tar
-Requires:       awk
-Requires:       /usr/bin/xargs
 # Maybe Requires would be better.
 Recommends:     %{name}-dependencies-mri
 

++++++ ruby-build-20261023.tar.gz -> ruby-build-20261119.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20261023/bin/ruby-build 
new/ruby-build-20261119/bin/ruby-build
--- old/ruby-build-20261023/bin/ruby-build      2026-10-23 06:47:16.000000000 
+0200
+++ new/ruby-build-20261119/bin/ruby-build      2026-11-19 01:16:42.000000000 
+0100
@@ -18,7 +18,7 @@
 #   -6, --ipv6      Resolve names to IPv6 addresses only
 #
 
-RUBY_BUILD_VERSION="20261023"
+RUBY_BUILD_VERSION="20261119"
 
 OLDIFS="$IFS"
 
@@ -208,16 +208,24 @@
   [ "$(uname -s)" = "FreeBSD" ]
 }
 
-is_fedora() {
-  [ -r /etc/os-release ] || return 1
-  # shellcheck disable=SC1091
-  source /etc/os-release
-  # Treat Aurora, Bazzite, BlueFin, uCore, and other Fedora variants as 
"fedora".
-  if [[ "${ID_LIKE:-$ID}" != "fedora" || ( $# -gt 0 && "${VERSION_ID%%.*}" -lt 
"$1") ]]; then
-    return 1
+# The C compiler that Ruby's configure picks: $CC, otherwise gcc if available, 
otherwise cc.
+c_compiler() {
+  if [ -n "$CC" ]; then
+    echo "$CC"
+  elif command -v gcc >/dev/null; then
+    echo gcc
+  else
+    echo cc
   fi
 }
 
+# Prints the major version of GCC, or nothing if the given C compiler is not 
GCC (e.g. Clang).
+gcc_major_version() {
+  # shellcheck disable=SC2086
+  $1 -E -dM - </dev/null 2>/dev/null |
+    awk '/^#define __clang__ /{clang=1} /^#define __GNUC__ /{gnuc=$3} END{if 
(!clang) print gnuc}'
+}
+
 freebsd_package_prefix() {
   local package="$1"
   pkg info --prefix "$package" 2>/dev/null | cut -wf2
@@ -735,24 +743,37 @@
     fi
   fi
 
+  local cc_override extra_cflags
+  if [ -z "$CC" ] && is_mac 1010; then
+    cc_override=clang
+  elif [[ "$package_var_name" = "RUBY" && "$ruby_semver" -lt 30200 ]]; then
+    local cc gcc_version
+    cc="$(c_compiler)"
+    gcc_version="$(gcc_major_version "$cc")"
+    if [ "${gcc_version:-0}" -ge 15 ]; then
+      # GCC 15 changed the default C mode from gnu17 to gnu23: 
https://gcc.gnu.org/gcc-15/changes.html#c
+      # Ruby < 3.2 can't compile as C23, where `()` in a declaration means 
`(void)`.
+      extra_cflags="-std=gnu17"
+    fi
+    if [[ -n "$extra_cflags" && "$ruby_semver" -ge 20600 && "$ruby_semver" -lt 
20800 ]]; then
+      # Ruby 2.6 checks its MJIT header with a bare $(CC), and the configure 
script of Ruby 2.7
+      # (generated by Autoconf 2.71) silently ignores cflags, so the flags go 
on CC for those.
+      cc_override="$cc $extra_cflags"
+      extra_cflags=
+    fi
+  fi
+
   ( if [ "${CFLAGS+defined}" ] || [ "${!PACKAGE_CFLAGS+defined}" ]; then
       export CFLAGS="$CFLAGS ${!PACKAGE_CFLAGS}"
     fi
-    if [ -z "$CC" ] && is_mac 1010; then
-      export CC=clang
-    elif [[ "$package_var_name" = "RUBY" && "$ruby_semver" -lt 30200 ]] && 
is_fedora 42; then
-      # Fedora 42+ has updated to GCC v15. GCC v15 changed the default
-      # mode from gnu17 to gnu23: https://gcc.gnu.org/gcc-15/changes.html#c
-      #
-      # Ruby < 3.2 can't compile on GCC v15 in the default mode of gnu23.
-      #
-      # TODO: Consider changing this to check for GCC v15 specifically
-      # rather than inspecting the OS itself.
-
+    if [ -n "$cc_override" ]; then
+      export CC="$cc_override"
+    fi
+    if [ -n "$extra_cflags" ]; then
       # Use the cflags configure variable, which Ruby's configure appends to
       # its default optflags/debugflags/warnflags, unlike CFLAGS which would
       # override them and notably lose the -O3, producing a -O0 Ruby.
-      export cflags="-std=gnu17 $cflags"
+      export cflags="$extra_cflags${cflags:+ $cflags}"
     fi
     if [ "$package_var_name" = "RUBY" ] && is_mac && ! is_mac 2700; then
       # The macOS 27 SDK declares dup3() and pipe2() as available since macOS 
27.0.
@@ -1297,6 +1318,10 @@
   # Disable SSLv2 and Kerberos on older OpenSSL
   [[ "$1" != openssl-1.0.* ]] || package_option openssl configure no-ssl2 
no-krb5
 
+  # OpenSSL 1.0 can't be built in parallel, as two `ar` runs may create 
libcrypto.a at once and drop each other's objects.
+  # OPENSSL_MAKE_OPTS goes after MAKE_OPTS on the make command line, and a 
user's OPENSSL_MAKE_OPTS still goes after this.
+  [[ "$1" != openssl-1.0.* ]] || local OPENSSL_MAKE_OPTS="-j 
1${OPENSSL_MAKE_OPTS:+ $OPENSSL_MAKE_OPTS}"
+
   # Skip building OpenSSL docs, which is slow.
   local make_target="install_sw install_ssldirs"
   [[ "$1" != openssl-1.0.* ]] || make_target="install_sw" # OpenSSL 1.0 does 
not have `install_ssldirs`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20261023/share/man/man1/ruby-build.1 
new/ruby-build-20261119/share/man/man1/ruby-build.1
--- old/ruby-build-20261023/share/man/man1/ruby-build.1 2026-10-23 
06:47:16.000000000 +0200
+++ new/ruby-build-20261119/share/man/man1/ruby-build.1 2026-11-19 
01:16:42.000000000 +0100
@@ -4,10 +4,10 @@
 .\" Generator: Asciidoctor 2.0.26
 .\"      Date: 2026-05-07
 .\"    Manual: ruby-build Manual
-.\"    Source: ruby-build 20261023
+.\"    Source: ruby-build 20261119
 .\"  Language: English
 .\"
-.TH "RUBY\-BUILD" "1" "2026-05-07" "ruby\-build 20261023" "ruby\-build Manual"
+.TH "RUBY\-BUILD" "1" "2026-05-07" "ruby\-build 20261119" "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-20261023/share/ruby-build/3.3.14 
new/ruby-build-20261119/share/ruby-build/3.3.14
--- old/ruby-build-20261023/share/ruby-build/3.3.14     1970-01-01 
01:00:00.000000000 +0100
+++ new/ruby-build-20261119/share/ruby-build/3.3.14     2026-11-19 
01:16:42.000000000 +0100
@@ -0,0 +1,2 @@
+install_package "openssl-3.5.9" 
"https://github.com/openssl/openssl/releases/download/openssl-3.5.9/openssl-3.5.9.tar.gz#603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a";
 openssl --if needs_openssl:1.0.2-4.x.x
+install_package "ruby-3.3.14" 
"https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.14.tar.gz#d0438ee291b0cacaf97c7a71df4c939d7f3265c8c2d1b8ffe27311f71fc680b0";
 enable_shared standard
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20261023/share/ruby-build/3.4.13 
new/ruby-build-20261119/share/ruby-build/3.4.13
--- old/ruby-build-20261023/share/ruby-build/3.4.13     1970-01-01 
01:00:00.000000000 +0100
+++ new/ruby-build-20261119/share/ruby-build/3.4.13     2026-11-19 
01:16:42.000000000 +0100
@@ -0,0 +1,2 @@
+install_package "openssl-3.5.9" 
"https://github.com/openssl/openssl/releases/download/openssl-3.5.9/openssl-3.5.9.tar.gz#603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a";
 openssl --if needs_openssl:1.0.2-4.x.x
+install_package "ruby-3.4.13" 
"https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.13.tar.gz#d0d3bf3dd8c224a3c3b7ecd816a0f1b2cbcf4f87b5afcbdbe91d3fef177f351a";
 enable_shared standard
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20261023/share/ruby-build/4.0.10 
new/ruby-build-20261119/share/ruby-build/4.0.10
--- old/ruby-build-20261023/share/ruby-build/4.0.10     1970-01-01 
01:00:00.000000000 +0100
+++ new/ruby-build-20261119/share/ruby-build/4.0.10     2026-11-19 
01:16:42.000000000 +0100
@@ -0,0 +1,2 @@
+install_package "openssl-3.5.9" 
"https://github.com/openssl/openssl/releases/download/openssl-3.5.9/openssl-3.5.9.tar.gz#603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a";
 openssl --if needs_openssl:1.1.1-4.x.x
+install_package "ruby-4.0.10" 
"https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.10.tar.gz#b53eef3371fa5d3e3b74340edcd015f06d5d8853968d4e539a5264fce41ed9f1";
 enable_shared standard
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20261023/share/ruby-build/jruby-10.0.8.0 
new/ruby-build-20261119/share/ruby-build/jruby-10.0.8.0
--- old/ruby-build-20261023/share/ruby-build/jruby-10.0.8.0     1970-01-01 
01:00:00.000000000 +0100
+++ new/ruby-build-20261119/share/ruby-build/jruby-10.0.8.0     2026-11-19 
01:16:42.000000000 +0100
@@ -0,0 +1,2 @@
+require_java 21
+install_package "jruby-10.0.8.0" 
"https://repo1.maven.org/maven2/org/jruby/jruby-dist/10.0.8.0/jruby-dist-10.0.8.0-bin.tar.gz#e33cd86d198d695bd67dc867daf4c31bced385a9f138a00c47f7c12aa1f4e789";
 jruby
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20261023/share/ruby-build/jruby-10.1.3.0 
new/ruby-build-20261119/share/ruby-build/jruby-10.1.3.0
--- old/ruby-build-20261023/share/ruby-build/jruby-10.1.3.0     1970-01-01 
01:00:00.000000000 +0100
+++ new/ruby-build-20261119/share/ruby-build/jruby-10.1.3.0     2026-11-19 
01:16:42.000000000 +0100
@@ -0,0 +1,2 @@
+require_java 21
+install_package "jruby-10.1.3.0" 
"https://repo1.maven.org/maven2/org/jruby/jruby-dist/10.1.3.0/jruby-dist-10.1.3.0-bin.tar.gz#3d76fe1fce6aa9f56fd7efb1015a9db95a0aa6f95fe9ec868f9e75d9ddc1871c";
 jruby
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20261023/test/build.bats 
new/ruby-build-20261119/test/build.bats
--- old/ruby-build-20261023/test/build.bats     2026-10-23 06:47:16.000000000 
+0200
+++ new/ruby-build-20261119/test/build.bats     2026-11-19 01:16:42.000000000 
+0100
@@ -477,6 +477,32 @@
 OUT
 }
 
+@test "bundled OpenSSL 1.0 is built without parallel make" {
+  cached_tarball "openssl-1.0.2u" config
+
+  mkdir -p "${TMP}/ssl/certs"
+  touch "${TMP}/ssl/cert.pem"
+
+  stub_repeated uname '-s : echo Linux'
+  stub openssl "version -d : echo 'OPENSSLDIR: \"${TMP}/ssl\"'"
+  stub_make_install "install_sw"
+
+  mkdir -p "$INSTALL_ROOT"/openssl/ssl # OPENSSLDIR
+  run_inline_definition <<DEF
+install_package "openssl-1.0.2u" 
"https://www.openssl.org/source/openssl-1.0.2u.tar.gz"; openssl
+DEF
+  assert_success
+
+  unstub uname
+  unstub make
+
+  assert_build_log <<OUT
+openssl-1.0.2u: 
[--prefix=${INSTALL_ROOT}/openssl,--openssldir=${INSTALL_ROOT}/openssl/ssl,--libdir=lib,zlib-dynamic,no-ssl3,shared,-Wl,-rpath,${INSTALL_ROOT}/openssl/lib,no-ssl2,no-krb5]
+make -j 2 -j 1
+make install_sw
+OUT
+}
+
 @test "install bundled OpenSSL on macOS" {
   cached_tarball "openssl-1.1.1w" config
   cached_tarball "ruby-3.2.0" configure
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20261023/test/compiler.bats 
new/ruby-build-20261119/test/compiler.bats
--- old/ruby-build-20261023/test/compiler.bats  2026-10-23 06:47:16.000000000 
+0200
+++ new/ruby-build-20261119/test/compiler.bats  2026-11-19 01:16:42.000000000 
+0100
@@ -117,3 +117,200 @@
   unstub brew
   unstub make
 }
+
+# Stubs a Linux host with a ./configure that logs CC
+stub_linux_build() {
+  mkdir -p "$INSTALL_ROOT"
+  cd "$INSTALL_ROOT" || return 1
+
+  stub_repeated uname '-s : echo Linux'
+  stub_repeated brew 'false'
+  # shellcheck disable=SC2016
+  stub_repeated make 'echo "make $(inspect_args "$@")" >> build.log'
+
+  cat > ./configure <<CON
+#!${BASH}
+echo ./configure "\$@" > build.log
+echo CC=\${CC-unset} >> build.log
+echo cflags=\${cflags-unset} >> build.log
+CON
+  chmod +x ./configure
+}
+
+unstub_linux_build() {
+  unstub uname
+  unstub brew
+  unstub make
+}
+
+# Stubs the given C compiler (default: gcc) to report the given preprocessor 
defines
+stub_cc() {
+  stub_repeated "${2:-gcc}" "-E -dM - : printf '%s\n' $1"
+}
+
+@test "GCC 15 compiles Ruby < 3.2 as gnu17" {
+  stub_linux_build
+  stub_cc '"#define __GNUC__ 15"'
+
+  run_inline_definition <<DEF
+build_package_standard ruby-3.1.7
+DEF
+  assert_success
+  run cat build.log
+  assert_output <<OUT
+./configure --prefix=$INSTALL_ROOT --with-ext=openssl,psych,+
+CC=unset
+cflags=-std=gnu17
+make -j 2
+make install
+OUT
+
+  unstub gcc
+  unstub_linux_build
+}
+
+@test "GCC 15 compiles Ruby 2.6 as gnu17 via CC" {
+  stub_linux_build
+  stub_cc '"#define __GNUC__ 15"'
+
+  run_inline_definition <<DEF
+build_package_standard ruby-2.6.10
+DEF
+  assert_success
+  run cat build.log
+  assert_output <<OUT
+./configure --prefix=$INSTALL_ROOT --with-ext=openssl,psych,+
+CC=gcc -std=gnu17
+cflags=unset
+make -j 2
+make install
+OUT
+
+  unstub gcc
+  unstub_linux_build
+}
+
+@test "GCC 15 compiles Ruby 2.7 as gnu17 via CC" {
+  stub_linux_build
+  stub_cc '"#define __GNUC__ 15"'
+
+  run_inline_definition <<DEF
+build_package_standard ruby-2.7.8
+DEF
+  assert_success
+  run cat build.log
+  assert_output <<OUT
+./configure --prefix=$INSTALL_ROOT --with-ext=openssl,psych,+
+CC=gcc -std=gnu17
+cflags=unset
+make -j 2
+make install
+OUT
+
+  unstub gcc
+  unstub_linux_build
+}
+
+@test "GCC 15 compiles Ruby <= 2.2 as gnu17" {
+  stub_linux_build
+  stub_cc '"#define __GNUC__ 15"'
+
+  run_inline_definition <<DEF
+build_package_standard ruby-2.2.10
+DEF
+  assert_success
+  run cat build.log
+  assert_output <<OUT
+./configure --prefix=$INSTALL_ROOT
+CC=unset
+cflags=-std=gnu17
+make -j 2
+make install
+OUT
+
+  unstub gcc
+  unstub_linux_build
+}
+
+@test "GCC 15 adds -std=gnu17 to a custom CC for Ruby 2.6" {
+  stub_linux_build
+  stub_cc '"#define __GNUC__ 15"' gcc-15
+  export CC=gcc-15
+
+  run_inline_definition <<DEF
+build_package_standard ruby-2.6.10
+DEF
+  assert_success
+  run cat build.log
+  assert_output <<OUT
+./configure --prefix=$INSTALL_ROOT --with-ext=openssl,psych,+
+CC=gcc-15 -std=gnu17
+cflags=unset
+make -j 2
+make install
+OUT
+
+  unstub gcc-15
+  unstub_linux_build
+}
+
+@test "the C compiler is not probed for Ruby 3.2+" {
+  stub_linux_build
+
+  run_inline_definition <<DEF
+build_package_standard ruby-3.2.0
+DEF
+  assert_success
+  run cat build.log
+  assert_output <<OUT
+./configure --prefix=$INSTALL_ROOT --with-ext=openssl,psych,+
+CC=unset
+cflags=unset
+make -j 2
+make install
+OUT
+
+  unstub_linux_build
+}
+
+@test "GCC 14 adds no flags for Ruby >= 2.3" {
+  stub_linux_build
+  stub_cc '"#define __GNUC__ 14"'
+
+  run_inline_definition <<DEF
+build_package_standard ruby-3.1.7
+DEF
+  assert_success
+  run cat build.log
+  assert_output <<OUT
+./configure --prefix=$INSTALL_ROOT --with-ext=openssl,psych,+
+CC=unset
+cflags=unset
+make -j 2
+make install
+OUT
+
+  unstub gcc
+  unstub_linux_build
+}
+
+@test "Clang masquerading as gcc gets no flags" {
+  stub_linux_build
+  stub_cc '"#define __clang__ 1" "#define __GNUC__ 15"'
+
+  run_inline_definition <<DEF
+build_package_standard ruby-3.1.7
+DEF
+  assert_success
+  run cat build.log
+  assert_output <<OUT
+./configure --prefix=$INSTALL_ROOT --with-ext=openssl,psych,+
+CC=unset
+cflags=unset
+make -j 2
+make install
+OUT
+
+  unstub gcc
+  unstub_linux_build
+}

Reply via email to