me
/
guix
Archived
1
0
Fork 0

gnu: libfaketime: Fix failing test.

* gnu/packages/check.scm (libfaketime)[arguments]: Set environment variable
before building.
master
Marius Bakke 2019-12-06 18:22:42 +01:00
parent 0d58d1acaa
commit f09948fd44
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 6 additions and 0 deletions

View File

@ -2298,6 +2298,12 @@ portable to just about any platform.")
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
(setenv "CC" "gcc") (setenv "CC" "gcc")
(setenv "PREFIX" out) (setenv "PREFIX" out)
;; XXX: Without this flag, the CLOCK_REALTIME test hangs
;; indefinitely. See README.packagers for more information.
;; Try removing this for future versions of libfaketime.
(setenv "FAKETIME_COMPILE_CFLAGS" "-DFORCE_MONOTONIC_FIX")
#t))) #t)))
(add-before 'check 'pre-check (add-before 'check 'pre-check
(lambda _ (lambda _