summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorYelninei <yelninei@tutamail.com>2025-12-15 11:55:30 +0000
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:31:29 +0100
commitd25166c06db1a28c7dc7fe5746a8922c7559bdb3 (patch)
tree0dc7d3f9d5a0fa67996cd1cf529c6d06f9e81f49 /gnu/packages
parentbea1874d98df58caa80fd62cce43f4e513eba39d (diff)
gnu: libgit2: Fix tests on 32bit systems.
This prevents a discrepancy between git_fs_path_lstat using different size stat structs. See https://github.com/libgit2/libgit2/issues/7169 * gnu/packages/version-control.scm (libgit2-1.9): Compile with -D_FILE_OFFSET_BITS=64 on 32bit system. Change-Id: Iab7df2c930b0fc0cb9030b754ad7b668d49a7034 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #4860 Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/version-control.scm14
1 files changed, 5 insertions, 9 deletions
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)