Skip to content

Commit

Permalink
workaround jruby#7799 by updating rubygems for JRuby 9.2.x (#2246)
Browse files Browse the repository at this point in the history
Co-authored-by: Mislav Marohnić <git@mislav.net>
  • Loading branch information
jsvd and mislav committed Sep 12, 2023
1 parent 2054401 commit c6e924e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,11 @@ build_package_jruby() {

install_jruby_launcher() {
cd "${PREFIX_PATH}/bin"
# workaround for https://github.com/jruby/jruby/issues/7799
local jruby_version
jruby_version="$(./ruby -e 'puts JRUBY_VERSION' 2>/dev/null)"
[[ $jruby_version != "9.2."* ]] ||
./ruby gem update -q --silent --system 3.3.26 --no-document --no-post-install-message >&4 2>&1
{ ./ruby gem install jruby-launcher
} >&4 2>&1
}
Expand Down
1 change: 1 addition & 0 deletions test/build.bats
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ DEF
assert_success

assert_build_log <<OUT
jruby -e puts JRUBY_VERSION
jruby gem install jruby-launcher
OUT

Expand Down

0 comments on commit c6e924e

Please sign in to comment.