ruby: update to 4.0.7 - #30660
Open
luizluca wants to merge 1 commit into
Open
ruby: update to 4.0.7#30660luizluca wants to merge 1 commit into
luizluca wants to merge 1 commit into
Conversation
luizluca
force-pushed
the
ruby-4.0.7
branch
from
September 30, 2026 21:38
87a3370 to
eb28007
Compare
openwrt-ai
reviewed
Oct 1, 2026
Contributor
Author
|
It looks like ruby is installing source and object files to PKG_INSTALL_DIR. I'll remove them using a filter. |
openwrt-ai
reviewed
Oct 2, 2026
openwrt-ai
reviewed
Oct 3, 2026
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>
openwrt-ai
reviewed
Oct 4, 2026
| 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 -q "$PKG_VERSION"; then |
Collaborator
There was a problem hiding this comment.
Don't use grep -q in test-version.sh. The matched version line should show up in the CI log. Use -F too, so the dots in the version are matched literally (the other in-tree test-version.sh scripts do the same).
Suggested change
| if ruby --version 2>&1 | grep -q "$PKG_VERSION"; then | |
| if ruby --version 2>&1 | grep -F "$PKG_VERSION"; then |
Generated by Claude Code
| PKG_VERSION="$2" | ||
|
|
||
| # Only perform the version check for the main 'ruby' package. | ||
| # This prevents errors where subpackages (like gems) have their own |
Collaborator
There was a problem hiding this comment.
nit: trailing whitespace.
Suggested change
| # This prevents errors where subpackages (like gems) have their own | |
| # This prevents errors where subpackages (like gems) have their own |
Generated by Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ruby: update to 4.0.7
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:
issue.
dependency on ruby-rdoc).
commands as they use their own gem version.
📦 Package Details
Maintainer: me
Description:
Routine updates
🧪 Run Testing Details
Tested with
gem update✅ Formalities
If your PR contains a patch:
git am