diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index d8b9c6bfb9a..c4cf0cb01a8 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1273,17 +1273,13 @@ other git-like projects such as @code{libgit2}.") %build-inputs (string-append "/bin/" ,(%current-target-system) "-pkg-config")))) - '()))) + '()) + ;; See https://github.com/libgit2/libgit2/issues/7169 + ,@(if (target-64bit?) + '() + '("-DCMAKE_C_FLAGS=-D_FILE_OFFSET_BITS=64")))) #:phases (modify-phases %standard-phases - ,@(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")))) - '()) ;; Run checks more verbosely, unless we are cross-compiling. (replace 'check (lambda* (#:key (tests? #t) #:allow-other-keys)