From 97fb1887ad10000c067168176c504274e29e4430 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Mon, 20 Jan 2025 21:46:10 +0000 Subject: [PATCH] gnu: git: Update to 2.48.1. [security fixes] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the CVE-2024-50349 and CVE-2024-52006. * gnu/packages/version-control.scm (git-minimal): Update to 2.48.1. [#:phases]: Purge purged tests in meson.build. (git)[#:phases]: Update to also generate asciidoc.conf. : Update hash. Change-Id: I6616e95822ded252a9bec1312702016985cb9de7 Signed-off-by: Ludovic Courtès --- gnu/packages/version-control.scm | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 0990689a9291e37e92547a3714f62f623d4d3bed..636509d6c563fe7704fe18cb43c9dc31215ea7dd 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013 Nikita Karetnikov ;;; Copyright © 2013 Cyril Roelandt -;;; Copyright © 2013-2022, 2024 Ludovic Courtès +;;; Copyright © 2013-2022, 2024-2025 Ludovic Courtès ;;; Copyright © 2013, 2014 Andreas Enge ;;; Copyright © 2015, 2016 Mathieu Lirzin ;;; Copyright © 2014, 2015, 2016 Mark H Weaver @@ -265,14 +265,14 @@ Python 3.3 and later, rather than on Python 2.") (define-public git-minimal (package (name "git-minimal") - (version "2.47.1") + (version "2.48.1") (source (origin (method url-fetch) (uri (string-append "mirror://kernel.org/software/scm/git/git-" version ".tar.xz")) (sha256 (base32 - "046kdr5dhg31hjcg6wpfqnwwbaqdjyax7n8wx5s26fdf4fxzkn7k")))) + "1bc29w1cd1akbnpfjc7sl5ms7cc8vy7xjl1cbplm3sy1bmgm8p8w")))) (build-system gnu-build-system) (arguments (list @@ -434,7 +434,24 @@ Python 3.3 and later, rather than on Python 2.") (for-each delete-file '("t/t9128-git-svn-cmd-branch.sh" "t/t9167-git-svn-cmd-branch-subproject.sh" - "t/t9141-git-svn-multiple-branches.sh"))))) + "t/t9141-git-svn-multiple-branches.sh")) + + #$@(if (version>=? (package-version this-package) + "2.48.0") + ;; Purge the purged tests in meson.build + #~((substitute + "t/meson.build" + (list (cons "^(.+')(t[^']+[.]sh)('.*)$" + (lambda (line matches) + (let* ((match-offset (vector-ref (car matches) 3)) + (test-file (string-append "t/" + (substring line + (car match-offset) + (cdr match-offset))))) + (if (file-exists? test-file) + line + ""))))))) + #~())))) (add-after 'install 'install-shell-completion (lambda _ (let ((bash (string-append #$output "/etc/bash_completion.d")) @@ -566,6 +583,7 @@ everything from small to very large projects with speed and efficiency.") (("/usr/bin/python") (which "python3"))))) (add-after 'build 'build-subtree (lambda* (#:key native-inputs inputs #:allow-other-keys) + (invoke "make" "-C" "Documentation" "asciidoc.conf") (with-directory-excursion "contrib/subtree" (invoke "make") (invoke "make" "install") @@ -721,7 +739,7 @@ everything from small to very large projects with speed and efficiency.") ".tar.xz")) (sha256 (base32 - "04zfxwdhja82mm24isk2jxhp30q6l3nnnzv6gdrc0mmhi5d01hpz")))))))))))) + "11k871fz119f6hbzvfg64hr7vdbaqd8x2brg5mhbyvadz9xdw3jc")))))))))))) (native-inputs (modify-inputs (package-native-inputs git-minimal) ;; For subtree documentation.