Skip to content

Upgrade polyglot and remove openssl lib hack#8962

Merged
headius merged 1 commit intojruby:masterfrom
headius:polyglot_upgrade
Aug 15, 2025
Merged

Upgrade polyglot and remove openssl lib hack#8962
headius merged 1 commit intojruby:masterfrom
headius:polyglot_upgrade

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

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 1cd813e into jruby:master Aug 15, 2025
73 checks passed
@headius headius deleted the polyglot_upgrade branch August 15, 2025 16:56
headius added a commit to headius/jruby that referenced this pull request Aug 19, 2025
Upgrade polyglot and remove openssl lib hack
headius added a commit to headius/jruby that referenced this pull request Aug 19, 2025
Upgrade polyglot and remove openssl lib hack
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.

9.4.12.0 unable to build itself

1 participant