[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61246] [PATCH v3 3/3] gnu: libgit2: Update to 1.5.1.
From: |
André Batista |
Subject: |
[bug#61246] [PATCH v3 3/3] gnu: libgit2: Update to 1.5.1. |
Date: |
Fri, 17 Feb 2023 16:07:10 -0300 |
Fixes CVE-2023-22742. Follows up on fixes to CVE-2022-24765.
Provides compatibility with git changes to address CVE-2022-29187.
* gnu/packages/version-control.scm (libgit2): Update to 1.5.1.
[source]: Remove snippet to comment out the "10 years ago" test, which
was removed on newer versions.
(libgit2-1.4): New variable. Update to 1.4.5.
(libgit2-1.3): Inherit from 'libgit2-1.4'. Update to 1.3.2.
---
gnu/packages/version-control.scm | 34 ++++++++++++++++++++------------
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index e72c560928..49dc96d454 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -804,7 +804,7 @@ (define-public git-cal
(define-public libgit2
(package
(name "libgit2")
- (version "1.4.3")
+ (version "1.5.1")
(source (origin
;; Since v1.1.1, release artifacts are no longer offered (see:
;;
https://github.com/libgit2/libgit2/discussions/5932#discussioncomment-1682729).
@@ -815,18 +815,11 @@ (define-public libgit2
(file-name (git-file-name name version))
(sha256
(base32
- "02x1a4zrzpzjd0yxnsi8njh5hgihc1iy1v4r0fnl8m4ckcgp6x2s"))
+ "04ypzpicpgq1wh6anwcmjjyh2b854lvjhxq0hq2hbsx7kb14qc1b"))
(modules '((guix build utils)))
(snippet
'(begin
- (delete-file-recursively "deps")
-
- ;; The "refs:revparse::date" test is time-dependent: it
- ;; assumes "HEAD@{10 years ago}" matches a specific commit.
- ;; See <https://github.com/libgit2/libgit2/pull/6299>.
- (substitute* "tests/refs/revparse.c"
- (("test_object.*10 years ago.*" all)
- (string-append "// " all "\n")))))))
+ (delete-file-recursively "deps")))))
(build-system cmake-build-system)
(outputs '("out" "debug"))
(arguments
@@ -868,10 +861,10 @@ (define-public libgit2
;; GPLv2 with linking exception
(license license:gpl2)))
-(define-public libgit2-1.3
+(define-public libgit2-1.4
(package
(inherit libgit2)
- (version "1.3.0")
+ (version "1.4.5")
(source (origin
(inherit (package-source libgit2))
(method git-fetch)
@@ -881,7 +874,22 @@ (define-public libgit2-1.3
(file-name (git-file-name "libgit2" version))
(sha256
(base32
- "0vgpb2175a5dhqiy1iwywwppahgqhi340i8bsvafjpvkw284vazd"))))
+ "0q754ipc6skagszi93lcy6qr09ibavivm2q5i5fhpdblvlnv2p7x"))))))
+
+(define-public libgit2-1.3
+ (package
+ (inherit libgit2-1.4)
+ (version "1.3.2")
+ (source (origin
+ (inherit (package-source libgit2-1.4))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/libgit2/libgit2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name "libgit2" version))
+ (sha256
+ (base32
+ "1dngga8jq419z6ps65wpmh2jihcf70k6r98pb1m1yiwj7qqh9792"))))
(arguments
(substitute-keyword-arguments (package-arguments libgit2)
((#:phases _ '%standard-phases)
--
2.39.1
- [bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1., (continued)
- [bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1., André Batista, 2023/02/17
- [bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1., Tobias Geerinckx-Rice, 2023/02/18
- [bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1., Tobias Geerinckx-Rice, 2023/02/18
- [bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1., Maxim Cournoyer, 2023/02/18
- [bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1., Simon Tournier, 2023/02/20
- [bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1., Simon Tournier, 2023/02/20
- [bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1., André Batista, 2023/02/22
[bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1., Simon Tournier, 2023/02/14
- [bug#61246] [PATCH v3 1/3] gnu: libgit2-1.1: Remove it., André Batista, 2023/02/17
- [bug#61246] [PATCH v3 0/3] gnu: libgit2: Update to 1.5.1., André Batista, 2023/02/17
- [bug#61246] [PATCH v3 3/3] gnu: libgit2: Update to 1.5.1.,
André Batista <=
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., André Batista, 2023/02/17
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/17
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., André Batista, 2023/02/17
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/18
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., André Batista, 2023/02/22
- bug#61246: [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/23
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., André Batista, 2023/02/23
- [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/23
[bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., Maxim Cournoyer, 2023/02/17
[bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories., André Batista, 2023/02/17