diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-06-11 22:50:43 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-06-11 22:52:23 +0200 |
commit | 2ac6998063c311799cefb8edbc5b0158230d3877 (patch) | |
tree | e093d32830699fa017ba113337f7ec8092db7b19 /guix/build | |
parent | 05ffd29d976d8f5eb8ad74b5cd2e419a79a3675c (diff) | |
download | gnu-guix-2ac6998063c311799cefb8edbc5b0158230d3877.tar gnu-guix-2ac6998063c311799cefb8edbc5b0158230d3877.tar.gz |
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.
Diffstat (limited to 'guix/build')
-rw-r--r-- | guix/build/gnu-build-system.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.scm index 09f272edee..e37b751403 100644 --- a/guix/build/gnu-build-system.scm +++ b/guix/build/gnu-build-system.scm @@ -39,6 +39,13 @@ ;; ;; 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. |