From: Mathieu Othacehe <m.othacehe@gmail.com>
To: 27662@debbugs.gnu.org
Subject: [bug#27662] [PATCH] base: Fix time-monotonic Guile issue.
Date: Wed, 12 Jul 2017 10:11:12 +0200 [thread overview]
Message-ID: <20170712081112.22783-2-m.othacehe@gmail.com> (raw)
In-Reply-To: <20170712081112.22783-1-m.othacehe@gmail.com>
* src/cuirass/base.scm: Replace time-monotonic with time-tai with
Guile 2.2, to avoid wrong evaluation durations.
---
src/cuirass/base.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/cuirass/base.scm b/src/cuirass/base.scm
index 5e0cb0d..d0e77d9 100644
--- a/src/cuirass/base.scm
+++ b/src/cuirass/base.scm
@@ -45,6 +45,13 @@
%package-cachedir
%use-substitutes?))
+(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 %use-substitutes?
;; Define whether to use substitutes
(make-parameter #f))
--
2.13.1
next prev parent reply other threads:[~2017-07-12 8:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-12 8:11 [bug#27663] [PATCH] database: Fix typo Mathieu Othacehe
2017-07-12 8:11 ` Mathieu Othacehe [this message]
2017-07-12 12:26 ` [bug#27662] [PATCH] base: Fix time-monotonic Guile issue Ludovic Courtès
2017-07-12 17:05 ` bug#27662: " Mathieu Othacehe
2017-07-12 8:47 ` [bug#27663] [PATCH] database: Fix typo Danny Milosavljevic
2017-07-12 12:25 ` Ludovic Courtès
2017-07-12 14:12 ` Mathieu Othacehe
2017-07-12 17:05 ` bug#27663: " Mathieu Othacehe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170712081112.22783-2-m.othacehe@gmail.com \
--to=m.othacehe@gmail.com \
--cc=27662@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).