Skip to content

Commit 97abae4

Browse files
coolobmwiedemann
authored andcommitted
Update perl-Git-Repository to version 1.325 / rev 4 via SR 1039783
https://build.opensuse.org/request/show/1039783 by user coolo + dimstar_suse - Add fix from book/Git-Repository#22 to work around git 2.38.1's new default behaviour (22.patch)
1 parent 1f20494 commit 97abae4

File tree

6 files changed

+47
-3
lines changed

6 files changed

+47
-3
lines changed
46 Bytes
Binary file not shown.

packages/p/perl-Git-Repository/.rev

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,13 @@
2424
<comment></comment>
2525
<requestid>896826</requestid>
2626
</revision>
27+
<revision rev="4" vrev="2">
28+
<srcmd5>92d5c46db1931d844f963babd117680f</srcmd5>
29+
<version>1.325</version>
30+
<time>1670068114</time>
31+
<user>dimstar_suse</user>
32+
<comment>- Add fix from https://github.com/book/Git-Repository/pull/22 to work
33+
around git 2.38.1's new default behaviour (22.patch)</comment>
34+
<requestid>1039783</requestid>
35+
</revision>
2736
</revisionlist>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 4dc8dedb97891f37b9da2220e5740c65685b0906 Mon Sep 17 00:00:00 2001
2+
From: Jan Pazdziora <jpazdziora@redhat.com>
3+
Date: Mon, 31 Oct 2022 17:26:00 +0100
4+
Subject: [PATCH] Workaround change of behaviour in git 2.38.1 for
5+
CVE-2022-39253.
6+
7+
By default, protocol.file.allow now defaults to user, preventing
8+
clones with symlinks.
9+
10+
https://github.blog/2022-10-18-git-security-vulnerabilities-announced/#cve-2022-39253
11+
---
12+
t/21-submodule.t | 1 +
13+
1 file changed, 1 insertion(+)
14+
15+
diff --git a/t/21-submodule.t b/t/21-submodule.t
16+
index 444029c..97374f8 100644
17+
--- a/t/21-submodule.t
18+
+++ b/t/21-submodule.t
19+
@@ -44,6 +44,7 @@ $s->run( checkout => 'master', { quiet => 1 } );
20+
# now test adding a submodule
21+
my $r = test_repository(@init);
22+
$r->run(
23+
+ ( Git::Repository->version_ge('2.38.1') ? ('-c', 'protocol.file.allow=always') : ()),
24+
submodule => add => $s->work_tree => 'sub',
25+
{ env => { GIT_WORK_TREE => undef } }
26+
);

packages/p/perl-Git-Repository/cpanspec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# - source2
77
patches:
88
https://salsa.debian.org/perl-team/modules/packages/libgit-repository-perl/-/raw/c5e0eca06ca27fdaa547634b1e49f4637e7c1ca6/debian/patches/git-2.30.0.patch: -p1 PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Ticket/Attachment/1923740/1029935
9+
https://patch-diff.githubusercontent.com/raw/book/Git-Repository/pull/22.patch: -p1 PATCH-FIX-UPSTREAM https://github.com/book/Git-Repository/pull/22
910
preamble: |-
1011
BuildRequires: git-core
1112
#post_prep: |-

packages/p/perl-Git-Repository/perl-Git-Repository.changes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
-------------------------------------------------------------------
2+
Sat Dec 3 11:00:22 UTC 2022 - Stephan Kulow <coolo@suse.com>
3+
4+
- Add fix from https://github.com/book/Git-Repository/pull/22 to work
5+
around git 2.38.1's new default behaviour (22.patch)
6+
17
-------------------------------------------------------------------
28
Tue Jun 1 03:07:11 UTC 2021 - Tina Müller <timueller+perl@suse.de>
39

packages/p/perl-Git-Repository/perl-Git-Repository.spec

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# spec file for package perl-Git-Repository
33
#
4-
# Copyright (c) 2021 SUSE LLC
4+
# Copyright (c) 2022 SUSE LLC
55
#
66
# All modifications and additions to the file contributed by third parties
77
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,13 +20,15 @@
2020
Name: perl-Git-Repository
2121
Version: 1.325
2222
Release: 0
23-
Summary: Perl interface to Git repositories
2423
License: Artistic-1.0 OR GPL-1.0-or-later
24+
Summary: Perl interface to Git repositories
2525
URL: https://metacpan.org/release/%{cpan_name}
2626
Source0: https://cpan.metacpan.org/authors/id/B/BO/BOOK/%{cpan_name}-%{version}.tar.gz
2727
Source1: cpanspec.yml
28+
# PATCH-FIX-UPSTREAM https://github.com/book/Git-Repository/pull/22
29+
Patch0: https://patch-diff.githubusercontent.com/raw/book/Git-Repository/pull/22.patch
2830
# PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Ticket/Attachment/1923740/1029935
29-
Patch0: https://salsa.debian.org/perl-team/modules/packages/libgit-repository-perl/-/raw/c5e0eca06ca27fdaa547634b1e49f4637e7c1ca6/debian/patches/git-2.30.0.patch
31+
Patch1: https://salsa.debian.org/perl-team/modules/packages/libgit-repository-perl/-/raw/c5e0eca06ca27fdaa547634b1e49f4637e7c1ca6/debian/patches/git-2.30.0.patch
3032
BuildArch: noarch
3133
BuildRequires: perl
3234
BuildRequires: perl-macros

0 commit comments

Comments
 (0)