8d5b538747
When the dependant openssl-libs was upgraded from 1:3.1.1-4.fc40 to
1:3.1.4-1.fc40, Fedora rawhide started to fail on Koschei.
This commit fixes the following failures in OpenSSL FIPS.
```
+ make -C redhat-linux-build runruby 'TESTRUN_SCRIPT= -I/builddir/build/BUILD/ruby-3.2.2/tool/lib --enable-gems /builddir/build/SOURCES/test_openssl_fips.rb /builddir/build/BUILD/ruby-3.2.2 --verbose'
...
1) Failure:
OpenSSL::TestFIPS#test_fips_mode_get_with_fips_mode_set [/builddir/build/BUILD/ruby-3.2.2/test/openssl/test_fips.rb:38]:
assert_separately failed with error message
pid 93968 exit 1
| /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/pkey.rb:132:in `initialize': could not parse pkey (OpenSSL::PKey::DHError)
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/pkey.rb:132:in `new'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/pkey.rb:132:in `new'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/ssl.rb:37:in `<class:SSLContext>'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/ssl.rb:23:in `<module:SSL>'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/ssl.rb:22:in `<module:OpenSSL>'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/ssl.rb:21:in `<top (required)>'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl.rb:21:in `require_relative'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl.rb:21:in `<top (required)>'
| >-from -:in `require'
2) Failure:
OpenSSL::TestFIPS#test_fips_mode_get_is_true_on_fips_mode_enabled [/builddir/build/BUILD/ruby-3.2.2/test/openssl/test_fips.rb:12]:
assert_separately failed with error message
pid 93969 exit 1
| /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/pkey.rb:132:in `initialize': could not parse pkey (OpenSSL::PKey::DHError)
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/pkey.rb:132:in `new'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/pkey.rb:132:in `new'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/ssl.rb:37:in `<class:SSLContext>'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/ssl.rb:23:in `<module:SSL>'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/ssl.rb:22:in `<module:OpenSSL>'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl/ssl.rb:21:in `<top (required)>'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl.rb:21:in `require_relative'
| >-from /builddir/build/BUILD/ruby-3.2.2/redhat-linux-build/.ext/common/openssl.rb:21:in `<top (required)>'
| >-from -:in `require'
Finished tests in 0.166449s, 72.0941 tests/s, 342.4468 assertions/s.
12 tests, 57 assertions, 2 failures, 0 errors, 1 skips
```
The commit was ported from CentOS Stream rpms/ruby stream-ruby-3.1-rhel-9.4.0 branch:
<
|
||
---|---|---|
.gitignore | ||
libruby.stp | ||
macros.ruby | ||
macros.rubygems | ||
operating_system.rb | ||
ruby-2.1.0-always-use-i386.patch | ||
ruby-2.1.0-custom-rubygems-location.patch | ||
ruby-2.1.0-Enable-configuration-of-archlibdir.patch | ||
ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch | ||
ruby-2.3.0-ruby_version.patch | ||
ruby-2.7.0-Initialize-ABRT-hook.patch | ||
ruby-2.7.1-Timeout-the-test_bug_reporter_add-witout-raising-err.patch | ||
ruby-3.1.0-Don-t-query-RubyVM-FrozenCore-for-class-path.patch | ||
ruby-3.2.0-Revert-Fix-test-syntax-suggest-order.patch | ||
ruby-3.2.0-Revert-Test-syntax_suggest-by-make-check.patch | ||
ruby-3.2.0-Use-SHA256-instead-of-SHA1.patch | ||
ruby-3.3.0-openssl-3.2.0-fips-enable-tests.patch | ||
ruby-3.3.0-openssl-3.2.0-fips-fix-pkey-dh-require-openssl.patch | ||
ruby-3.3.0-openssl-3.2.0-fips-fix-pkey-read-in-openssl-3.patch | ||
ruby-3.3.0-openssl-3.2.0-fix-fips-get-set-in-openssl-3.patch | ||
ruby-exercise.stp | ||
ruby.rpmlintrc | ||
ruby.spec | ||
rubygems.attr | ||
rubygems.con | ||
rubygems.prov | ||
rubygems.req | ||
sources | ||
test_abrt.rb | ||
test_openssl_fips.rb | ||
test_systemtap.rb |