From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f10Sa-0008VM-Ik for guix-patches@gnu.org; Tue, 27 Mar 2018 22:05:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f10SW-0000D8-Jx for guix-patches@gnu.org; Tue, 27 Mar 2018 22:05:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f10SW-0000D2-GV for guix-patches@gnu.org; Tue, 27 Mar 2018 22:05:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f10SU-0002hk-MY for guix-patches@gnu.org; Tue, 27 Mar 2018 22:05:04 -0400 Subject: [bug#30968] [PATCH] gnu: mu: Fix tests failures triggered by DST. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f10Rc-0007s8-Im for guix-patches@gnu.org; Tue, 27 Mar 2018 22:04:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f10RY-0008Fi-K8 for guix-patches@gnu.org; Tue, 27 Mar 2018 22:04:08 -0400 Received: from mail-it0-x234.google.com ([2607:f8b0:4001:c0b::234]:52555) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f10RY-0008FZ-F6 for guix-patches@gnu.org; Tue, 27 Mar 2018 22:04:04 -0400 Received: by mail-it0-x234.google.com with SMTP id k135-v6so1702394ite.2 for ; Tue, 27 Mar 2018 19:04:04 -0700 (PDT) Received: from apteryx ([45.72.209.178]) by smtp.gmail.com with ESMTPSA id l7sm1618397ioe.50.2018.03.27.19.04.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Mar 2018 19:04:02 -0700 (PDT) From: Maxim Cournoyer Date: Tue, 27 Mar 2018 22:04:01 -0400 Message-ID: <87bmf9552m.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30968@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello! This fixes test failures for our mu package. Thanks! Maxim --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-mu-Fix-tests-failures-triggered-by-DST.patch >From b6c27eab14b678d12dd4b3b480ea88542bf096e7 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer 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 --=-=-=--