* [bug#32043] [PATCH] gnu: libgit2: Update to 0.26.4 [fixes CVE-2018-11235].
@ 2018-07-02 22:16 Leo Famulari
2018-07-02 22:50 ` Marius Bakke
0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2018-07-02 22:16 UTC (permalink / raw)
To: 32043
* gnu/packages/version-control.scm (libgit2): Update to 0.26.4.
(source): Adjust patch name.
* gnu/packages/patches/libgit2-0.25.1-mtime-0.patch: Rename to ...
* gnu/packages/patches/julia-libgit2-fix.patch: ... this.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
---
gnu/local.mk | 2 +-
gnu/packages/patches/julia-libgit2-fix.patch | 22 +++++++++++++++++++
.../patches/libgit2-0.25.1-mtime-0.patch | 14 ------------
gnu/packages/version-control.scm | 6 ++---
4 files changed, 26 insertions(+), 18 deletions(-)
create mode 100644 gnu/packages/patches/julia-libgit2-fix.patch
delete mode 100644 gnu/packages/patches/libgit2-0.25.1-mtime-0.patch
diff --git a/gnu/local.mk b/gnu/local.mk
index 10b61ba1b..2a1d2d42d 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -860,7 +860,7 @@ dist_patch_DATA = \
%D%/packages/patches/libevent-2.1-skip-failing-test.patch \
%D%/packages/patches/libexif-CVE-2016-6328.patch \
%D%/packages/patches/libexif-CVE-2017-7544.patch \
- %D%/packages/patches/libgit2-0.25.1-mtime-0.patch \
+ %D%/packages/patches/libgit2-mtime-0.patch \
%D%/packages/patches/libgdata-fix-tests.patch \
%D%/packages/patches/libgdata-glib-duplicate-tests.patch \
%D%/packages/patches/libgnome-encoding.patch \
diff --git a/gnu/packages/patches/julia-libgit2-fix.patch b/gnu/packages/patches/julia-libgit2-fix.patch
new file mode 100644
index 000000000..599e01f4b
--- /dev/null
+++ b/gnu/packages/patches/julia-libgit2-fix.patch
@@ -0,0 +1,22 @@
+commit 782460f9bab4af35097c13c4dbab61cb263490b9
+Author: Milan Bouchet-Valat <nalimilan@club.fr>
+Date: Tue Jul 11 10:02:32 2017 +0200
+
+ Fix libgit2 test failure with system libgit2 and OpenSSL (#22722)
+
+ The first letter of the error message is in lowercase in some systems,
+ notably Fedora Rawhide with libgit2 0.26 and OpenSSL 1.1.0f.
+
+diff --git a/test/libgit2.jl b/test/libgit2.jl
+index d7e32d21a9..f5104e9ec7 100644
+--- a/test/libgit2.jl
++++ b/test/libgit2.jl
+@@ -1905,7 +1905,8 @@ mktempdir() do dir
+ deserialize(f)
+ end
+ @test err.code == LibGit2.Error.ECERTIFICATE
+- @test startswith(err.msg, "The SSL certificate is invalid")
++ @test startswith(lowercase(err.msg),
++ lowercase("The SSL certificate is invalid"))
+
+ rm(errfile)
diff --git a/gnu/packages/patches/libgit2-0.25.1-mtime-0.patch b/gnu/packages/patches/libgit2-0.25.1-mtime-0.patch
deleted file mode 100644
index a6fdb50ff..000000000
--- a/gnu/packages/patches/libgit2-0.25.1-mtime-0.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-The Clar test framework has a bug whereby it skips the parsing phase
-on files with mtime=0.
-
-Reported upstream at <https://github.com/vmg/clar/pull/78>.
-
-diff --git a/tests/generate.py b/tests/generate.py
-index b639c8f..111ca41 100644
---- a/tests/generate.py
-+++ b/tests/generate.py
-@@ -63,3 +63,3 @@ class Module(object):
-
-- self.mtime = 0
-+ self.mtime = None # Guix sets all file mtimes to '0'
- self.enabled = True
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 86d6afef3..2bd59ae95 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -419,7 +419,7 @@ everything from small to very large projects with speed and efficiency.")
(define-public libgit2
(package
(name "libgit2")
- (version "0.26.0")
+ (version "0.26.4")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/libgit2/libgit2/"
@@ -427,8 +427,8 @@ everything from small to very large projects with speed and efficiency.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
- "1b3figbhp5l83vd37vq6j2narrq4yl9pfw6mw0px0dzb1hz3jqka"))
- (patches (search-patches "libgit2-0.25.1-mtime-0.patch"))
+ "15ybzypyggx64ba7i0zxnnbvzh7z34fcrkwk2xj54kmv1dha4br9"))
+ (patches (search-patches "libgit2-mtime-0.patch"))
;; Remove bundled software.
(snippet '(begin
--
2.18.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#32043] [PATCH] gnu: libgit2: Update to 0.26.4 [fixes CVE-2018-11235].
2018-07-02 22:16 [bug#32043] [PATCH] gnu: libgit2: Update to 0.26.4 [fixes CVE-2018-11235] Leo Famulari
@ 2018-07-02 22:50 ` Marius Bakke
2018-07-02 23:48 ` bug#32043: " Leo Famulari
0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2018-07-02 22:50 UTC (permalink / raw)
To: Leo Famulari, 32043
[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]
Leo Famulari <leo@famulari.name> writes:
> * gnu/packages/version-control.scm (libgit2): Update to 0.26.4.
> (source): Adjust patch name.
> * gnu/packages/patches/libgit2-0.25.1-mtime-0.patch: Rename to ...
> * gnu/packages/patches/julia-libgit2-fix.patch: ... this.
> * gnu/local.mk (dist_patch_DATA): Adjust accordingly.
> ---
> gnu/local.mk | 2 +-
> gnu/packages/patches/julia-libgit2-fix.patch | 22 +++++++++++++++++++
> .../patches/libgit2-0.25.1-mtime-0.patch | 14 ------------
> gnu/packages/version-control.scm | 6 ++---
> 4 files changed, 26 insertions(+), 18 deletions(-)
> create mode 100644 gnu/packages/patches/julia-libgit2-fix.patch
> delete mode 100644 gnu/packages/patches/libgit2-0.25.1-mtime-0.patch
'libgit2-mtime-0.patch' seems to have disappeared, yet it's in the
(patches) field of libgit2. I suppose it got unstaged somehow?
'julia-libgit2-fix.patch' seems unrelated, so the commit message should
probably not say renamed. And I would guess it should be applied to the
Julia package. It would be nice with a link to the upstream commit too!
Time for a holiday perhaps? ;-)
LGTM with those adjustments!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#32043: [PATCH] gnu: libgit2: Update to 0.26.4 [fixes CVE-2018-11235].
2018-07-02 22:50 ` Marius Bakke
@ 2018-07-02 23:48 ` Leo Famulari
0 siblings, 0 replies; 3+ messages in thread
From: Leo Famulari @ 2018-07-02 23:48 UTC (permalink / raw)
To: Marius Bakke; +Cc: 32043-done
[-- Attachment #1: Type: text/plain, Size: 627 bytes --]
On Tue, Jul 03, 2018 at 12:50:37AM +0200, Marius Bakke wrote:
> 'libgit2-mtime-0.patch' seems to have disappeared, yet it's in the
> (patches) field of libgit2. I suppose it got unstaged somehow?
>
> 'julia-libgit2-fix.patch' seems unrelated, so the commit message should
> probably not say renamed. And I would guess it should be applied to the
> Julia package. It would be nice with a link to the upstream commit too!
>
> Time for a holiday perhaps? ;-)
Umm... perhaps too much time on holiday :/
As always, thanks for the review!
I pushed a corrected patch as 86163a017b1b16a672a202488f5bbb090e108fd1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-02 23:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-02 22:16 [bug#32043] [PATCH] gnu: libgit2: Update to 0.26.4 [fixes CVE-2018-11235] Leo Famulari
2018-07-02 22:50 ` Marius Bakke
2018-07-02 23:48 ` bug#32043: " Leo Famulari
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).