From a24e8de6cea9cc413eb1de5c0cc9584299a96355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 11 Jun 2024 23:06:57 +0200 Subject: [PATCH] =?UTF-8?q?gnu:=20libressl:=20Run=20tests=20under=20?= =?UTF-8?q?=E2=80=98datefudge=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes . * gnu/packages/tls.scm (libressl)[arguments]: Add #:phases. Change-Id: I85d866808a01265c90de6c662f35a083773faf08 --- gnu/packages/tls.scm | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 719da8e113..760b917768 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012-2017, 2019-2023 Ludovic Courtès +;;; Copyright © 2012-2017, 2019-2024 Ludovic Courtès ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2021 Mark H Weaver ;;; Copyright © 2014 Ian Denhardt ;;; Copyright © 2013, 2015 Andreas Enge @@ -701,7 +701,19 @@ kilobytes of RAM.") "/share/libressl-" ,(package-version this-package)) ;; Provide a TLS-enabled netcat. - "--enable-nc"))) + "--enable-nc") + + #:phases (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; 'tests/tlstest.sh' started failing in 2024 due to + ;; an expired test certificate. + (invoke "datefudge" "2020-01-01" + "make" "check" + "-j" (number->string + (parallel-job-count))))))))) + (native-inputs (list datefudge)) (properties `((release-monitoring-url . "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/"))) (home-page "https://www.libressl.org/")