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-09-17 15:20:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ruby-build (Old)
 and      /work/SRC/openSUSE:Factory/.ruby-build.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ruby-build"

Thu Sep 17 15:20:51 2026 rev:117 rq:1378388 version:20260916

Changes:
--------
--- /work/SRC/openSUSE:Factory/ruby-build/ruby-build.changes    2026-09-02 
17:13:11.887186452 +0200
+++ /work/SRC/openSUSE:Factory/.ruby-build.new.383539/ruby-build.changes        
2026-09-17 15:22:39.060111141 +0200
@@ -1,0 +2,11 @@
+Wed Sep 16 10:52:23 UTC 2026 - Lukas Müller <[email protected]>
+
+- Update to version 20260916.
+  Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20260916
+  * Set -x flag for release script to show commands being run by @eregon in 
#2639
+  * Hide dup3() and pipe2() from configure on macOS older than 27 by @hsbt in 
#2641
+- Changes from version 20260915:
+  Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20260915
+  * Added 4.0.7
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ ruby-build.spec ++++++
--- /var/tmp/diff_new_pack.g90D70/_old  2026-09-17 15:22:40.039152159 +0200
+++ /var/tmp/diff_new_pack.g90D70/_new  2026-09-17 15:22:40.043152327 +0200
@@ -24,7 +24,7 @@
 %endif
 
 Name:           ruby-build
-Version:        20260902
+Version:        20260916
 Release:        0
 BuildArch:      noarch
 License:        MIT

++++++ ruby-build-20260902.tar.gz -> ruby-build-20260916.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20260902/bin/ruby-build 
new/ruby-build-20260916/bin/ruby-build
--- old/ruby-build-20260902/bin/ruby-build      2026-09-02 16:01:49.000000000 
+0200
+++ new/ruby-build-20260916/bin/ruby-build      2026-09-16 02:49:03.000000000 
+0200
@@ -18,7 +18,7 @@
 #   -6, --ipv6      Resolve names to IPv6 addresses only
 #
 
-RUBY_BUILD_VERSION="20260902"
+RUBY_BUILD_VERSION="20260916"
 
 OLDIFS="$IFS"
 
@@ -754,6 +754,13 @@
       # override them and notably lose the -O3, producing a -O0 Ruby.
       export cflags="-std=gnu17 $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.
+      # Ruby's configure detects them even when building for an older macOS, 
where
+      # they are only weakly linked and are NULL at runtime, which makes 
miniruby
+      # crash during the build: https://bugs.ruby-lang.org/issues/22311
+      export ac_cv_func_dup3=no ac_cv_func_pipe2=no
+    fi
     # ./configure --prefix=/path/to/ruby
     # shellcheck disable=SC2086,SC2153
     capture_command ${!PACKAGE_CONFIGURE:-./configure} 
--prefix="${!PACKAGE_PREFIX_PATH:-$PREFIX_PATH}" \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20260902/script/release 
new/ruby-build-20260916/script/release
--- old/ruby-build-20260902/script/release      2026-09-02 16:01:49.000000000 
+0200
+++ new/ruby-build-20260916/script/release      2026-09-16 02:49:03.000000000 
+0200
@@ -8,7 +8,7 @@
 # - creates a new Release on GitHub
 # - [automated] a GitHub Action will create a Homebrew PR for the new release
 
-set -e
+set -ex
 
 git fetch -q --tags origin master
 git checkout -q master
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ruby-build-20260902/share/man/man1/ruby-build.1 
new/ruby-build-20260916/share/man/man1/ruby-build.1
--- old/ruby-build-20260902/share/man/man1/ruby-build.1 2026-09-02 
16:01:49.000000000 +0200
+++ new/ruby-build-20260916/share/man/man1/ruby-build.1 2026-09-16 
02:49:03.000000000 +0200
@@ -2,12 +2,12 @@
 .\"     Title: ruby-build
 .\"    Author: Mislav Marohnić
 .\" Generator: Asciidoctor 2.0.26
-.\"      Date: 2026-05-01
+.\"      Date: 2026-05-07
 .\"    Manual: ruby-build Manual
-.\"    Source: ruby-build 20260902
+.\"    Source: ruby-build 20260916
 .\"  Language: English
 .\"
-.TH "RUBY\-BUILD" "1" "2026-05-01" "ruby\-build 20260902" "ruby\-build Manual"
+.TH "RUBY\-BUILD" "1" "2026-05-07" "ruby\-build 20260916" "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-20260902/share/ruby-build/4.0.7 
new/ruby-build-20260916/share/ruby-build/4.0.7
--- old/ruby-build-20260902/share/ruby-build/4.0.7      1970-01-01 
01:00:00.000000000 +0100
+++ new/ruby-build-20260916/share/ruby-build/4.0.7      2026-09-16 
02:49:03.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-3.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-20260902/test/compiler.bats 
new/ruby-build-20260916/test/compiler.bats
--- old/ruby-build-20260902/test/compiler.bats  2026-09-02 16:01:49.000000000 
+0200
+++ new/ruby-build-20260916/test/compiler.bats  2026-09-16 02:49:03.000000000 
+0200
@@ -12,7 +12,7 @@
   cd "$INSTALL_ROOT"
 
   stub_repeated uname '-s : echo Darwin'
-  stub sw_vers '-productVersion : echo 10.10'
+  stub_repeated sw_vers '-productVersion : echo 10.10'
   stub_repeated brew 'false'
   # shellcheck disable=SC2016
   stub_repeated make 'echo "make $(inspect_args "$@")" >> build.log'
@@ -37,6 +37,80 @@
 make -j 2
 make install
 OUT
+
+  unstub uname
+  unstub sw_vers
+  unstub brew
+  unstub make
+}
+
+@test "dup3 and pipe2 are hidden from configure when building on older macOS" {
+  mkdir -p "$INSTALL_ROOT"
+  cd "$INSTALL_ROOT"
+
+  stub_repeated uname '-s : echo Darwin'
+  stub_repeated sw_vers '-productVersion : echo 26.6.2'
+  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 dup3=\${ac_cv_func_dup3-unset} >> build.log
+echo pipe2=\${ac_cv_func_pipe2-unset} >> build.log
+CON
+  chmod +x ./configure
+
+  run_inline_definition <<DEF
+build_package_standard ruby-3.4.0
+DEF
+  assert_success
+  run cat build.log
+  assert_output <<OUT
+./configure --prefix=$INSTALL_ROOT --with-ext=openssl,psych,+
+dup3=no
+pipe2=no
+make -j 2
+make install
+OUT
+
+  unstub uname
+  unstub sw_vers
+  unstub brew
+  unstub make
+}
+
+@test "dup3 and pipe2 are left to configure on macOS 27" {
+  mkdir -p "$INSTALL_ROOT"
+  cd "$INSTALL_ROOT"
+
+  stub_repeated uname '-s : echo Darwin'
+  stub_repeated sw_vers '-productVersion : echo 27.0'
+  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 dup3=\${ac_cv_func_dup3-unset} >> build.log
+echo pipe2=\${ac_cv_func_pipe2-unset} >> build.log
+CON
+  chmod +x ./configure
+
+  run_inline_definition <<DEF
+build_package_standard ruby-3.4.0
+DEF
+  assert_success
+  run cat build.log
+  assert_output <<OUT
+./configure --prefix=$INSTALL_ROOT --with-ext=openssl,psych,+
+dup3=unset
+pipe2=unset
+make -j 2
+make install
+OUT
 
   unstub uname
   unstub sw_vers

Reply via email to