The ruby rpms
Find a file
Jun Aruga e7395a7d22 Fix the tests using SHA-1 Probabilistic Signature Scheme (PSS) parameters.
Fedora OpenSSL 3.5 on rawhide stopped accepting SHA-1 PSS[1] parameters.
This is different from the SHA-1 signatures which Fedora OpenSSL stopped
accepting since Fedora 41.[2]

This commit fixes the following test failures related to the SHA-1 PSS
parameters with Fedora OpenSSL 3.5.
Note these failures are the downstream Fedora OpenSSL RPM specific.

```
184) Error:
OpenSSL::TestPKeyRSA#test_sign_verify_options:
OpenSSL::PKey::PKeyError: EVP_PKEY_CTX_ctrl_str(ctx, "rsa_mgf1_md", "SHA1"): digest not allowed (digest=SHA1)
    /builddir/build/BUILD/ruby-3.4.2-build/ruby-3.4.2/test/openssl/test_pkey_rsa.rb:113:in 'Hash#each'
    /builddir/build/BUILD/ruby-3.4.2-build/ruby-3.4.2/test/openssl/test_pkey_rsa.rb:113:in 'OpenSSL::PKey::PKey#sign'
    /builddir/build/BUILD/ruby-3.4.2-build/ruby-3.4.2/test/openssl/test_pkey_rsa.rb:113:in 'OpenSSL::TestPKeyRSA#test_sign_verify_options'
185) Error:
OpenSSL::TestPKeyRSA#test_sign_verify_pss:
OpenSSL::PKey::RSAError: digest not allowed (digest=SHA1)
    /builddir/build/BUILD/ruby-3.4.2-build/ruby-3.4.2/test/openssl/test_pkey_rsa.rb:191:in 'OpenSSL::PKey::RSA#sign_pss'
    /builddir/build/BUILD/ruby-3.4.2-build/ruby-3.4.2/test/openssl/test_pkey_rsa.rb:191:in 'OpenSSL::TestPKeyRSA#test_sign_verify_pss'
Finished tests in 1152.595208s, 27.9812 tests/s, 5697.0278 assertions/s.
32251 tests, 6566367 assertions, 0 failures, 2 errors, 183 skips
```

According to a maintainer of the rpms/openssl, Dmitry Belyavskiy
<dbelyavs@redhat.com>, the following patch is disabling SHA-1 PSS parameters.
5f41d6a8f5/f/0018-RH-Allow-disabling-of-SHA1-signatures.patch

Resolves: rhbz#2358256
2025-04-08 18:36:18 +02:00
.fmf Adding fmf plan 2024-08-01 18:31:30 +00:00
plans Adding fmf plan 2024-08-01 18:31:30 +00:00
.gitignore Adding fmf plan 2024-08-01 18:31:30 +00:00
libruby.stp Add TapSet for Ruby. 2013-02-22 14:17:04 +01:00
macros.ruby Add %{ruby_default_filter} macro. 2013-04-30 14:42:13 +02:00
macros.rubygems Extract %gem_version and %gem_prerelease for independent use 2025-01-07 09:59:06 +01:00
operating_system.rb Upgrade to Ruby 3.3.0. 2024-01-02 18:52:33 +01:00
rpm_test_helper.rb Test RPM dependency generators for rubygems. 2024-08-22 13:06:15 +00:00
ruby-2.1.0-always-use-i386.patch Upgrade to Ruby 3.4.1. 2025-01-07 12:43:03 +01:00
ruby-2.1.0-custom-rubygems-location.patch Upgrade to Ruby 3.4.1. 2025-01-07 12:43:03 +01:00
ruby-2.1.0-Enable-configuration-of-archlibdir.patch Upgrade to Ruby 3.4.1. 2025-01-07 12:43:03 +01:00
ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch Upgrade to Ruby 3.4.1. 2025-01-07 12:43:03 +01:00
ruby-2.3.0-ruby_version.patch Upgrade to Ruby 3.4.1. 2025-01-07 12:43:03 +01:00
ruby-2.7.0-Initialize-ABRT-hook.patch Upgrade to Ruby 3.4.1. 2025-01-07 12:43:03 +01:00
ruby-3.3.0-Disable-syntax-suggest-test-case.patch Upgrade to Ruby 3.4.1. 2025-01-07 12:43:03 +01:00
ruby-3.4.2-openssl-Fix-SHA-1-PSS-tests.patch Fix the tests using SHA-1 Probabilistic Signature Scheme (PSS) parameters. 2025-04-08 18:36:18 +02:00
ruby-exercise.stp Add missing ruby-exercise.stp file. 2013-02-22 14:17:53 +01:00
ruby.rpmlintrc Upgrade to Ruby 3.4.1. 2025-01-07 12:43:03 +01:00
ruby.spec Fix the tests using SHA-1 Probabilistic Signature Scheme (PSS) parameters. 2025-04-08 18:36:18 +02:00
rubygems.attr Add conflicts RPM generator. 2018-02-13 13:50:15 +01:00
rubygems.con Fix typo 2024-08-22 13:21:17 +02:00
rubygems.prov Upgrade to Ruby 2.6.0. 2019-01-17 08:31:01 +01:00
rubygems.req Fix typo 2024-08-22 13:21:17 +02:00
rubygems_plugin.rb Fix gem install to generate documentation 2025-01-07 12:43:07 +01:00
sources Upgrade to Ruby 3.4.2. 2025-02-19 12:28:44 +01:00
test_abrt.rb Move the ABRT hook test into separate file. 2015-12-13 19:36:58 +01:00
test_openssl_fips.rb Fix OpenSSL.fips_mode and OpenSSL::PKey.read in OpenSSL 3 FIPS. 2023-09-22 12:54:53 +02:00
test_rubygems_con.rb Test RPM dependency generators for rubygems. 2024-08-22 13:06:15 +00:00
test_rubygems_prov.rb Test RPM dependency generators for rubygems. 2024-08-22 13:06:15 +00:00
test_rubygems_req.rb Test RPM dependency generators for rubygems. 2024-08-22 13:06:15 +00:00
test_systemtap.rb Upgrade to Ruby 2.4.0. 2017-01-09 15:58:21 +01:00