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 2022-07-22 19:21:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby-build (Old) and /work/SRC/openSUSE:Factory/.ruby-build.new.21925 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby-build" Fri Jul 22 19:21:17 2022 rev:6 rq:990595 version:20220721 Changes: -------- --- /work/SRC/openSUSE:Factory/ruby-build/ruby-build.changes 2022-07-14 16:35:08.296678664 +0200 +++ /work/SRC/openSUSE:Factory/.ruby-build.new.21925/ruby-build.changes 2022-07-22 19:21:28.620684203 +0200 @@ -1,0 +2,11 @@ +Thu Jul 21 16:22:26 UTC 2022 - Lukas M??ller <expee...@outlook.com> + +- Update to version 20220721. + Changelog: //github.com/rbenv/ruby-build/releases/tag/v20220721 + * For Ruby 3.2.0-dev, install YJIT by default if rustc 1.60+ is available + * Don't auto-enable YJIT except on x86_64 + * Restructure build_package_enable_yjit to be cleaner and to exit before later checks if possible. + * Apply patch for implicitly declaration error of OpenSSL 1.1.1q + * Use inline patch instead of curl download + +------------------------------------------------------------------- Old: ---- ruby-build-20220713.tar.gz New: ---- ruby-build-20220721.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby-build.spec ++++++ --- /var/tmp/diff_new_pack.blNghA/_old 2022-07-22 19:21:29.128684988 +0200 +++ /var/tmp/diff_new_pack.blNghA/_new 2022-07-22 19:21:29.132684994 +0200 @@ -24,7 +24,7 @@ %endif Name: ruby-build -Version: 20220713 +Version: 20220721 Release: 0 BuildArch: noarch License: MIT ++++++ ruby-build-20220713.tar.gz -> ruby-build-20220721.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20220713/bin/ruby-build new/ruby-build-20220721/bin/ruby-build --- old/ruby-build-20220713/bin/ruby-build 2022-07-13 12:14:32.000000000 +0200 +++ new/ruby-build-20220721/bin/ruby-build 2022-07-21 13:41:23.000000000 +0200 @@ -14,7 +14,7 @@ # --version Show version of ruby-build # -RUBY_BUILD_VERSION="20220713" +RUBY_BUILD_VERSION="20220721" OLDIFS="$IFS" @@ -1161,6 +1161,25 @@ local nokerberos [[ "$1" != openssl-1.0.* ]] || nokerberos=1 + if [[ "$1" == openssl-1.1.1q ]]; then + # https://github.com/rbenv/ruby-build/discussions/2009#discussioncomment-3146585 + # https://github.com/openssl/openssl/commit/f9e578e720bb35228948564192adbe3bc503d5fb.diff + patch -p1 <<EOF +diff --git a/test/v3ext.c b/test/v3ext.c +index 926f3884b13..a8ab64b2714 100644 +--- a/test/v3ext.c ++++ b/test/v3ext.c +@@ -8,6 +8,7 @@ + */ + + #include <stdio.h> ++#include <string.h> + #include <openssl/x509.h> + #include <openssl/x509v3.h> + #include <openssl/pem.h> +EOF + fi + # Compile a shared lib with zlib dynamically linked. package_option openssl configure --openssldir="$OPENSSLDIR" zlib-dynamic no-ssl3 shared ${nokerberos:+no-ssl2 no-krb5} @@ -1256,6 +1275,26 @@ done } +build_package_enable_yjit() { + # If YJIT is explicitly enabled or disabled, don't change the config + if [[ " ${RUBY_CONFIGURE_OPTS} " == *" --enable-yjit"* || " ${RUBY_CONFIGURE_OPTS} " == *" --disable-yjit"* ]]; then + return 0 + fi + + # If we aren't on x86_64, don't enable YJIT + [ "$(uname -m)" = "x86_64" ] || return 0 + + local rustc_ver="$(rustc --version 2>/dev/null)" + [ -n "$rustc_ver" ] || return 0 + # Some kind of built-in bash comparison for dotted version strings would be awesome. + if [[ "${rustc_ver}" == *"rustc 1."[6789]* ]]; then + echo "Building with YJIT by default because ${rustc_ver} is installed; add RUBY_CONFIGURE_OPTS='--disable-yjit' to disable explicitly" >&3 + package_option ruby configure --enable-yjit + else + echo "rustc 1.60+ is not installed, YJIT will not be built; if you want to use YJIT, install rustc 1.60+ and rerun this command." >&3 + fi +} + build_package_enable_shared() { if [[ " ${RUBY_CONFIGURE_OPTS} " != *" --disable-shared"* ]]; then package_option ruby configure --enable-shared diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20220713/share/ruby-build/3.2.0-dev new/ruby-build-20220721/share/ruby-build/3.2.0-dev --- old/ruby-build-20220713/share/ruby-build/3.2.0-dev 2022-07-13 12:14:32.000000000 +0200 +++ new/ruby-build-20220721/share/ruby-build/3.2.0-dev 2022-07-21 13:41:23.000000000 +0200 @@ -1,2 +1,2 @@ install_package "openssl-3.0.5" "https://www.openssl.org/source/openssl-3.0.5.tar.gz#aa7d8d9bef71ad6525c55ba11e5f4397889ce49c2c9349dcea6d3e4f0b024a7a" openssl --if needs_openssl_102_300 -install_git "ruby-master" "https://github.com/ruby/ruby.git" "master" ldflags_dirs autoconf standard_build standard_install_with_bundled_gems verify_openssl +install_git "ruby-master" "https://github.com/ruby/ruby.git" "master" ldflags_dirs autoconf enable_yjit standard_build standard_install_with_bundled_gems verify_openssl