Commit graph

604 commits

Author SHA1 Message Date
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
Vít Ondruch
8454ff1601 The did_you_mean does not include its temporary directory anymore. 2020-01-16 10:34:34 +01:00
Vít Ondruch
3696d7be37 Upgrade to Ruby 2.7.0.
This is SRPM import. The evolution of this commit is preserved in
private-ruby-2.7 branch.
2020-01-15 16:26:13 +01:00
Slava Kardakov
04b63f48ea Update to Ruby 2.6.5. 2019-10-08 21:47:31 +02:00
Vít Ondruch
fe3a1dd604 Fix checksec 2.0+ compatibility. 2019-09-25 14:00:57 +02:00
Pavel Valena
050a503e16 Update to Ruby 2.6.4. 2019-09-03 11:39:53 +02:00
Fedora Release Engineering
423327ef48 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 18:52:39 +00:00
Vít Ondruch
13a1b3e907 Properly support %prerelease in %gemspec_ macros. 2019-06-25 13:48:27 +02:00
Pavel Valena
1cc2a497d3 Update sources file. 2019-05-14 18:39:59 +02:00
Pavel Valena
ed790644ea Update to Ruby 2.6.3. 2019-05-14 18:00:32 +02:00
Arjen Heidinga
ea106d15b2 Bump version and add changelog 2019-03-29 11:35:19 +01:00
Arjen Heidinga
e38302eeb1 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.
2019-03-29 11:35:14 +01:00
Vít Ondruch
395ef05d65 Exclude irb.rb from ruby-libs.
This file is just part of rubygem-irb.
2019-03-25 15:00:51 +01:00
Vít Ondruch
9d08846cc7 Link IRB files instead of directories.
During update, RPM cannot simply replace directory by link to direcotry,
therefore create the directory structure and link the files there one by
one (rhbz#1691039).
2019-03-21 10:45:11 +01:00
Vít Ondruch
5aa32e278d Link IRB back to StdLib.
This avoids issues running `$ bin/rails console --sandbox`, which
otherwise breaks with error such as:

~~~
$ bin/rails console --sandbox
Traceback (most recent call last):
	12: from bin/rails:4:in `<main>'
	11: from bin/rails:4:in `require'
	10: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/commands.rb:18:in `<top (required)>'
	 9: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command.rb:44:in `invoke'
	 8: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command.rb:70:in `find_by_namespace'
	 7: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:79:in `lookup'
	 6: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:79:in `each'
	 5: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:80:in `block in lookup'
	 4: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:80:in `each'
	 3: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:84:in `block (2 levels) in lookup'
	 2: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:84:in `require'
	 1: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/commands/console/console_command.rb:3:in `<top (required)>'
/builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/commands/console/console_command.rb:3:in `require': cannot load such file -- irb (LoadError)
~~~
2019-03-19 15:21:09 +01:00