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 2023-10-15 19:27:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby-build (Old) and /work/SRC/openSUSE:Factory/.ruby-build.new.20540 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby-build" Sun Oct 15 19:27:49 2023 rev:41 rq:1117810 version:20231014 Changes: -------- --- /work/SRC/openSUSE:Factory/ruby-build/ruby-build.changes 2023-10-12 23:43:21.451608912 +0200 +++ /work/SRC/openSUSE:Factory/.ruby-build.new.20540/ruby-build.changes 2023-10-15 19:29:59.506195898 +0200 @@ -1,0 +2,7 @@ +Sat Oct 14 16:00:57 UTC 2023 - Lukas Müller <lukas@localhost> + +- Update to version 20231014. + Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20231014 + * Add RUBY_BUILD_TARBALL_OVERRIDE to override the ruby tarball URL by @eregon in #2258 + +------------------------------------------------------------------- Old: ---- ruby-build-20231012.tar.gz New: ---- ruby-build-20231014.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby-build.spec ++++++ --- /var/tmp/diff_new_pack.DFbInp/_old 2023-10-15 19:29:59.926211028 +0200 +++ /var/tmp/diff_new_pack.DFbInp/_new 2023-10-15 19:29:59.926211028 +0200 @@ -24,7 +24,7 @@ %endif Name: ruby-build -Version: 20231012 +Version: 20231014 Release: 0 BuildArch: noarch License: MIT ++++++ ruby-build-20231012.tar.gz -> ruby-build-20231014.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20231012/README.md new/ruby-build-20231014/README.md --- old/ruby-build-20231012/README.md 2023-10-12 11:46:39.000000000 +0200 +++ new/ruby-build-20231014/README.md 2023-10-14 12:19:11.000000000 +0200 @@ -82,9 +82,10 @@ | `RUBY_BUILD_CURL_OPTS` | Additional options to pass to `curl` for downloading. | | `RUBY_BUILD_WGET_OPTS` | Additional options to pass to `wget` for downloading. | | `RUBY_BUILD_MIRROR_URL` | Custom mirror URL root. | -| `RUBY_BUILD_MIRROR_PACKAGE_URL` | Custom complete mirror URL (e.g. http://mirror.example.com/package-1.0.0.tar.gz). | +| `RUBY_BUILD_MIRROR_PACKAGE_URL` | Custom complete mirror URL (e.g. http://mirror.example.com/package-1.0.0.tar.gz). | | `RUBY_BUILD_SKIP_MIRROR` | Bypass the download mirror and fetch all package files from their original URLs. | | `RUBY_BUILD_ROOT` | Custom build definition directory. (Default: `share/ruby-build`) | +| `RUBY_BUILD_TARBALL_OVERRIDE` | Override the URL to fetch the ruby tarball from, optionally followed by `#checksum`. | | `RUBY_BUILD_DEFINITIONS` | Additional paths to search for build definitions. (Colon-separated list) | | `CC` | Path to the C compiler. | | `RUBY_CFLAGS` | Additional `CFLAGS` options (_e.g.,_ to override `-O3`). | diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ruby-build-20231012/bin/ruby-build new/ruby-build-20231014/bin/ruby-build --- old/ruby-build-20231012/bin/ruby-build 2023-10-12 11:46:39.000000000 +0200 +++ new/ruby-build-20231014/bin/ruby-build 2023-10-14 12:19:11.000000000 +0200 @@ -14,7 +14,7 @@ # --version Show version of ruby-build # -RUBY_BUILD_VERSION="20231012" +RUBY_BUILD_VERSION="20231014" OLDIFS="$IFS" @@ -381,6 +381,10 @@ local checksum local extracted_dir + if is_ruby_package "$1" && [ -n "$RUBY_BUILD_TARBALL_OVERRIDE" ]; then + package_url="$RUBY_BUILD_TARBALL_OVERRIDE" + fi + if [ "$package_url" != "${package_url/\#}" ]; then checksum="${package_url#*#}" package_url="${package_url%%#*}" @@ -1257,14 +1261,23 @@ apply_ruby_patch() { local patchfile - case "$1" in - ruby-* | jruby-* | rubinius-* | truffleruby-* ) + if is_ruby_package "$1"; then patchfile="$(mktemp "${TMP}/ruby-patch.XXXXXX")" cat "${2:--}" >"$patchfile" local striplevel=0 grep -q '^--- a/' "$patchfile" && striplevel=1 patch -p$striplevel --force -i "$patchfile" + fi +} + +is_ruby_package() { + case "$1" in + ruby-* | jruby-* | rubinius-* | truffleruby[+-]* | mruby-* | picoruby-* ) + return 0 + ;; + *) + return 1 ;; esac }