The package rpms/ruby.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/ruby.git/commit/?id=b7229da1654b4....
Change:
+%ifarch armv7hl ppc64le
Thanks.
Full change:
============
commit 35f28c9a6800eaf1d557b74e2f60d13e99cd2268
Author: Vít Ondruch <vondruch(a)redhat.com>
Date: Wed Jan 27 14:00:39 2021 +0100
Use proper path for plugin wrappers.
diff --git a/ruby.spec b/ruby.spec
index 012c915..13dd4a3 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -153,6 +153,9 @@ Patch10: ruby-3.0.0-Fixed-dangling-imemo_tmpbuf.patch
#
https://bugs.ruby-lang.org/issues/17536
#
https://github.com/ruby/ruby/pull/4077
Patch11: ruby-3.0.0-Dont-try-to-clear-cache-on-garbage-objects.patch
+# Use proper path for plugin wrappers.
+#
https://github.com/rubygems/rubygems/pull/4317
+Patch12: rubygems-3.2.7-Generate-plugin-wrappers-with-relative-requires.patch
# Avoid possible timeout errors in TestBugReporter#test_bug_reporter_add.
#
https://bugs.ruby-lang.org/issues/16492
Patch19: ruby-2.7.1-Timeout-the-test_bug_reporter_add-witout-raising-err.patch
@@ -603,6 +606,7 @@ rm -rf ext/fiddle/libffi*
%patch9 -p1
%patch10 -p1
%patch11 -p1
+%patch12 -p1
%patch19 -p1
# Provide an example of usage of the tapset:
@@ -1373,6 +1377,7 @@ MSPECOPTS="$MSPECOPTS -P 'raises TypeError if one of the
passed exceptions is no
%changelog
* Mon Jan 25 2021 Vít Ondruch <vondruch(a)redhat.com> - 3.0.0-145
- Bundle OpenSSL into StdLib.
+- Use proper path for plugin wrappers.
* Sat Jan 16 2021 Vít Ondruch <vondruch(a)redhat.com> - 3.0.0-144
- Fix SEGFAULT in rubygem-shoulda-matchers test suite.
diff --git a/rubygems-3.2.7-Generate-plugin-wrappers-with-relative-requires.patch
b/rubygems-3.2.7-Generate-plugin-wrappers-with-relative-requires.patch
new file mode 100644
index 0000000..d58c987
--- /dev/null
+++ b/rubygems-3.2.7-Generate-plugin-wrappers-with-relative-requires.patch
@@ -0,0 +1,47 @@
+From db4157e9aa7b7f720ee06fb866b53ad11879c016 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez(a)riseup.net>
+Date: Mon, 25 Jan 2021 15:40:26 +0100
+Subject: [PATCH] Generate plugin wrappers with relative requires
+
+It shouldn't change behaviour and it fixes broken wrappers generated
+with `--build-root` flag is used.
+---
+ lib/rubygems/installer_uninstaller_utils.rb | 7 ++++++-
+ test/rubygems/test_gem_installer.rb | 2 ++
+ 2 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/lib/rubygems/installer_uninstaller_utils.rb
b/lib/rubygems/installer_uninstaller_utils.rb
+index e81ed4cba38..2c8b7c635e1 100644
+--- a/lib/rubygems/installer_uninstaller_utils.rb
++++ b/lib/rubygems/installer_uninstaller_utils.rb
+@@ -6,11 +6,16 @@
+ module Gem::InstallerUninstallerUtils
+
+ def regenerate_plugins_for(spec, plugins_dir)
++ plugins = spec.plugins
++ return if plugins.empty?
++
++ require 'pathname'
++
+ spec.plugins.each do |plugin|
+ plugin_script_path = File.join plugins_dir,
"#{spec.name}_plugin#{File.extname(plugin)}"
+
+ File.open plugin_script_path, 'wb' do |file|
+- file.puts "require '#{plugin}'"
++ file.puts "require_relative
'#{Pathname.new(plugin).relative_path_from(Pathname.new(plugins_dir))}'"
+ end
+
+ verbose plugin_script_path
+diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb
+index 4ce7e92442a..5652d863316 100644
+--- a/test/rubygems/test_gem_installer.rb
++++ b/test/rubygems/test_gem_installer.rb
+@@ -821,6 +821,8 @@ def test_generate_plugins_with_build_root
+
+ assert !File.exist?(system_path), 'plugin written incorrect written to system
plugins_dir'
+ assert File.exist?(build_root_path), 'plugin not written to build_root'
++
++ refute_includes File.read(build_root_path), build_root
+ end
+
+ def test_keeps_plugins_up_to_date
commit b7229da1654b460c66694251c97cffaf21ecdd70
Author: Vít Ondruch <vondruch(a)redhat.com>
Date: Wed Jan 27 14:02:29 2021 +0100
Disable test which started to fail presumably after move to DWARF5
https://bugzilla.redhat.com/show_bug.cgi?id=1920533
Unfortunately, these used to be problematic already before:
https://bugs.ruby-lang.org/issues/13758
diff --git a/ruby.spec b/ruby.spec
index 468900f..012c915 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -875,6 +875,15 @@ make runruby TESTRUN_SCRIPT="--enable-gems %{SOURCE13}"
DISABLE_TESTS=""
MSPECOPTS=""
+%ifarch armv7hl ppc64le
+# Disable test which started to fail presumably after move to DWARF5:
+#
https://bugzilla.redhat.com/show_bug.cgi?id=1920533
+# Unfortunately, these used to be problematic already before:
+#
https://bugs.ruby-lang.org/issues/13758
+DISABLE_TESTS="$DISABLE_TESTS -n
!/test_segv_\(setproctitle\|test\|loaded_features\)/"
+DISABLE_TESTS="$DISABLE_TESTS -n !/test_bug_reporter_add/"
+%endif
+
# Avoid `hostname' dependency.
%{!?with_hostname:MSPECOPTS="-P 'Socket.gethostname returns the host
name'"}