From 2a7f7af87cfe71b0b6591b599b75cdaa51e301d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 26 Feb 2024 23:20:43 +0100 Subject: [PATCH] =?UTF-8?q?gnu:=20libgit2:=20Set=20=E2=80=98GITTEST=5FFLAK?= =?UTF-8?q?Y=5FSTAT=E2=80=99=20when=20running=20tests=20on=20GNU/Hurd.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/version-control.scm (libgit2)[arguments]: Install ‘pre-check’ phase when ‘target-hurd?’ returns true. Change-Id: I664d4aa2a0ad76a10a47ae7bc3c5912756972b46 --- gnu/packages/version-control.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index af237ab4ee..ba2f1d6fad 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -911,8 +911,10 @@ other git-like projects such as @code{libgit2}.") '())) #:phases (modify-phases %standard-phases - ,@(if (target-arm32?) + ,@(if (or (target-arm32?) (target-hurd?)) ;; Some tests are flaky on armhf. + ;; On GNU/Hurd, the 'diff/workdir' test in libgit2 1.7.1 fails + ;; while comparing st.st_size to zero. '((add-before 'check 'pre-check (lambda _ (setenv "GITTEST_FLAKY_STAT" "true"))))