gnu: libfaketime: Update to 0.9.9.
* gnu/packages/check.scm (libfaketime): Update to 0.9.9. [arguments]: Use CC-FOR-TARGET. Remove obsolete compiler flag and trailing #t's.
This commit is contained in:
parent
70838cf991
commit
09ee1a6116
1 changed files with 6 additions and 14 deletions
|
@ -2654,7 +2654,7 @@ portable to just about any platform.")
|
||||||
(define-public libfaketime
|
(define-public libfaketime
|
||||||
(package
|
(package
|
||||||
(name "libfaketime")
|
(name "libfaketime")
|
||||||
(version "0.9.8")
|
(version "0.9.9")
|
||||||
(home-page "https://github.com/wolfcw/libfaketime")
|
(home-page "https://github.com/wolfcw/libfaketime")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -2663,32 +2663,24 @@ portable to just about any platform.")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1mfdl82ppgbdvy1ny8mb7xii7p0g7awvn4bn36jb8v4r545slmjc"))
|
"1gi1xciqga5hl2xlk7rc3j8wy47ag97pi7ngmdl6ny1d11b2wn1z"))
|
||||||
(file-name (git-file-name name version))))
|
(file-name (git-file-name name version))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (modify-phases %standard-phases
|
`(#:phases (modify-phases %standard-phases
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(setenv "CC" "gcc")
|
(setenv "CC" ,(cc-for-target))
|
||||||
(setenv "PREFIX" out)
|
(setenv "PREFIX" out)
|
||||||
|
|
||||||
;; XXX: Without this flag, the CLOCK_REALTIME test hangs
|
;; XXX: Without this flag, the CLOCK_REALTIME test hangs
|
||||||
;; indefinitely. See README.packagers for more information.
|
;; indefinitely. See README.packagers for more information.
|
||||||
;; Try removing this for future versions of libfaketime.
|
(setenv "FAKETIME_COMPILE_CFLAGS" "-DFORCE_MONOTONIC_FIX"))))
|
||||||
(setenv "FAKETIME_COMPILE_CFLAGS" "-DFORCE_MONOTONIC_FIX")
|
|
||||||
|
|
||||||
#t)))
|
|
||||||
(add-before 'check 'pre-check
|
(add-before 'check 'pre-check
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "test/functests/test_exclude_mono.sh"
|
(substitute* "test/functests/test_exclude_mono.sh"
|
||||||
(("/bin/bash") (which "bash")))
|
(("/bin/bash") (which "bash"))))))
|
||||||
|
|
||||||
;; Do not fail due to use of 'ftime', which was deprecated in
|
|
||||||
;; glibc 2.31. Remove this for later versions of libfaketime.
|
|
||||||
(setenv "FAKETIME_COMPILE_CFLAGS" "-Wno-deprecated-declarations")
|
|
||||||
#t)))
|
|
||||||
#:test-target "test"))
|
#:test-target "test"))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("perl" ,perl))) ;for tests
|
`(("perl" ,perl))) ;for tests
|
||||||
|
|
Reference in a new issue