Commit Graph

604 Commits

Author SHA1 Message Date
Vít Ondruch
fcc584306b Fix SEGFAULT preventing rubygem-unicode to build on armv7hl. 2021-01-08 15:38:01 +01:00
Vít Ondruch
15d70f8b4a Properly own RubyGems plugin directory.
RubyGems 3.2.0 rewored their plugins system for improvement performance
[[1]]. Each RubyGems plugins has now generated loader stub during
installation. This directory needs to have proper ownership.

[1]: https://github.com/rubygems/rubygems/pull/3108
2021-01-06 14:26:09 +01:00
Vít Ondruch
f11a9b4fe3 Upgrade to Ruby 3.0.0.
* 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.

The detailed changelog leading to this release is preserved in
private-ruby-3.0 branch.
2021-01-04 16:42:55 +01:00
Pavel Valena
2a352348bd 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 02:53:30 +01:00
Vít Ondruch
986dc48123 Add explicit BR: make. 2020-11-25 11:01:43 +01:00
Vít Ondruch
946f8b8693 Enable arm64 optimizations.
The same already exists for power/x86.

Resolves: rhbz#1884728
2020-10-13 17:03:50 +02:00
Vít Ondruch
8b746d13cf Upgrade to Ruby 2.7.2. 2020-10-13 16:22:15 +02:00
Jun Aruga
78c9d9e324 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-08-05 14:23:50 +02:00
Fedora Release Engineering
d471fb8f62 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 06:02:07 +00:00
Vít Ondruch
4979be53ac Avoid possible timeout errors in TestBugReporter#test_bug_reporter_add. 2020-07-27 17:16:51 +02:00
Vít Ondruch
d461276d48 Disable LTO, which appear to cause issues with SIGSEV handler.
5baaf4a99c
2020-07-27 17:15:32 +02:00
Jun Aruga
064a0517d6 Add ruby-default-gems dependency on irb.
Resolves: rhbz#1850541
2020-06-25 11:25:42 +02:00
Vít Ondruch
bc5cb6094e Fix require behavior allowing to load libraries multiple times.
Resolves: rhbz#1835836
2020-06-24 14:43:04 +02:00
Jun Aruga
0963ae5102 Fix FTBFS due to libyaml 0.2.5.
Resolves: rhbz#1845530
2020-06-16 14:31:54 +02:00
Vít Ondruch
29816481d1 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:52:30 +02:00
Vít Ondruch
26bc2eb795 Fix changelog identation. 2020-04-16 10:35:30 +02:00
Vít Ondruch
102ff85d98 Prevent issues with openssl loading when RubyGems are disabled. 2020-04-15 18:48:14 +02:00
Vít Ondruch
50345c3ee4 Hardcode obsolete version for rubygem-racc. 2020-04-15 18:08:21 +02:00
Vít Ondruch
fb50c77241 Hardcode obsolete version for rubygem-did_you_mean. 2020-04-15 18:07:11 +02:00
Vít Ondruch
ca69f778a9 Bundle did_you_mean into StdLib.
Resolves: rhbz#1817178
2020-04-08 18:26:49 +02:00
Vít Ondruch
838cca0381 Move Racc .gemspec to better place. 2020-04-08 18:14:52 +02:00
Vít Ondruch
baf046a6a4 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-02 20:37:38 +02:00
Vít Ondruch
c63e907e87 Add ruby-default-gems subpackage shipping all extra default gem content. 2020-04-02 20:37:32 +02:00
Vít Ondruch
e5cef5e271 Be more strict about StdLib content. 2020-04-02 11:44:07 +02:00
Vít Ondruch
759d6796c6 Properly own BigDecimal files. 2020-04-02 11:44:07 +02:00
Vít Ondruch
a9b3ba531f Shuffle bits of .spec file around.
Reorganize subpackages to keep default and bundled gems together.
2020-04-02 11:44:03 +02:00
Vít Ondruch
f2d727806b Upgrade to Ruby 2.7.1. 2020-04-01 21:06:53 +02:00
Vít Ondruch
79683d7d62 Fix FTBFS due to glibc 2.31.9000 implementing lchmod(2). 2020-04-01 19:08:27 +02: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
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
Vít Ondruch
f4c0ae4dea Upgrade to Ruby 2.6.2. 2019-03-14 17:53:29 +01:00
Vít Ondruch
392287d18b Fix ".include =" support in openssl.cnf.
Because of rhbz#1668916, OpenSSL now supports = character in
openssl.cnf.
2019-03-05 10:39:40 +01:00
Igor Gnatenko
a889754fa2 Rebuild for readline 8.0 2019-02-17 09:30:52 +01:00
Vít Ondruch
f3953123c0 Don't ship .stp files when SystemTap support is disabled. 2019-02-07 15:16:51 +01:00
Vít Ondruch
17f23f30d6 Upgrade to Ruby 2.6.1. 2019-01-31 12:42:56 +01:00
Igor Gnatenko
bc094d8811 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:45 +01:00
Vít Ondruch
b610699f35 Upstream fix adding -C flag instead of changing directory for gem build. 2019-01-24 17:18:59 +01:00
Vít Ondruch
1e60df6dc1 Loosen RDoc dependency. 2019-01-24 15:15:00 +01:00
Vít Ondruch
d66ece5f5d Properly generate "ruby(rubygems)" versioned dependencies. 2019-01-24 10:38:43 +01:00
Vít Ondruch
0c8cdc456b Upgrade to Ruby 2.6.0. 2019-01-17 08:31:01 +01:00
Björn Esser
bb26a282aa
Rebuilt for libcrypt.so.2 (#1666033) 2019-01-14 18:53:16 +01:00
Jun Aruga
2506a2faa2 Refresh expired certificates to fix FTBFS. 2019-01-11 11:15:39 +01:00
Vít Ondruch
c80ecd9db9 Fix Tokyo TZ tests. 2018-11-13 10:43:47 +01:00
Jun Aruga
5dcc35c709 Use official URL for Source0. 2018-10-26 19:15:46 +02:00
Pavel Valena
7fa10a167d Fix typo. 2018-10-23 13:12:35 +02:00
Jun Aruga
32488add5b Update to Ruby 2.5.3. 2018-10-22 12:12:21 +02:00
Vít Ondruch
7c66ce151d Properly harden package using -fstack-protector-strong. 2018-09-03 14:11:55 +02:00
Vít Ondruch
d5e84a533c Add --with-cxxflags configuration for %gem_install macro.
https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.org/message/3LTI2MQVBFNNLGLLA5JTYPNAFP7SQGAI/
2018-08-30 14:29:48 +02:00
Vít Ondruch
e91d1127db Additional OpenSSL 1.1.1 fixes. 2018-08-30 13:07:30 +02:00
Jun Aruga
ec97a0708b Fix generated rdoc template issues. 2018-08-30 13:06:11 +02:00
Vít Ondruch
936827a34b Properly execute entire test suite. 2018-08-13 16:10:45 +02:00
Vít Ondruch
91a9a89fab Fix TLS 1.3 issues. 2018-08-13 15:17:14 +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
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
Vít Ondruch
bee5851fb0 Make %gemspec_{add,remove}_dep modify .gemspec provided by %setup macro.
The macros need to be udpated, since RPM 4.14+ can expand .gem files and
also also provide %{gem_name}.gemspec file used to rebuild the gem.
However, the .gemspec file is not in current directory, but directly in
%{_builddir}.
2018-05-03 14:53:49 +02:00
Vít Ondruch
b0274e84e7 Remove comment which does not apply anymore.
rhbz#1565960
2018-04-11 17:55:12 +02:00
Vít Ondruch
ecbc53b331 Revert "Use --with-setjmp-type=setjmp on aarch64 to work around gcc issue (#1545239)"
This reverts commit a3207ebb16.

This should not be needed, since changes in GCC were reverted.
2018-04-10 09:55:29 +02:00
Vít Ondruch
f571c557e2 Conflict requirement needs to generate dependency.
If there is only conflict requirement, this still menas that there is
dependency on that package and appropriate requirement must be generated
(rhbz#1561487)
2018-04-10 09:53:37 +02:00
Pavel Valena
793a1c3612 Update to Ruby 2.5.1. 2018-04-10 09:51:17 +02:00
Vít Ondruch
39d1e08dc7 Disable additional SIGSEV handler test. 2018-03-06 10:47:15 +01:00
Vít Ondruch
8326796861 Re-enable GMP dependency. 2018-03-05 15:47:19 +01:00
Vít Ondruch
ae56326d8d Don't force libraries used to build Ruby to its dependencies.
This, for example, allows to build Ruby against GMP, but doesn't force
libraries using Ruby to depend on GMP as well.
2018-03-05 15:18:50 +01:00
Vít Ondruch
d452ecad11 Disable SIGSEV handler tests.
SIGSEV does not provide correct output on AArch64.

https://bugs.ruby-lang.org/issues/13758
2018-03-01 16:50:10 +01:00
Vít Ondruch
3733c3cf5d Revert "Add GMP dependency."
This causes issues with building other ruby packages, since it would
force every package to depend on gmp-devel. Reverting this until this
gets resolved upstream:

https://bugs.ruby-lang.org/issues/14422#note-6

This reverts commit 5624addc78.
2018-03-01 12:17:04 +01:00
Vít Ondruch
7395ebdf85 Save some release number. 2018-02-28 16:32:50 +01:00
Florian Weimer
a3207ebb16 Use --with-setjmp-type=setjmp on aarch64 to work around gcc issue (#1545239) 2018-02-24 19:11:02 +01:00
Florian Weimer
43a2b51955 Rebuild with new LDFLAGS from redhat-rpm-config 2018-02-24 18:59:36 +01:00
Pavel Valena
e3ea6478d9 Fix: Multiple vulnerabilities in RubyGems
https://bugzilla.redhat.com/show_bug.cgi?id=1547431
https://www.ruby-lang.org/en/news/2018/02/17/multiple-vulnerabilities-in-rubygems/

* rubygems-2.5.0-multiple-vulnerabilities.patch
2018-02-23 16:14:22 +01:00
Pavel Valena
6ff9776922 Add gcc to BuildRequires
https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequire s_and_Requies
2018-02-21 16:41:27 +01:00
Jun Aruga
d074784f33 Fix invalid licenses. 2018-02-19 15:24:32 +01:00
Vít Ondruch
faaad7b7c5 Fix thread_safe test suite segfaults. 2018-02-13 15:04:28 +01:00
Vít Ondruch
2134f5703e Disable Tokyo TZ tests.
They are broken by recen tzdata update.
2018-02-13 14:43:58 +01:00
Vít Ondruch
637f46e17d Add conflicts RPM generator.
This leverages RPM Conflicts instead of expanding the version ranges,
which does not work as reliably for this purpose.
2018-02-13 13:50:15 +01:00
Vít Ondruch
b15350c441 Use 'with' operator in RPM dependency generator. 2018-02-13 13:50:15 +01:00
Vít Ondruch
5624addc78 Add GMP dependency.
This improves performance of some mathematical operations.

https://bugs.ruby-lang.org/issues/8796
2018-02-13 13:50:15 +01:00
Vít Ondruch
72c55bdcb2 Drop obsolete ldconfig scriptlets.
https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
2018-02-13 13:50:15 +01:00
Fedora Release Engineering
f49edf212f - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 13:25:27 +00:00
Björn Esser
138a8a192c
Rebuilt for switch to libxcrypt 2018-01-20 23:07:50 +01:00