gnu: git: Update to 2.40.1 [security fixes].
Fixes CVE-2023-25652 and CVE-2023-29007. * gnu/packages/version-control.scm (git): Update to 2.40.1. (git-minimal)[arguments]: Rewrite to use gexps. In 'remove-unusable-perl-commands' phase, make "git-add--interactive" removal conditional. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
b984ac16dc
commit
92a7817fcb
@ -227,14 +227,14 @@ Python 3.3 and later, rather than on Python 2.")
|
|||||||
(define-public git
|
(define-public git
|
||||||
(package
|
(package
|
||||||
(name "git")
|
(name "git")
|
||||||
(version "2.39.2")
|
(version "2.40.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://kernel.org/software/scm/git/git-"
|
(uri (string-append "mirror://kernel.org/software/scm/git/git-"
|
||||||
version ".tar.xz"))
|
version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1mpjvhyw8mv2q941xny4d0gw3mb6b4bqaqbh73jd8b1v6zqpaps7"))
|
"1li1xwgiwccy88bkshsah2kzl1006jg29jp7n32gvjggiswvi4s8"))
|
||||||
(patches (search-patches "git-header-cmd.patch"))))
|
(patches (search-patches "git-header-cmd.patch"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
@ -255,7 +255,7 @@ Python 3.3 and later, rather than on Python 2.")
|
|||||||
version ".tar.xz"))
|
version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"09cva868qb4705s884dzvbwkm78jlw4q8m6xj7nd7cwxy2i2ff8b"))))
|
"04yy5za8963q6xzrirflvxbi1216jzqj8ssvgd9nkld3ifa9q1gy"))))
|
||||||
;; For subtree documentation.
|
;; For subtree documentation.
|
||||||
("asciidoc" ,asciidoc)
|
("asciidoc" ,asciidoc)
|
||||||
("docbook2x" ,docbook2x)
|
("docbook2x" ,docbook2x)
|
||||||
@ -617,7 +617,7 @@ everything from small to very large projects with speed and efficiency.")
|
|||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments git)
|
(substitute-keyword-arguments (package-arguments git)
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
`(modify-phases ,phases
|
#~(modify-phases #$phases
|
||||||
(replace 'patch-makefiles
|
(replace 'patch-makefiles
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
@ -639,7 +639,15 @@ everything from small to very large projects with speed and efficiency.")
|
|||||||
"/git-core/" file)))
|
"/git-core/" file)))
|
||||||
'("git-svn" "git-cvsimport" "git-archimport"
|
'("git-svn" "git-cvsimport" "git-archimport"
|
||||||
"git-cvsserver" "git-request-pull"
|
"git-cvsserver" "git-request-pull"
|
||||||
"git-add--interactive" "git-cvsexportcommit"
|
|
||||||
|
;; git-add--interactive was removed in Git 2.40 but
|
||||||
|
;; this phase is inherited by older versions.
|
||||||
|
#$@(if (version>=? (package-version this-package)
|
||||||
|
"2.40.1")
|
||||||
|
#~()
|
||||||
|
#~("git-add--interactive"))
|
||||||
|
|
||||||
|
"git-cvsexportcommit"
|
||||||
"git-instaweb" "git-send-email"))
|
"git-instaweb" "git-send-email"))
|
||||||
(delete-file (string-append bin "/git-cvsserver"))
|
(delete-file (string-append bin "/git-cvsserver"))
|
||||||
|
|
||||||
@ -651,10 +659,9 @@ everything from small to very large projects with speed and efficiency.")
|
|||||||
(delete-file-recursively
|
(delete-file-recursively
|
||||||
(string-append out "/share/gitweb")))))))
|
(string-append out "/share/gitweb")))))))
|
||||||
((#:make-flags flags)
|
((#:make-flags flags)
|
||||||
`(delete "USE_LIBPCRE2=yes" ,flags))
|
#~(delete "USE_LIBPCRE2=yes" #$flags))
|
||||||
((#:configure-flags flags)
|
((#:configure-flags flags)
|
||||||
`(list
|
#~(list #$@(if (%current-target-system)
|
||||||
,@(if (%current-target-system)
|
|
||||||
git-cross-configure-flags
|
git-cross-configure-flags
|
||||||
'())))
|
'())))
|
||||||
((#:disallowed-references lst '())
|
((#:disallowed-references lst '())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user