all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#30968] [PATCH] gnu: mu: Fix tests failures triggered by DST.
@ 2018-03-28  2:04 Maxim Cournoyer
  2018-03-28 15:14 ` bug#30968: " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Maxim Cournoyer @ 2018-03-28  2:04 UTC (permalink / raw)
  To: 30968

[-- Attachment #1: Type: text/plain, Size: 69 bytes --]

Hello!

This fixes test failures for our mu package.

Thanks!

Maxim

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-mu-Fix-tests-failures-triggered-by-DST.patch --]
[-- Type: text/x-patch, Size: 1252 bytes --]

From b6c27eab14b678d12dd4b3b480ea88542bf096e7 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Tue, 27 Mar 2018 21:59:24 -0400
Subject: [PATCH] gnu: mu: Fix tests failures triggered by DST.

* gnu/packages/mail.scm (mu)[phases]: Add 'fix-date-tests.
---
 gnu/packages/mail.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 4e273a0da..96b53c5bd 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -618,6 +618,13 @@ security functionality including PGP, S/MIME, SSH, and SSL.")
                             "guile/mu/Makefile.in")
                (("share/guile/site/2.0/") "share/guile/site/2.2/"))
              #t))
+         (add-after 'patch-configure 'fix-date-tests
+           ;; Loosen test tolerances to prevent failures caused by daylight
+           ;; time saving (DST).  See: https://github.com/djcb/mu/issues/1214.
+           (lambda _
+             (substitute* "lib/parser/test-utils.cc"
+               (("\\* 60 \\* 60, 1 },")
+                "* 60 * 60, 3600 + 1 },"))))
          (add-before 'install 'fix-ffi
            (lambda* (#:key outputs #:allow-other-keys)
              (substitute* "guile/mu.scm"
-- 
2.16.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#30968: [PATCH] gnu: mu: Fix tests failures triggered by DST.
  2018-03-28  2:04 [bug#30968] [PATCH] gnu: mu: Fix tests failures triggered by DST Maxim Cournoyer
@ 2018-03-28 15:14 ` Ludovic Courtès
  2018-03-29  0:37   ` [bug#30968] " Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2018-03-28 15:14 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 30968-done

[-- Attachment #1: Type: text/plain, Size: 443 bytes --]

Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> From b6c27eab14b678d12dd4b3b480ea88542bf096e7 Mon Sep 17 00:00:00 2001
> From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
> Date: Tue, 27 Mar 2018 21:59:24 -0400
> Subject: [PATCH] gnu: mu: Fix tests failures triggered by DST.
>
> * gnu/packages/mail.scm (mu)[phases]: Add 'fix-date-tests.

Well done!  Applied with the minor changes below.

Thank you,

Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 907 bytes --]

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index dca4ffb9a..3dab1325e 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -620,11 +620,12 @@ security functionality including PGP, S/MIME, SSH, and SSL.")
              #t))
          (add-after 'patch-configure 'fix-date-tests
            ;; Loosen test tolerances to prevent failures caused by daylight
-           ;; time saving (DST).  See: https://github.com/djcb/mu/issues/1214.
+           ;; saving time (DST).  See: https://github.com/djcb/mu/issues/1214.
            (lambda _
              (substitute* "lib/parser/test-utils.cc"
                (("\\* 60 \\* 60, 1 },")
-                "* 60 * 60, 3600 + 1 },"))))
+                "* 60 * 60, 3600 + 1 },"))
+             #t))
          (add-before 'install 'fix-ffi
            (lambda* (#:key outputs #:allow-other-keys)
              (substitute* "guile/mu.scm"

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#30968] [PATCH] gnu: mu: Fix tests failures triggered by DST.
  2018-03-28 15:14 ` bug#30968: " Ludovic Courtès
@ 2018-03-29  0:37   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2018-03-29  0:37 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 30968-done

Hi Ludovic,

ludo@gnu.org (Ludovic Courtès) writes:

> Hi,
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> From b6c27eab14b678d12dd4b3b480ea88542bf096e7 Mon Sep 17 00:00:00 2001
>> From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
>> Date: Tue, 27 Mar 2018 21:59:24 -0400
>> Subject: [PATCH] gnu: mu: Fix tests failures triggered by DST.
>>
>> * gnu/packages/mail.scm (mu)[phases]: Add 'fix-date-tests.
>
> Well done!  Applied with the minor changes below.

Thanks :). I keep overlooking this #t or #f return value.

Maxim

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-29  0:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28  2:04 [bug#30968] [PATCH] gnu: mu: Fix tests failures triggered by DST Maxim Cournoyer
2018-03-28 15:14 ` bug#30968: " Ludovic Courtès
2018-03-29  0:37   ` [bug#30968] " Maxim Cournoyer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.