mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
build-system/gnu: Work around 'time-monotonic' bug in Guile 2.2.2.
Fixes <http://bugs.gnu.org/27303>. Reported by Leo Famulari <leo@famulari.name>. * guix/build/gnu-build-system.scm (time-monotonic) [guile-2.2]: Define.
This commit is contained in:
parent
05ffd29d97
commit
2ac6998063
1 changed files with 7 additions and 0 deletions
|
@ -39,6 +39,13 @@ (define-module (guix build gnu-build-system)
|
|||
;;
|
||||
;; Code:
|
||||
|
||||
(cond-expand
|
||||
(guile-2.2
|
||||
;; Guile 2.2.2 has a bug whereby 'time-monotonic' objects have seconds and
|
||||
;; nanoseconds swapped (fixed in Guile commit 886ac3e). Work around it.
|
||||
(define time-monotonic time-tai))
|
||||
(else #t))
|
||||
|
||||
(define* (set-SOURCE-DATE-EPOCH #:rest _)
|
||||
"Set the 'SOURCE_DATE_EPOCH' environment variable. This is used by tools
|
||||
that incorporate timestamps as a way to tell them to use a fixed timestamp.
|
||||
|
|
Loading…
Reference in a new issue