Bump rb_sys for ruby 4.0 cross-compile support - #13
Merged
kzaitsev merged 1 commit intoAug 12, 2026
Conversation
0.2.3 (serverscom#12) added source-level ruby 4.0 support, but the precompiled gems it published only ship a 3.4 binary (verified by downloading the actual x86_64-linux gem and checking its spec). Root cause: Gemfile.lock had rb_sys locked at 0.9.105, way older than even the 0.9.124 already pinned in Cargo.toml, and unrelated to the rake-compiler-dock-image:1.12.0 tag the docker/Dockerfile.* files already reference. The cross-gem release job reads the rb_sys version straight out of Gemfile.lock to decide which rake-compiler-dock image to use, so it silently built against an image that predates ruby 4.0 (and 3.3) support and dropped both from the fat gem instead of failing loudly. Bumping rb_sys to 0.9.128 (latest, pulls in rake-compiler-dock 1.12.0, matching the Dockerfiles) and rb-sys to the same version in Cargo.toml for consistency. Recompiled and ran the full spec suite locally against ruby 4.0.6 - all green.
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.
Summary
rb_systo0.9.128inGemfile.lockrb-systo0.9.128inCargo.toml0.2.3to0.2.4ext/pgp_rband reran the full spec suite — all 41 examples pass, rubocop clean of new offensesChanged Files
lib/pgp-rb/version.rb— version bump0.2.3→0.2.4Gemfile.lock— bumprb_systo0.9.128, addsrake-compiler-dock (1.12.0)ext/pgp_rb/Cargo.toml— bumprb-systo0.9.128ext/pgp_rb/Cargo.lock— reflects updatedrb-sys/rb-sys-build/rb-sys-envversions