Bypass git submodule test failure on Git >= 2.38.1.
This commit is contained in:
parent
2526f5fe72
commit
a90e12d412
2 changed files with 32 additions and 0 deletions
27
ruby-3.2.0-git-2.38.1-fix-rubygems-test.patch
Normal file
27
ruby-3.2.0-git-2.38.1-fix-rubygems-test.patch
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
From dae843f6b7502f921a7e66f39e3714a39d860181 Mon Sep 17 00:00:00 2001
|
||||
From: Hiroshi SHIBATA <hsbt@ruby-lang.org>
|
||||
Date: Wed, 19 Oct 2022 19:40:00 +0900
|
||||
Subject: [PATCH] Bypass git submodule add/update with git config
|
||||
protocol.file.allow=always option.
|
||||
|
||||
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
---
|
||||
test/rubygems/test_gem_source_git.rb | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/test/rubygems/test_gem_source_git.rb b/test/rubygems/test_gem_source_git.rb
|
||||
index 5702da05974b6..c3b324771fa4d 100644
|
||||
--- a/test/rubygems/test_gem_source_git.rb
|
||||
+++ b/test/rubygems/test_gem_source_git.rb
|
||||
@@ -63,6 +63,11 @@ def test_checkout_local_cached
|
||||
end
|
||||
|
||||
def test_checkout_submodules
|
||||
+ # We need to allow to checkout submodules with file:// protocol
|
||||
+ # CVE-2022-39253
|
||||
+ # https://lore.kernel.org/lkml/xmqq4jw1uku5.fsf@gitster.g/
|
||||
+ system(@git, *%W"config --global protocol.file.allow always")
|
||||
+
|
||||
source = Gem::Source::Git.new @name, @repository, 'master', true
|
||||
|
||||
git_gem 'b'
|
||||
|
|
@ -165,6 +165,9 @@ Patch22: rubygems-3.2.33-Fix-loading-operating_system-rb-customizations-too-late
|
|||
# Fix tests with Europe/Amsterdam pre-1970 time on tzdata version 2022b.
|
||||
# https://github.com/ruby/spec/pull/939
|
||||
Patch26: ruby-spec-Fix-tests-on-tzdata-2022b.patch
|
||||
# Bypass git submodule test failure on Git >= 2.38.1.
|
||||
# https://github.com/ruby/ruby/pull/6587
|
||||
Patch29: ruby-3.2.0-git-2.38.1-fix-rubygems-test.patch
|
||||
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
Suggests: rubypick
|
||||
|
|
@ -614,6 +617,7 @@ rm -rf ext/fiddle/libffi*
|
|||
%patch20 -p1
|
||||
%patch22 -p1
|
||||
%patch26 -p1
|
||||
%patch29 -p1
|
||||
|
||||
# Provide an example of usage of the tapset:
|
||||
cp -a %{SOURCE3} .
|
||||
|
|
@ -1372,6 +1376,7 @@ MSPECOPTS=""
|
|||
* Fri Nov 04 2022 Jun Aruga <jaruga@redhat.com> - 3.0.4-154
|
||||
- Fix tests with Europe/Amsterdam pre-1970 time on tzdata version 2022b.
|
||||
Resolves: rhbz#2120354
|
||||
- Bypass git submodule test failure on Git >= 2.38.1.
|
||||
|
||||
* Wed Apr 27 2022 Vít Ondruch <vondruch@redhat.com> - 3.0.4-153
|
||||
- Fix loading of default gems.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue