Skip to content

Upgrade polyglot and remove openssl lib hack#8963

Merged
headius merged 1 commit intojruby:jruby-9.4from
headius:backport_polyglot_fix
Aug 15, 2025
Merged

Upgrade polyglot and remove openssl lib hack#8963
headius merged 1 commit intojruby:jruby-9.4from
headius:backport_polyglot_fix

Conversation

@headius
Copy link
Member

@headius headius commented Aug 15, 2025

The lib hack here put a blank openssl.rb into lib/target/lib and added that directory to the LOAD_PATH of the polyglot JRuby runtime. This was done many years ago, perhaps before we had refined how standard libraries could be loaded from released JRuby stdlib jars, and does not appear to be necessary now for a successful build. In #8634 we learned that because newer RubyGems depends on OpenSSL at runtime, and we're feeding it a bogus openssl.rb, newer polyglot versions that depends on newer JRuby versions cannot successfully build JRuby from repo.

This PR removes the openssl.rb lib hack altogether and does not appear to break local builds of JRuby while allowing polyglot to be upgraded to latest.

Fixes #8634

Backport of #8962 to 9.4.

The lib hack here put a blank openssl.rb into lib/target/lib and
added that directory to the LOAD_PATH of the polyglot JRuby
runtime. This was done many years ago, perhaps before we had
refined how standard libraries could be loaded from released JRuby
stdlib jars, and does not appear to be necessary now for a
successful build. In jruby#8634 we learned that because
newer RubyGems depends on OpenSSL at runtime, and we're feeding it
a bogus openssl.rb, newer polyglot versions that depends on newer
JRuby versions cannot successfully build JRuby from repo.

This PR removes the openssl.rb lib hack altogether and does not
appear to break local builds of JRuby while allowing polyglot to
be upgraded to latest.

Fixes jruby#8634
@headius headius added this to the JRuby 9.4.14.0 milestone Aug 15, 2025
@headius headius merged commit 2f69836 into jruby:jruby-9.4 Aug 15, 2025
97 checks passed
@headius headius deleted the backport_polyglot_fix branch August 15, 2025 17:38
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.

1 participant