~ruther/guix-local

2a7f7af87cfe71b0b6591b599b75cdaa51e301d7 — Ludovic Courtès 2 years ago b6604de
gnu: libgit2: Set ‘GITTEST_FLAKY_STAT’ when running tests on GNU/Hurd.

* gnu/packages/version-control.scm (libgit2)[arguments]: Install
‘pre-check’ phase when ‘target-hurd?’ returns true.

Change-Id: I664d4aa2a0ad76a10a47ae7bc3c5912756972b46
1 files changed, 3 insertions(+), 1 deletions(-)

M gnu/packages/version-control.scm
M gnu/packages/version-control.scm => gnu/packages/version-control.scm +3 -1
@@ 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"))))