Commit graph

618 commits

Author SHA1 Message Date
Vít Ondruch
27f4f20885 Upgrade to Ruby 3.0.0. 2021-01-04 13:28:52 +01:00
Pavel Valena
64579ec58f Upgrade to Ruby 3.0.0 (release). 2020-12-31 02:29:14 +01:00
Vít Ondruch
ceb2428ce1 Upgrade to Ruby 3.0.0 (684649ea05). 2020-12-23 12:44:54 +01:00
Vít Ondruch
3c57984780 Upgrade to Ruby 3.0.0 (93a56a5e98). 2020-12-22 13:10:59 +01:00
Vít Ondruch
3dd03fa528 Upgrade to Ruby 3.0.0 (8680ae9cbd). 2020-12-21 15:01:54 +01:00
Vít Ondruch
2490fcead5 Upgrade to Ruby 3.0.0.rc1 (8680ae9cbd). 2020-12-21 13:33:44 +01:00
Pavel Valena
fd4e513476 Add Recommends: redhat-rpm-config to devel subpackage
as it's needed for building (gem install ...) gems with binary extensions.

This is a workaround to have /usr/lib/rpm/redhat/redhat-hardened-cc1
on the system, as same CFLAGS are reused from when Ruby was built.

Resolves: rhbz#1905222
2020-12-17 09:35:34 +01:00
Vít Ondruch
2140307775 Upgrade to Ruby 3.0.0 (a9a7f4d8b8). 2020-12-16 18:01:07 +01:00
Vít Ondruch
3bad6f1e94 Upgrade to Ruby 3.0.0 (1cfc6e7b7a). 2020-12-04 15:22:27 +01:00
Vít Ondruch
9c44ddbd05 Upgrade to Ruby 3.0.0 (6be9d18a4d). 2020-11-26 12:40:48 +01:00
Vít Ondruch
a05261a45d Properly locate source archive to have timestamp in NVR. 2020-11-26 11:56:22 +01:00
Vít Ondruch
1be26a5e65 Upgrade to Ruby 3.0.0 (7aaf6676c4). 2020-11-25 16:30:56 +01:00
Vít Ondruch
58fed71b97 Add explicit BR: make. 2020-11-25 15:50:07 +01:00
Vít Ondruch
10863d863c Exclude racc-%{racc_version}/bin.
This might conflict similarly to previously excluded `%{_bindir}/racc`
2020-11-24 16:10:30 +01:00
Vít Ondruch
f2e5d52dee Disable single ruby-spec test case.
Otherwise the test suite gets stuck:

~~~
... snip ...

C-API Kernel function rb_rescue2
- only rescues if one of the passed exceptions is raised
~~~
2020-11-20 17:31:48 +01:00
Vít Ondruch
d61dd7f54c Enable several fixed specs. 2020-11-20 16:28:23 +01:00
Vít Ondruch
b37ff13fab Upgrade to Ruby 3.0.0 (1f7b557890). 2020-11-20 14:05:22 +01:00
Vít Ondruch
5a32de95a4 Disable TestGCCompact to prevent segfaults. 2020-11-05 15:16:13 +01:00
Vít Ondruch
320ac78f8a Remove obsolete comment.
This comment should have been remove together with did_you_mean moving
into rubygems-default-gems.
2020-11-05 11:01:21 +01:00
Vít Ondruch
9cc2ff2afe Upgrade to Ruby 3.0.0 (704fb0b815). 2020-11-05 08:53:33 +01:00
Tom Stellard
99ceb0d65c Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
2020-10-13 09:35:52 +02:00
Vít Ondruch
5467bfd5c3 Fix building rubygem- packages.
Fix `Permission denied @ dir_s_mkdir - /usr/share/gems/plugins` issues.

https://github.com/rubygems/rubygems/issues/3971
2020-10-09 13:45:46 +02:00
Vít Ondruch
70f4ffd59c Upgrade to Ruby 3.0.0 (02e17d473a). 2020-10-09 13:02:58 +02:00
Vít Ondruch
999707a8a9 Upgrade to Ruby 3.0.0-preview1 (0096d2b895). 2020-10-07 17:50:26 +02:00
Jun Aruga
8ce900a59e 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
2020-10-07 12:20:30 +02:00
Vít Ondruch
8490a57da6 Avoid possible timeout errors in TestBugReporter#test_bug_reporter_add. 2020-10-07 12:18:51 +02:00
Vít Ondruch
f9a8b7fc74 Disable LTO, which appear to cause issues with SIGSEV handler.
https://src.fedoraproject.org/rpms/redhat-rpm-config/c/5baaf4a99cc77572d3496a7000674098bef7ed68?branch=master
2020-10-07 12:15:02 +02:00
Jun Aruga
2f788eb983 Add ruby-default-gems dependency on irb.
Resolves: rhbz#1850541
2020-10-07 12:13:44 +02:00
Vít Ondruch
b7caba6d26 Fix changelog identation. 2020-10-07 12:01:18 +02:00
Vít Ondruch
7c9a7d257f Relax rubygems-devel dependency on rubygems.
Independent rubygems package used to provide rubygems-devel subpackages,
but this is going to change to ease the independent rubygems package
maitenance and therefore ruby package will become the ultimate source of
rubygems-devel package.
2020-05-15 17:49:43 +02:00
Vít Ondruch
08398ea96f Bundle did_you_mean into StdLib. 2020-04-16 10:48:29 +02:00
Vít Ondruch
153f2c16fe Fix fortifications on armv7hl. 2020-04-16 10:47:47 +02:00
Vít Ondruch
45186be1b9 Upgrade to Ruby 2.8.0 (810d66f3e7). 2020-04-16 10:47:47 +02:00
Vít Ondruch
cdc6dd71a2 Bundle Racc into StdLib.
It is increasingly hard to maintain default gems extracted from StdLib
into gems. If they are overlapped by independent versions, it is even
harder, because the overlapped versions would need to provide symlinks
back to StdLib \[[1]\]. On top of that, the layout differs from
upstream, where default gems are always available.

Because these small nuances can make hard discoverable race conditions
during Ruby application loading and runtime, it will be best to keep the
default gems bundled.

[1]: https://src.fedoraproject.org/rpms/rubygem-racc/pull-request/1
2020-04-16 10:47:44 +02:00
Vít Ondruch
9c0a1cb650 Add ruby-default-gems subpackage shipping all extra default gem content. 2020-03-31 15:33:12 +02:00
Vít Ondruch
33bcda5dc3 Be more strict about StdLib content. 2020-03-31 15:33:12 +02:00
Vít Ondruch
2cb1f7b4f0 Properly own BigDecimal files. 2020-03-31 15:33:12 +02:00
Vít Ondruch
de82ddebfd Shuffle bits of .spec file around.
Reorganize subpackages to keep default and bundled gems together.
2020-03-31 15:33:08 +02:00
Vít Ondruch
1f1a445441 Remove obsolete %{_normalized_cpu} macro.
Last time it was used was eight years ago, removed in 91599c.
2020-02-28 16:19:20 +01:00
Vít Ondruch
03cd41fefd Upgrade to Ruby 2.8.0 (83705c42ce). 2020-02-28 13:12:07 +01:00
Vít Ondruch
e940ed5d70 Use official _systemtap macros instead of custom ones. 2020-02-25 14:58:37 +01:00
Vít Ondruch
09794903d7 Remove forgotten %{net_telnet_version} macro. 2020-02-24 16:28:58 +01:00
Vít Ondruch
b1a7ccbd74 Upgrade to Ruby 2.8.0 (af11efd377).
Extract RSS and REXML into separate subpackages, because they were moved from
default gems to bundled gems.

Obsolete Net::Telnet and XMLRPC packages, because they were dropped from Ruby.
2020-02-24 16:15:27 +01:00
Vít Ondruch
40937c8a7a Install Racc it by default. 2020-01-28 13:50:46 +01:00
Vít Ondruch
40610a988c Provide StdLib links for Racc. 2020-01-28 13:49:34 +01:00
Vít Ondruch
dde320d13d Remove useless rdoc directory from racc. 2020-01-27 18:13:11 +01:00
Vít Ondruch
26cfdf277e The json.gemspec now referes properly to the extensions. 2020-01-27 10:41:26 +01:00
Vít Ondruch
345ce0e5b8 Make rubygem(did_you_mean) hard dependency. 2020-01-16 11:43:08 +01:00
Vít Ondruch
197c02993b Remove useless .github directory from Rake. 2020-01-16 11:43:08 +01:00
Vít Ondruch
bb318e2964 .gitignore is not included in Rake anymore. 2020-01-16 10:36:22 +01:00