unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Greg Hogan <code@greghogan.com>
To: 64207@debbugs.gnu.org
Cc: Greg Hogan <code@greghogan.com>
Subject: [bug#64207] [PATCH 1/2] gnu: aws-lc: Fix tests.
Date: Wed, 21 Jun 2023 13:37:27 +0000	[thread overview]
Message-ID: <20230621133742.8987-1-code@greghogan.com> (raw)
In-Reply-To: <20230621133648.7922-1-code@greghogan.com>

* gnu/packages/tls.scm (aws-lc)[native-inputs]: Add libfaketime.
[arguments]<#:phases>: Replace and wrap 'check with faketime due to
certificate expiration.
---
 gnu/packages/tls.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index d162094ed4..2d94eb5ea6 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -1220,7 +1220,20 @@ (define-public aws-lc
     (arguments
      '(#:test-target "run_minimal_tests"
        #:configure-flags
-       '("-DBUILD_SHARED_LIBS=ON")))
+       '("-DBUILD_SHARED_LIBS=ON")
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? test-target parallel-tests? #:allow-other-keys)
+             (when tests?
+               ;; SSLTest.HostMatching fails due to an expired certificate.
+               ;; Fake the time to be that of the release.
+               (invoke "faketime" "2022-05-23"
+                       "make" test-target
+                       "-j" (if parallel-tests?
+                                (number->string (parallel-job-count))
+                                "1"))))))))
+    (native-inputs (list libfaketime))
     (synopsis "General purpose cryptographic library")
     (description "AWS libcrypto (aws-lc) contains portable C implementations
 of algorithms needed for TLS and common applications, and includes optimized
-- 
2.41.0





  reply	other threads:[~2023-06-21 13:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-21 13:36 [bug#64207] [PATCH 0/2] Update aws-sdk-cpp Greg Hogan
2023-06-21 13:37 ` Greg Hogan [this message]
2023-06-21 13:37   ` [bug#64207] [PATCH 2/2] gnu: aws-sdk-cpp: Update to 1.9.306 Greg Hogan
2023-06-25 21:43 ` bug#64207: [PATCH 0/2] Update aws-sdk-cpp Ludovic Courtès
2023-06-26 12:55   ` [bug#64207] " Greg Hogan

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=20230621133742.8987-1-code@greghogan.com \
    --to=code@greghogan.com \
    --cc=64207@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).