From patchwork Thu May 8 00:06:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Eure X-Patchwork-Id: 42384 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BC9B127BC4B; Thu, 8 May 2025 01:07:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3B85D27BC49 for ; Thu, 8 May 2025 01:07:34 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uCon8-0003CR-AH; Wed, 07 May 2025 20:07:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uCon2-0003Ax-Ox for guix-patches@gnu.org; Wed, 07 May 2025 20:07:05 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uCon1-0005Wa-Mm for guix-patches@gnu.org; Wed, 07 May 2025 20:07:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Ucg53Xz/tvgDHOssspCpuqD+zONFydZfDBrYEZc/RDk=; b=prKROQRZZAh0/jNVeZqx0g8jJPTA7xgj8gVKFOGtrX8V8ZeCrbqi6F2Xsa1o4kJ0FKO+veowMPlCKU/9cIrMx09Pn5jvt7j1Cau9ELLxDqUtpmNO+EhZyh/j6d1xfEvisrsCGG/iQgknNTNdjw+sGEm4e5X5O9NFqu078t8U6eegX+KWrdaPiutaC8qnhVAZYs9sv2h4QwPnFhmKVe0gbvZe3J7mAHVWpo5eaXpNt+RK6WoPSF81ZH054iwuqEGvhXnT+KKEyX/tMIFtwqz8fwoa+Ah42/ib9SC4Njs6ahXsykWSHJqnac95fCYgmj3+AfxOQESkLCqEJePbCPA/bw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uCon1-0001a6-FM for guix-patches@gnu.org; Wed, 07 May 2025 20:07:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73152] [PATCH v3 4/7] gnu: nss: Store the package release date in an environment variable. Resent-From: Ian Eure Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 May 2025 00:07:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73152 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73152@debbugs.gnu.org Cc: Ian Eure Received: via spool by 73152-submit@debbugs.gnu.org id=B73152.17466627955960 (code B ref 73152); Thu, 08 May 2025 00:07:03 +0000 Received: (at 73152) by debbugs.gnu.org; 8 May 2025 00:06:35 +0000 Received: from localhost ([127.0.0.1]:50035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uComY-0001Y2-1s for submit@debbugs.gnu.org; Wed, 07 May 2025 20:06:34 -0400 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]:39505) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uComP-0001WM-Jz for 73152@debbugs.gnu.org; Wed, 07 May 2025 20:06:26 -0400 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 31239114018E; Wed, 7 May 2025 20:06:20 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 07 May 2025 20:06:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1746662780; x= 1746749180; bh=Ucg53Xz/tvgDHOssspCpuqD+zONFydZfDBrYEZc/RDk=; b=d eiiaoVLQeixTjWj26Nw9R9FGv0SlDl/dxfZeXCkW7ACCQBjRpyCJ8KoyIVMPSpd6 JD8h4UiOL7lRcDSx+NB93j184b5SN0BpcXV8YabspKbtw672YSyJbjrHLDV1tiQg cYk+AnxqORB9m+Wh06OAsJ/JiOOeIk+iqUqpbeoLmCFG1d5Rp7F5OVNqx84HRxMl Yp0njI8QHebgFVkPFiiMwiPD4nr/IVtc51S+j7mGrf6rohnWcmjNyg6NH7g1domM AEMtEYV/YhJnI/gDCAnSNjh7F2zCuTlGo0Vf4VkK+Fx8tU+oBlFBF12yToi/dPhq EIOXS7NeWoG1cAeSZ4p1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1746662780; x=1746749180; bh=U cg53Xz/tvgDHOssspCpuqD+zONFydZfDBrYEZc/RDk=; b=s6+bnemDB3hKJVjDY VWHbVco9ynmgAMivfFKT0MM2CpAbS/XXxfF/udLdjEgDdvAPnW0dlZqcrwiruWfh wL68l6HEIfwZwqayDdBocduBG6AsPVWYzyAlxm857rcxZA0lBHsrt55MQC10JjIG 2G0/ykQwc1q+UpYsj/cSOqvhyg45GOhPkz7kkXTsdP0YBxvD8vOFap4CCQLpUpYe D8wGjbfJrNu1xsck/HbnEfQoHZVZ6fceX/XvmojWerXw6jbWqK3Qy/2wjrvnZVHO l9o+ccR4/Nxqk7JGW9e9Pk6jSgkBElook4zoWBwVsi7HtwqBuLYSvkCXukYistPK 0oZ6Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvkeekvdehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvf evufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefkrghnucfguhhrvgcuoehi rghnsehrvghtrhhoshhpvggtrdhtvheqnecuggftrfgrthhtvghrnhepgfetieffvdelje elieeiveeggeelgeeiveejkeefveeludfgheettefgueffvefhnecuffhomhgrihhnpehm ohiiihhllhgrrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepihgrnhesrhgvthhrohhsphgvtgdrthhvpdhnsggprhgtphhtthhopedv pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeejfeduhedvseguvggssghughhsrd hgnhhurdhorhhgpdhrtghpthhtohepihgrnhesrhgvthhrohhsphgvtgdrthhv X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 May 2025 20:06:19 -0400 (EDT) From: Ian Eure Date: Wed, 7 May 2025 17:06:06 -0700 Message-ID: <20250508000613.11272-4-ian@retrospec.tv> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250508000613.11272-1-ian@retrospec.tv> References: <20250508000613.11272-1-ian@retrospec.tv> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/nss.scm (nss): Store the package release date in an environment variable. Change-Id: Ic3708c0a32e2fc15b0400e42611735f33839b78b --- gnu/packages/nss.scm | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm index ab238330a4..abaee7e980 100644 --- a/gnu/packages/nss.scm +++ b/gnu/packages/nss.scm @@ -172,6 +172,13 @@ (define-public nss (target-ppc32?))) #:phases #~(modify-phases %standard-phases + ;; The "PayPalEE.cert" certificate expires every six months, leading + ;; to test failures: + ;; . To work + ;; around that, set the time to roughly the release date. + (add-after 'unpack 'set-release-date + (lambda _ + (setenv "GUIX_NSS_RELEASE_DATE" "2024-01-23"))) (replace 'configure (lambda _ (setenv "CC" #$(cc-for-target)) @@ -212,12 +219,12 @@ (define-public nss (("SOURCE_DIR=.*") (string-append "SOURCE_DIR=" (getcwd) "/nss\n"))))) - ;; The "PayPalEE.cert" certificate expires every six months, - ;; leading to test failures: - ;; . To - ;; work around that, set the time to roughly the release date. - (invoke #$(if (target-64bit?) "faketime" "datefudge") - "2024-01-23" "./nss/tests/all.sh")) + + (let ((release-date (getenv "GUIX_NSS_RELEASE_DATE"))) + (when (string=? "" release-date) + (raise-exception "`GUIX_NSS_RELEASE_DATE' unset")) + (invoke #$(if (target-64bit?) "faketime" "datefudge") + release-date "./nss/tests/all.sh"))) (format #t "test suite not run~%")))) (replace 'install (lambda* (#:key outputs #:allow-other-keys)