Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL missing in Ruby polyglot building JRuby #243

Open
headius opened this issue Sep 12, 2022 · 1 comment
Open

OpenSSL missing in Ruby polyglot building JRuby #243

headius opened this issue Sep 12, 2022 · 1 comment

Comments

@headius
Copy link
Contributor

headius commented Sep 12, 2022

Hello!

As you know, JRuby's own build is using polyglot, so I have been trying to upgrade the version we use today. I discovered that some time in the 0.4.8 release, the following error now shows up when we try to use polyglot to install RubyGems during our build:

using jruby 9.2.19.0
install gems unless already installed
/home/headius/.m2/repository/rubygems/rubygems-update/3.2.29/rubygems-update-3.2.29.gem
NameError: uninitialized constant Gem::Specification::OpenSSL
         const_missing at org/jruby/RubyModule.java:3766
               to_ruby at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/specification.rb:2470
                  each at org/jruby/RubyArray.java:1820
               to_ruby at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/specification.rb:2466
     to_ruby_for_cache at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/specification.rb:2515
  ensure_loadable_spec at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/installer.rb:633
    pre_install_checks at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/installer.rb:914
               install at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/installer.rb:301
              eval_pom at /home/headius/work/jruby93/lib/pom.rb:187
                  each at org/jruby/RubyArray.java:1820
              eval_pom at /home/headius/work/jruby93/lib/pom.rb:175

This may be a bug in JRuby, but at a glance it looks like something is avoiding or preventing JRuby's OpenSSL emulation layer from loading.

We will be upgrading to 0.4.7 and will work with you to fix this issue.

cc @kares for suggestions from the jruby-openssl side

headius added a commit to headius/jruby that referenced this issue Sep 12, 2022
This update brings in fixes for element ordering, which were
causing dueling XML diffs when moving back and forth between Java
8 and Java 9+, which order properties differently due to new
hashing algorithms.

There are other fixes and updates, of course, but the two most
recent polyglot-maven releases do not successfully build JRuby.
See takari/polyglot-maven#243 for more
information on that issue.
@cstamas
Copy link
Member

cstamas commented Nov 13, 2023

Does this issue still stand? (w/ 0.5.0)

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

No branches or pull requests

2 participants