Skip to content

Bump rb_sys for ruby 4.0 cross-compile support - #13

Merged
kzaitsev merged 1 commit into
serverscom:mainfrom
scd-yuso:feature/ruby-4.0-cross-compile
Aug 12, 2026
Merged

Bump rb_sys for ruby 4.0 cross-compile support#13
kzaitsev merged 1 commit into
serverscom:mainfrom
scd-yuso:feature/ruby-4.0-cross-compile

Conversation

@scd-yuso

Copy link
Copy Markdown
Contributor

Summary

  • Bump rb_sys to 0.9.128 in Gemfile.lock
  • Bump rb-sys to 0.9.128 in Cargo.toml
  • Bump gem version from 0.2.3 to 0.2.4
  • Verified locally against Ruby 4.0.6: recompiled ext/pgp_rb and reran the full spec suite — all 41 examples pass, rubocop clean of new offenses

Changed Files

  • lib/pgp-rb/version.rb — version bump 0.2.30.2.4
  • Gemfile.lock — bump rb_sys to 0.9.128, adds rake-compiler-dock (1.12.0)
  • ext/pgp_rb/Cargo.toml — bump rb-sys to 0.9.128
  • ext/pgp_rb/Cargo.lock — reflects updated rb-sys/rb-sys-build/rb-sys-env versions

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.
@kzaitsev
kzaitsev merged commit ed54b38 into serverscom:main Aug 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants