Commit graph

680 commits

Author SHA1 Message Date
Vít Ondruch
b83dd88d26 Add bundled provides on multiple places
These libraries are released on their own release cycle and Ruby bundles
them. It is not always obvious if Ruby is upstream or the independent
project is upstream, but better to have more bundled provides to be sure
we don't ship vulnerable code.
2023-12-21 13:03:03 +01:00
Vít Ondruch
84e0e0b043 Extract Racc into separate gem.
We used to have Racc as an indepenent gem up until:

https://src.fedoraproject.org/rpms/ruby/c/baf046a6a4d17fa309c9d20fa3db949f6c24aacf

At that time, Racc was default gem and it was problematic. However,
with Ruby 3.3, Racc is not moved to be default gem instead. This would
not be reason for change on itself. But the issue this change is trying
to address is a possible conflict of ruby-bundled-gems package with
standalone rubygem-racc:

~~~
Error: Transaction test error:
  file /usr/lib64/gems/ruby/racc-1.7.3/racc/cparse.so from install of ruby-bundled-gems-3.3.0~20231219git8e6f63df47-184.fc40.x86_64 conflicts with file from package rubygem-racc-1.7.3-200.fc40.x86_64
  file /usr/share/gems/specifications/racc-1.7.3.gemspec from install of ruby-bundled-gems-3.3.0~20231219git8e6f63df47-184.fc40.x86_64 conflicts with file from package rubygem-racc-1.7.3-200.fc40.x86_64
~~~

There are different possible solutions discussed here:

https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.org/thread/SS32RN2HU56LAOK2X6GRKU27FTJS6MA2/

Nevertheless, this seems to be the best solution for now.
2023-12-21 12:57:06 +01:00
Vít Ondruch
3a55e19226 Sort bundled gem version macros. 2023-12-21 10:34:05 +01:00
Vít Ondruch
e4f3f1aecb Upgrade to Ruby 3.3.0 (bcb4706dac). 2023-12-21 10:29:21 +01:00
Vít Ondruch
e0f4b48847 Upgrade to Ruby 3.3.0 (8e6f63df47). 2023-12-19 18:05:27 +01:00
Vít Ondruch
13308e05ec Upgrade to Ruby 3.3.0 (04f7be6126). 2023-12-15 16:13:29 +01:00
Vít Ondruch
224fa7843d Upgrade to Ruby 3.3.0 (e3631277c3). 2023-12-14 13:56:51 +01:00
Vít Ondruch
cde5c2f739 Upgrade to Ruby 3.3.0 (e51f9e9f75). 2023-12-14 11:25:37 +01:00
Vít Ondruch
b611f4d94f Drop obsolete comment 2023-12-13 16:55:28 +01:00
Vít Ondruch
3b14779a1f Upgrade to Ruby 3.3.0 (a7ad9f3836). 2023-12-13 16:06:37 +01:00
Vít Ondruch
e0f12f33a9 Apply patch fixing UDPSocket#remote_address spec errors
While this will likely be just temporary, it is better to fix the error
then disable test case.
2023-12-11 14:58:43 +01:00
Vít Ondruch
f9a5991e7f Upgrade to Ruby 3.3.0 (1ab91b12fa). 2023-12-11 14:58:18 +01:00
Vít Ondruch
11fe1e202a Upgrade to Ruby 3.3.0-rc1. 2023-12-11 13:13:16 +01:00
Vít Ondruch
7e78bc09b6 Upgrade to Ruby 3.3.0 (071df40495). 2023-12-07 17:02:02 +01:00
Jarek Prokop
8be4375c24 Re-enable tests that seem to pass now.
This should be fixed by:

b4571097df

And also previously "hidden" by `LANG` change in RPM:

3be76d7144
2023-12-07 15:56:08 +01:00
Vít Ondruch
891b64aafe Upgrade to Ruby 3.3.0 (79eb75a8dd). 2023-12-07 15:56:08 +01:00
Vít Ondruch
746685e50a Remove the sctrict io-console version requirement.
The strict require currently causes issue with io-console developemnt
versions such as `0.6.1.dev.1`. However:

1) upstream does not seems to be bothered with required version,
2) the use case for RDoc is currently pretty basic and the required
   `IO.console_size` is available since Ruby 1.9 \[[1]\].

Therefore dropping version should be fine.

[1]: ce969b7817
2023-12-07 15:56:08 +01:00
Vít Ondruch
bb54238269 Upgrade to Ruby 3.3.0 (24e0b185ab). 2023-12-07 15:56:08 +01:00
Vít Ondruch
03933b9692 Upgrade to Ruby 3.3.0 (ad3db6711c). 2023-12-07 15:56:08 +01:00
Vít Ondruch
865361ee6a Upgrade to Ruby 3.3.0 (a1e24ab484). 2023-12-07 15:56:08 +01:00
Vít Ondruch
8a805df2c8 Remark about embedded Racc having no influence on license. 2023-12-07 15:56:08 +01:00
Vít Ondruch
f039949b3c Re-enable TestCoverage#test_coverage_suspendable test
This was likely resolved by:

https://github.com/ruby/ruby/pull/8670
2023-12-07 15:56:08 +01:00
Vít Ondruch
a25407b731 Upgrade to Ruby 3.3.0 (c44d65427e). 2023-12-07 15:56:08 +01:00
Vít Ondruch
5db7137004 Disable "Defaulting to user installation" RubyGems message
This restores `gem spec` command output and therefore fixes build of
rubygem- packages.

https://github.com/rubygems/rubygems/issues/7082
2023-12-07 15:56:08 +01:00
Vít Ondruch
ddfdb3e8b4 Upgrade to Ruby 3.3.0 (ef3f9f1a68). 2023-12-07 15:56:08 +01:00
Vít Ondruch
f95edf7e7d Drop manual Requires/Provides in favor of automacitally generated. 2023-12-07 15:56:08 +01:00
Vít Ondruch
2410dfd180 Upgrade to Ruby 3.3.0 (35edc14ee1). 2023-12-07 15:56:08 +01:00
Vít Ondruch
df30dd7b21 Locally enable the RubyGems generator
This will help to generate the right Requires/Provides from shipped
.gemspec files without the need to list them explicitly.
2023-12-07 15:56:08 +01:00
Vít Ondruch
82714b2417 Correct "bundled" provides for rubygems 2023-12-07 15:56:08 +01:00
Vít Ondruch
18aaf36eef Upgrade to Ruby 3.3.0 (e029375a7d). 2023-12-07 15:56:08 +01:00
Vít Ondruch
0f26c40790 Use gem_ macros in %install section. 2023-12-07 15:56:08 +01:00
Vít Ondruch
05d11db9ba Rake .github directory was removed upstream.
https://github.com/ruby/rake/pull/333
2023-12-07 15:56:08 +01:00
Vít Ondruch
591d47c982 Use gem_ macros in %files section. 2023-12-07 15:56:08 +01:00
Vít Ondruch
6d1f5b2304 Upgrade to Ruby 3.3.0 (904413997f). 2023-12-07 15:56:08 +01:00
Vít Ondruch
b2c40aa9c2 Use gem_spec macro for default gem .gemspec files
And extract all the gem versions into global version variables. This
allow to make the updste script a bit simpler by dropping multiple ways
of representing gem versions.
2023-12-07 15:56:08 +01:00
Vít Ondruch
e1ba2fcc13 Move "erb" executable / man page into ruby-default-gems package
The executable cannot work without the "gem" bits shipped in
ruby-default-gems package.
2023-12-07 15:56:08 +01:00
Vít Ondruch
a9976c0e69 Move the racc_version to bundle gems section. 2023-12-07 15:56:08 +01:00
Vít Ondruch
25ea926d53 Upgrade to Ruby 3.3.0 (c8c35ded74). 2023-12-07 15:56:08 +01:00
Vít Ondruch
7653e37fc1 Upgrade to Ruby 3.3.0 (3c11cdbcfe). 2023-12-07 15:56:08 +01:00
Vít Ondruch
fec49feda7 Upgrade to Ruby 3.3.0-preview2 (e50fcca9a7). 2023-12-07 15:56:08 +01:00
Vít Ondruch
4c825f6bc8 Upgrade to Ruby 3.3.0 (7c8932365f). 2023-12-07 15:56:08 +01:00
Vít Ondruch
f195b6a3c8 Drop attempt to disable JIT test on i686
The was renamed test_jit.rb → test_mjit.rb in Ruby 3.2:

ead96e7b44

Therefore this is alread no-op and we can just drop it.
2023-12-07 13:22:00 +01:00
Jarek Prokop
321ed23c22 Update ticket reference for disabled tests on x86.
Tests fail with a LANG=C environment. A new investigation into the
failing tests on x86 revealed exact commits which introduced the issue
and the commits that fixed the situation. Fix is not yet present in Ruby
3.2, therefore the conditional disabling the tests was left in.
A new re-reported ticket replaced the old one. The new upstream ticket
includes better detailed description of the environment causing the
issue.

The tests pass in Rawhide mock (F40), as the LANG there is C.UTF-8
that does not suffer from the issue.

Upstream ticket: https://bugs.ruby-lang.org/issues/20045
2023-12-07 12:01:03 +01:00
Jarek Prokop
ba498ce48c armv7hl is no longer one of arches we build on.
No point in keeping dead conditional around.
2023-11-29 20:11:24 +01:00
Jun Aruga
8d5b538747 ssl: use ffdhe2048 from RFC 7919 as the default DH group parameter
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:
<59242d8ce8>.
2023-11-09 17:58:10 +01:00
Vít Ondruch
d432c95c15 Remove spaces from changelog NVR. 2023-11-03 12:24:38 +01:00
Jarek Prokop
393e74f1e0 Fix bundled provide net-http-persistent typo. 2023-11-02 16:06:07 +01:00
Jun Aruga
1f35109c5e Fix OpenSSL.fips_mode and OpenSSL::PKey.read in OpenSSL 3 FIPS. 2023-09-22 12:54:53 +02:00
Fedora Release Engineering
64dc6dd3e4 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 17:14:32 +00:00
Jarek Prokop
814eaf5324 Re-enable FFI related tests.
libffi since NVR libffi-3.4.4-3.fc39 builds with static trampolines
enabled. This fixes the failures which were the reason for disabling
the tests.

Since it recently landed in Rawhide, we can re-enable the tests.
2023-07-12 10:30:51 +02:00