Skip to content

gem-check fails with Ruby 4.0.0_preview2 #337

@sergiodj

Description

@sergiodj

Hi,

I'm testing jruby-openssl with Ruby 4.0.0_preview2, and I'm seeing the following error:

2025/12/09 22:19:03 WARN + gem-check --package ruby4.0-jruby-openssl --require 'openssl
2025/12/09 22:19:03 WARN jopenssl/version
2025/12/09 22:19:03 WARN openssl/bn
2025/12/09 22:19:03 WARN openssl/cipher
2025/12/09 22:19:03 WARN openssl/digest
2025/12/09 22:19:03 WARN openssl/hmac
2025/12/09 22:19:03 WARN openssl/marshal
2025/12/09 22:19:03 WARN openssl/pkcs5
2025/12/09 22:19:03 WARN openssl/pkey
2025/12/09 22:19:03 WARN openssl/x509
2025/12/09 22:19:03 WARN '
2025/12/09 22:19:03 INFO PASS[gem-check]: Success listing gem [jruby-openssl]
2025/12/09 22:19:03 INFO PASS[gem-check]: Success requiring gem [openssl]
2025/12/09 22:19:03 INFO PASS[gem-check]: Success requiring gem [jopenssl/version]
2025/12/09 22:19:03 INFO PASS[gem-check]: Success requiring gem [openssl/bn]
2025/12/09 22:19:03 INFO PASS[gem-check]: Success requiring gem [openssl/cipher]
2025/12/09 22:19:03 INFO PASS[gem-check]: Success requiring gem [openssl/digest]
2025/12/09 22:19:03 INFO PASS[gem-check]: Success requiring gem [openssl/hmac]
2025/12/09 22:19:03 INFO PASS[gem-check]: Success requiring gem [openssl/marshal]
2025/12/09 22:19:03 INFO PASS[gem-check]: Success requiring gem [openssl/pkcs5]
2025/12/09 22:19:03 INFO INFO[gem-check]: Unexpected error in ruby require test for 'openssl/pkey' [1]: /usr/lib/ruby/4.0.0+0/openssl/pkey.rb:11:in '<module:PKey>': uninitialized constant OpenSSL::PKey::PKeyError (NameError)
2025/12/09 22:19:03 INFO
2025/12/09 22:19:03 INFO   DHError = PKeyError
2025/12/09 22:19:03 INFO             ^^^^^^^^^
2025/12/09 22:19:03 INFO     from /usr/lib/ruby/4.0.0+0/openssl/pkey.rb:9:in '<top (required)>'
2025/12/09 22:19:03 INFO     from -e:5:in 'Kernel#require'
2025/12/09 22:19:03 INFO     from -e:5:in '<main>'
2025/12/09 22:19:03 INFO FAIL[gem-check]: Failed requiring gem [openssl/pkey]
2025/12/09 22:19:03 INFO PASS[gem-check]: Success requiring gem [openssl/x509]
2025/12/09 22:19:03 INFO INFO[gem-check]: Tested [package='ruby4.0-jruby-openssl', require='openssl
2025/12/09 22:19:03 INFO jopenssl/version
2025/12/09 22:19:03 INFO openssl/bn
2025/12/09 22:19:03 INFO openssl/cipher
2025/12/09 22:19:03 INFO openssl/digest
2025/12/09 22:19:03 INFO openssl/hmac
2025/12/09 22:19:03 INFO openssl/marshal
2025/12/09 22:19:03 INFO openssl/pkcs5
2025/12/09 22:19:03 INFO openssl/pkey
2025/12/09 22:19:03 INFO openssl/x509
2025/12/09 22:19:03 INFO '] with [gem-check].  [10/11] passed.

More specifically:

Unexpected error in ruby require test for 'openssl/pkey' [1]: /usr/lib/ruby/4.0.0+0/openssl/pkey.rb:11:in '<module:PKey>': uninitialized constant OpenSSL::PKey::PKeyError (NameError)

Ruby 4.0 is scheduled to release on Christmas and it would be great if jruby-openssl could support it.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions