Commit Graph

627 Commits

Author SHA1 Message Date
Jarek Prokop
2e5dbe5e29 Fix rubygem-irb upgrade not working due to directory -> symlink conversion.
Upgrading from 2.5 or 2.7 results in an error due to directory symlink
conversion.

Resolves: rhbz#2010949
2021-10-11 12:36:10 +02:00
Jarek Prokop
56f548c2c8 Pass ldflags to gem install
The commit is a cherry-pick from Fedora rawhide 6b2ff68f33 .
The same comment on the changelog 3.0.1-138 was wrong.
The purpose is to synchronize with Fedora rawhide 63065e7db7 .

Related: rhbz#1938942
2021-07-22 14:18:05 +02:00
Jarek Prokop
e036ecc271 Upgrade to Ruby 3.0.2.
- Fix command injection vulnerability in RDoc. (CVE-2021-31799)
- Fix FTP PASV command response can cause Net::FTP to connect to arbitrary host.
  (CVE-2021-31810)
- Fix StartTLS stripping vulnerability in Net::IMAP (CVE-2021-32066)
- Fix dependencies of gems with explicit source installed from a
  different source. (CVE-2020-36327)

Related: rhbz#1938942
2021-07-21 18:10:53 +02:00
Jarek Prokop
fc890b7d73 Revert "Skip the ssl tests on Brew s390x build environment."
This reverts commit 9599325b90.
This issue was fixed on RHELBLD-6305.

Bump release for rebuild.

Related: rhbz#1938942
2021-06-28 16:27:28 +02:00
Jarek Prokop
9599325b90 Skip the ssl tests on Brew s390x build environment.
Fix FTBFS due to SSL tests on s390x. The s390x builders in Brew have
unexpected configuration of DNS, which make the tests fail.

Related: rhbz#1938942
2021-06-24 21:03:27 +02:00
Jarek Prokop
d92f6f9d59 Fix FTBFS due to an incompatible load directive.
The FTBFS has started to happen with rpm-4.16.90-0.git15395.2.fc35.

The `%{?load:...}` is undocumented, and it was removed.

https://github.com/rpm-software-management/rpm/issues/1669

Related: rhbz#1938942
2021-06-24 21:03:27 +02:00
Jarek Prokop
8475ee2d69 Upgrade to Ruby 3.0.1.
Rebased from Fedora rawhide, commit: 6b2ff68.

* Except "Fix FTBFS due to an incompatible load" as that is included as
  a separate commit to highlight the change.
* Add missing `rubygem-` prefix for bundled provide of 'connection_pool'.
* Pass ldflags to gem install via CONFIGURE_ARGS
* Remove IRB dependency from rubygem-rdoc.
* Fix flaky excon test suite.
* Properly support DWARF5 debug information.
  Related: rhbz#1920533
* Bundle OpenSSL into StdLib.
* Fix SEGFAULT in rubygem-shoulda-matchers test suite.
* Provide `gem.build_complete` file for binary gems.
* Re-enable test suite.
* ruby-default-gems have to depend on rubygem(io-console) due to
  reline.
* Fix SEGFAULT preventing rubygem-unicode to build on armv7hl.
* Add support for reworked RubyGems plugins.
* Use proper path for plugin wrappers.
* Extract RSS and REXML into separate subpackages, because they were
   moved from default gems to bundled gems.
* Drop Net::Telnet and XMLRPC packages, because they were dropped from
  Ruby.

Resolves: rhbz#1938942
2021-06-24 21:02:48 +02:00
Vít Ondruch
6261d5976c Resolv::DNS: timeouts
Resolv::DNS: timeouts if multiple IPv6 name servers are given and address
contains leading zero

Resolves: rhbz#1944227
2021-04-21 10:55:36 +02:00
Pavel Valena
0ac9ccaebf Upgrade to Ruby 2.7.3.
Resolves: rhbz#1947938
2021-04-21 10:55:36 +02:00
Vít Ondruch
d064a7f405 Enable arm64 optimizations.
The same already exists for power/x86.

Resolves: rhbz#1884728
Related: rhbz#1947938
2021-04-21 10:55:36 +02:00
Vít Ondruch
f80c0b1d07 Upgrade to Ruby 2.7.2.
Related: rhbz#1947938
2021-04-21 10:55:36 +02:00
Jun Aruga
1aa8223a04 Give an option to increase the timeout in tests.
Because setting the option makes some tests stable that are currently randomly
failing with error on especially s390x and aarch64.

We observed the failing tests are calling `assert_in_out_err` method
calling `invoke_ruby` calling method.

Then when the `th_stdout.join(timeout)` or `th_stderr.join(timeout)` returns
`nil` as thread timeout in `invoke_ruby` method, it causes the error. [1][2]

The `test_timeout_scale` macro is to set the environment variable
`RUBY_TEST_TIMEOUT_SCALE` to increase the timeout in `apply_timeout_scale`
method as <new timeout> = <timeout> * <timeout scale>.

As an example, `TestBugReporter#test_bug_reporter_add` test's
maximum thread timeout was 56+ seconds for the default timeout 10 seconds. [3]
In this case setting `RUBY_TEST_TIMEOUT_SCALE=6` (6 * 10 = 60) is good enough
for 56+ seconds.

[1] https://github.com/ruby/ruby/blob/v2_7_1/tool/lib/envutil.rb#L149
[2] https://bugs.ruby-lang.org/issues/16492#note-8
[3] https://bugs.ruby-lang.org/issues/16492#note-4

Related: rhbz#1947938
2021-04-21 10:55:24 +02:00
Vít Ondruch
8a858ea256 Avoid possible timeout errors in TestBugReporter#test_bug_reporter_add.
Related: rhbz#1947938
2021-04-21 10:55:15 +02:00
Jun Aruga
3ca326ee95 Add ruby-default-gems dependency on irb.
Related: rhbz#1842989
2020-06-26 17:33:32 +02:00
Vít Ondruch
e7b80e8e7c Fix require behavior allowing to load libraries multiple times.
Resolves: rhbz#1842989
2020-06-26 17:33:15 +02:00
Jun Aruga
9b65bf6795 Ship racc binary.
Resolves: rhbz#1851388
2020-06-26 14:30:49 +02:00
Jun Aruga
d8e2548d44 Skip some tests.
* Skip unstable tests on s390x.
* Skip JIT tests in RHEL 8.

Related: rhbz#1817135
2020-05-30 06:50:14 +02:00
Jun Aruga
7916a42d9d Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648)
Resolves: rhbz#1817135
2020-05-30 06:49:49 +02:00
Vít Ondruch
6299077765 Properly support %prerelease in %gemspec_ macros.
Related: rhbz#1672575
2019-07-11 11:51:42 +02:00
Jun Aruga
c29a112f31 Use ffi_closure_alloc to avoid segmentation fault by libffi on aarch64.
Resolves: rhbz#1727832
2019-07-10 20:08:20 +02:00
Pavel Valena
e3b4b9752e IO.select on all platforms to wait for input
with recvfrom_nonblock and accept_nonblock

Resolves: rhbz#1719743
2019-07-04 12:52:51 +02:00
Jun Aruga
86bf30d871 Update to Ruby 2.6.3 by merging Fedora master branch (commit: 1cc2a49)
Resolves: rhbz#1672575
2019-06-13 16:56:02 +02:00
Arjen Heidinga
b5b3a8bc0d Add zlib-devel as BuildRequire
This is needed to compile zlib support. I think it is by accident available in the original buildroot, but not in mine.
I think it is better to explicitly name it.

Related: rhbz#1688758
2019-05-09 18:41:24 +02:00
Vít Ondruch
0eb5d3b889 Fix CovScan issues.
Resolves: rhbz#1628592
2019-04-23 13:23:44 +02:00
Vít Ondruch
214a591366 Don't ship .stp files when SystemTap support is disabled.
Related: rhbz#1657915
2019-04-18 07:43:40 +02:00
Vít Ondruch
2cf4920fa3 Update to Ruby 2.5.5.
* Remove Patch25: ruby-2.6.0-Update-for-tzdata-2018f.patch; subsumed
* Remove Patch11: ruby-2.6.0-Try-to-update-cert.patch; subsumed
* Remove Patch19: ruby-2.6.0-net-http-net-ftp-fix-session-resumption-with
    -TLS-1.3.patch; subsumed

Resolves: rhbz#1688758
2019-04-18 07:39:17 +02:00
Jun Aruga
21af9f04d5 Refresh expired certificates to fix FTBFS.
Related: rhbz#1659807
2019-01-11 11:27:04 +01:00
Vít Ondruch
1637652b12 Fix Tokyo TZ tests.
Resolves: rhbz#1659807
2018-12-17 12:30:05 +01:00
Jun Aruga
d488a44d58 Update to Ruby 2.5.3.
Resolves: rhbz#1643092
2018-11-08 16:07:37 +01:00
Vít Ondruch
1ead6ac8f8 Properly harden package using -fstack-protector-strong.
Resolves: rhbz#1624168
2018-09-03 14:20:10 +02:00
Vít Ondruch
cd4ba485c1 Additional OpenSSL 1.1.1 fixes.
Related: rhbz#1616213
2018-08-31 12:21:55 +02:00
Vít Ondruch
ec37cfcfae Cleanly apply patches.
Related: rhbz#1616213
2018-08-31 12:17:34 +02:00
Jun Aruga
a56754b350 Fix generated rdoc template issues.
Resolves: rhbz#1612026
2018-08-31 12:17:12 +02:00
Vít Ondruch
2e08562f7c Disable strong crypto policies to make test suite pass.
Related: rhbz#1616213
2018-08-16 13:07:26 +02:00
Vít Ondruch
4017f27397 Fix TLS 1.3 issues.
Related: rhbz#1616213
2018-08-16 13:06:00 +02:00
Troy Dawson
b894aec1aa Related: bug#1614611 2018-08-11 23:44:57 +02:00
Troy Dawson
83d5f1fd45 Related: bug#1614611 2018-08-11 23:09:35 +02:00
Troy Dawson
0cd2e241e5 Related: bug#1614611 2018-08-11 22:15:13 +02:00
Jun Aruga
72eb3f0a4e Merge remote-tracking branch 'fedora/master' into stream-ruby-2.5 2018-07-31 16:13:52 +02:00
Florian Weimer
ab0834da77 Rebuild with fixed binutils 2018-07-31 11:16:50 +02:00
Igor Gnatenko
9fef07981c
Rebuild for new binutils
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-27 14:55:22 +02:00
Vít Ondruch
7c494340f9 Disable some test failing with OpenSSL 1.1.1. 2018-07-26 18:09:59 +02:00
Vít Ondruch
ae55d5722d Avoid need of C++ compiler to pass the test suite. 2018-07-26 13:50:39 +02:00
Fedora Release Engineering
9f569993f0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 03:48:17 +00:00
Jun Aruga
f3170a7c65 Merge branch 'rhel-8.0' into stream-ruby-2.5
- Add macros to edit files lists in .gemspec
- Make %%gemspec_{add,remove}_dep modify .gemspec provided by %%setup macro.
- Don't force libraries used to build Ruby to its dependencies.
- Re-enable GMP dependency.
2018-06-25 15:34:37 +02:00
Pavel Valena
969334a6cf Synchronize fedora/f28 branch forcely.
- Update to Ruby 2.5.1.
- Conflict requirement needs to generate dependency.
- Revert "Use --with-setjmp-type=setjmp on aarch64 to work around gcc issue (#1545239)"
- Merge a difference between rawhide and f28.
2018-06-06 11:03:34 +02:00
Vít Ondruch
1b05d4b674 Update to the latest Fedora Rawhide version.
This introduces %gemspec_{add,remove}_file macros and updates the other macros
to be compatible with the latest Fedora packaging guidelines.
2018-05-23 16:25:22 +02:00
Pavel Valena
8ef3cc0ed4 Add macros to edit files lists in .gemspec
%gemspec_add_file and %gemspec_remove_file.
2018-05-17 13:10:00 +02:00
Troy Dawson
f80d9b9b70 Fedora 28 Mass Merge into rhel-8.0 - fed_hash: 51449f1f93 2018-05-04 05:57:55 +00:00
Vít Ondruch
561c76845a Fix typos in macro description. 2018-05-03 15:16:00 +02:00