mirror of
https://github.com/openwrt/packages.git
synced 2026-11-29 07:43:20 +04:00
ruby 4.0.3 only contains ERB 6.0.1.1, which fixes CVE-2026-41316. ruby 4.0.4 is a routine update that includes bugfixes. ruby 4.0.5 only contains a security fix for CVE-2026-46727: Use-after-free in pthread-based getaddrinfo timeout handler and a build system regression in Ruby 4.0.4 under C locale. ruby 4.0.6 is a routine update that includes bugfixes. ruby 4.0.7 is a routine update that includes bugfixes. Packaging changes: - Patch 010-fix-riscv64-build.patch was dropped as MUSL 1.2.5 fixes the issue. - Exclude source files (*.c, *.h, Makefile...) from packages. - Updated ruby_missingfiles to match package files exclusions. - Changed the dependency order (rake -> rubygem, racc -> rubygem) - Moved rdoc_plugin.rb to ruby-rdoc package (and dropping ruby-gems dependency on ruby-rdoc). - Refreshed the dependencies. - ruby_find_pkgsdeps: * fixed a bug in dependency expansion * updated weak dependencies - Added custom test-version.sh to ignore version check on subpackages commands as they use their own gem version. Link: https://www.ruby-lang.org/en/news/2026/04/21/ruby-4-0-3-released/ Changelog: https://github.com/ruby/ruby/releases/tag/v4.0.3 Link: https://www.ruby-lang.org/en/news/2026/05/11/ruby-4-0-4-released/ Changelog: https://github.com/ruby/ruby/releases/tag/v4.0.4 Link: https://www.ruby-lang.org/en/news/2026/05/20/ruby-4-0-5-released/ Changelog: https://github.com/ruby/ruby/releases/tag/v4.0.5 Link: https://www.ruby-lang.org/en/news/2026/07/14/ruby-4-0-6-released/ Changelog: https://github.com/ruby/ruby/releases/tag/v4.0.6 Link: https://www.ruby-lang.org/en/news/2026/09/15/ruby-4-0-7-released/ Changelog: https://github.com/ruby/ruby/releases/tag/v4.0.7 Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
25 lines
866 B
Bash
Executable File
25 lines
866 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PKG_NAME="$1"
|
|
PKG_VERSION="$2"
|
|
|
|
# Only perform the version check for the main 'ruby' package.
|
|
# This prevents errors where subpackages (like gems) have their own
|
|
# internal versions (e.g., rbs 3.10.0) that don't match the main package version.
|
|
if [ "$PKG_NAME" = "ruby" ]; then
|
|
# Execute the ruby binary and check if the expected version string
|
|
# is present in its standard output or standard error.
|
|
if ruby --version 2>&1 | grep -F "$PKG_VERSION"; then
|
|
echo "Version check passed for $PKG_NAME ($PKG_VERSION)"
|
|
exit 0
|
|
else
|
|
echo "Version check failed for $PKG_NAME. Expected version: $PKG_VERSION"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
# For all other subpackages (ruby-rbs, ruby-json, etc.), skip the check
|
|
# and return success to bypass the generic version test.
|
|
echo "Skipping version check for subpackage: $PKG_NAME"
|
|
exit 0
|