From: "André Batista" <nandre@riseup.net>
To: 61246@debbugs.gnu.org
Cc: "André Batista" <nandre@riseup.net>
Subject: [bug#61246] [PATCH v3 3/3] gnu: libgit2: Update to 1.5.1.
Date: Fri, 17 Feb 2023 16:07:10 -0300 [thread overview]
Message-ID: <20230217190710.1927-1-nandre@riseup.net> (raw)
In-Reply-To: <87a61ogomz.fsf@gmail.com>
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
next prev parent reply other threads:[~2023-02-17 19:08 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-03 3:11 [bug#61246] [PATCH] gnu: libgit2: Update to 1.5.1 André Batista
2023-02-08 15:31 ` Simon Tournier
2023-02-17 19:05 ` [bug#61246] [PATCH v3 0/3] " André Batista
2023-02-17 19:06 ` [bug#61246] [PATCH v3 1/3] gnu: libgit2-1.1: Remove it André Batista
2023-02-17 19:06 ` [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories André Batista
2023-02-17 19:58 ` Maxim Cournoyer
2023-02-17 23:24 ` André Batista
2023-02-18 17:35 ` Maxim Cournoyer
2023-02-22 18:10 ` André Batista
2023-02-23 21:59 ` bug#61246: " Maxim Cournoyer
2023-02-23 12:43 ` [bug#61246] " André Batista
2023-02-23 22:38 ` Maxim Cournoyer
2023-02-17 20:45 ` Maxim Cournoyer
2023-02-17 23:31 ` André Batista
2023-02-18 17:43 ` Maxim Cournoyer
2023-02-17 19:07 ` André Batista [this message]
2023-02-08 15:43 ` [bug#61246] [PATCH v2] gnu: libgit2: Update to 1.5.1 André Batista
2023-02-09 3:25 ` [bug#61246] [PATCH] " Maxim Cournoyer
2023-02-09 12:30 ` zimoun
2023-02-10 17:53 ` André Batista
2023-02-17 19:15 ` André Batista
2023-02-17 19:23 ` André Batista
2023-02-17 19:46 ` Maxim Cournoyer
2023-02-17 23:33 ` André Batista
2023-02-18 18:04 ` Tobias Geerinckx-Rice via Guix-patches via
2023-02-18 18:13 ` Tobias Geerinckx-Rice via Guix-patches via
2023-02-18 20:45 ` Maxim Cournoyer
2023-02-20 10:08 ` Simon Tournier
2023-02-20 10:05 ` Simon Tournier
2023-02-22 18:17 ` André Batista
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230217190710.1927-1-nandre@riseup.net \
--to=nandre@riseup.net \
--cc=61246@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.