From unknown Sun Aug 10 02:40:53 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#54686] [PATCH] gnu: nss-certs: Use G-Expression. Resent-From: Brian Kubisiak Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 03 Apr 2022 00:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54686 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54686@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164894697020955 (code B ref -1); Sun, 03 Apr 2022 00:50:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Apr 2022 00:49:30 +0000 Received: from localhost ([127.0.0.1]:47153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naoQr-0005Rv-So for submit@debbugs.gnu.org; Sat, 02 Apr 2022 20:49:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:35954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naoQr-0005Ro-7H for submit@debbugs.gnu.org; Sat, 02 Apr 2022 20:49:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naoQr-00049W-0A for guix-patches@gnu.org; Sat, 02 Apr 2022 20:49:29 -0400 Received: from mn-69-69-108-139.sta.embarqhsd.net ([69.69.108.139]:1455 helo=mail.kubisiak.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naoQp-0005bc-EG for guix-patches@gnu.org; Sat, 02 Apr 2022 20:49:28 -0400 Received: from peregrine (108-237-41-25.lightspeed.sntcca.sbcglobal.net [108.237.41.25]) by mail.kubisiak.com with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Sat, 2 Apr 2022 19:49:09 -0500 Date: Sat, 2 Apr 2022 17:49:15 -0700 From: Brian Kubisiak Message-ID: <20220403004915.rzqmwkqkags4adf6@peregrine> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=69.69.108.139; envelope-from=brian@kubisiak.com; helo=mail.kubisiak.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This fixes cross-compilation for aarch64-linux-gnu. * gnu/packages/certs.scm (nss-certs)[arguments]: Use a gexp to remove references to %output. --- gnu/packages/certs.scm | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/gnu/packages/certs.scm b/gnu/packages/certs.scm index 28c2f84f98..8f762f2966 100644 --- a/gnu/packages/certs.scm +++ b/gnu/packages/certs.scm @@ -28,6 +28,7 @@ (define-module (gnu packages certs) #:use-module (guix packages) #:use-module (guix utils) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) @@ -164,21 +165,21 @@ (define-public nss-certs (rnrs io ports) (srfi srfi-26)) #:phases - (modify-phases - (map (cut assq <> %standard-phases) - '(set-paths install-locale unpack)) - (add-after 'unpack 'install - (lambda _ - (let ((certsdir (string-append %output "/etc/ssl/certs/"))) - (with-directory-excursion "nss/lib/ckfw/builtins/" - (unless (file-exists? "blacklist.txt") - (call-with-output-file "blacklist.txt" (const #t))) - ;; Extract selected single certificates from blob. - (invoke "certdata2pem") - ;; Copy .pem files into the output. - (for-each (cut install-file <> certsdir) - (find-files "." ".*\\.pem$"))) - (invoke "openssl" "rehash" certsdir))))))) + ,#~(modify-phases + (map (cut assq <> %standard-phases) + '(set-paths install-locale unpack)) + (add-after 'unpack 'install + (lambda _ + (let ((certsdir (string-append #$output "/etc/ssl/certs/"))) + (with-directory-excursion "nss/lib/ckfw/builtins/" + (unless (file-exists? "blacklist.txt") + (call-with-output-file "blacklist.txt" (const #t))) + ;; Extract selected single certificates from blob. + (invoke "certdata2pem") + ;; Copy .pem files into the output. + (for-each (cut install-file <> certsdir) + (find-files "." ".*\\.pem$"))) + (invoke "openssl" "rehash" certsdir))))))) (synopsis "CA certificates from Mozilla") (description "This package provides certificates for Certification Authorities (CA) -- 2.34.0 From unknown Sun Aug 10 02:40:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Brian Kubisiak Subject: bug#54686: closed (Re: bug#54686: [PATCH] gnu: nss-certs: Use G-Expression.) Message-ID: References: <8735hrsmx9.fsf@gnu.org> <20220403004915.rzqmwkqkags4adf6@peregrine> X-Gnu-PR-Message: they-closed 54686 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 54686@debbugs.gnu.org Date: Mon, 02 May 2022 20:25:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1651523101-2739-1" This is a multi-part message in MIME format... ------------=_1651523101-2739-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #54686: [PATCH] gnu: nss-certs: Use G-Expression. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 54686@debbugs.gnu.org. --=20 54686: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D54686 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1651523101-2739-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 54686-done) by debbugs.gnu.org; 2 May 2022 20:24:27 +0000 Received: from localhost ([127.0.0.1]:38063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlcap-0000hM-0c for submit@debbugs.gnu.org; Mon, 02 May 2022 16:24:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlcan-0000hB-Ni for 54686-done@debbugs.gnu.org; Mon, 02 May 2022 16:24:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlcai-0000VA-F6; Mon, 02 May 2022 16:24:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=LTRj0cf/DG4OTQMAe/e2YGVVBd7TjmXnnEqb4sua4v4=; b=TMxFTzo1NZaHzPGhQANN IHyq7u0yxV6RF2AVnDIoIQj7rT6qaG9XPHUKD8TMsQPO7siKNxbYc5k4aQpqYwiKb+GgueiHZhtxd slugXHP6576HUWSs74KNc2oj7Mc1D3Mn1Zw79bdbsx7kdVLV0HlhJPL7EJzExRCTy3JhigODmn6if PgPtUeLtcaF6u8tPrq1XYDNJTktEadU0tyrEp2GaHd1H400AOzEbMNNiKOAgHHHHRYoQWqlgBw0N3 i90EiX6B08zU+EgGwRd7AknI+/YXEwTUqTf8Ee4KFcr5F4am3OJMIEA1thbwV4FxCAzQIWxpyM7ZY W9R6QdFDz0P5YQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55256 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlcai-0007bn-2v; Mon, 02 May 2022 16:24:20 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Brian Kubisiak Subject: Re: bug#54686: [PATCH] gnu: nss-certs: Use G-Expression. References: <20220403004915.rzqmwkqkags4adf6@peregrine> Date: Mon, 02 May 2022 22:24:18 +0200 In-Reply-To: <20220403004915.rzqmwkqkags4adf6@peregrine> (Brian Kubisiak's message of "Sat, 2 Apr 2022 17:49:15 -0700") Message-ID: <8735hrsmx9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54686-done Cc: 54686-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Brian Kubisiak skribis: > This fixes cross-compilation for aarch64-linux-gnu. > > * gnu/packages/certs.scm (nss-certs)[arguments]: Use a gexp to remove > references to %output. I resolved the merge conflict and applied to =E2=80=98staging=E2=80=99 (the cross-compilation issue was fixed in 5389c5ea57dd17e19412f38dc448b0a5114a3579.) Thanks, Ludo=E2=80=99. ------------=_1651523101-2739-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Apr 2022 00:49:30 +0000 Received: from localhost ([127.0.0.1]:47153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naoQr-0005Rv-So for submit@debbugs.gnu.org; Sat, 02 Apr 2022 20:49:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:35954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naoQr-0005Ro-7H for submit@debbugs.gnu.org; Sat, 02 Apr 2022 20:49:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naoQr-00049W-0A for guix-patches@gnu.org; Sat, 02 Apr 2022 20:49:29 -0400 Received: from mn-69-69-108-139.sta.embarqhsd.net ([69.69.108.139]:1455 helo=mail.kubisiak.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naoQp-0005bc-EG for guix-patches@gnu.org; Sat, 02 Apr 2022 20:49:28 -0400 Received: from peregrine (108-237-41-25.lightspeed.sntcca.sbcglobal.net [108.237.41.25]) by mail.kubisiak.com with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Sat, 2 Apr 2022 19:49:09 -0500 Date: Sat, 2 Apr 2022 17:49:15 -0700 From: Brian Kubisiak To: guix-patches@gnu.org Subject: [PATCH] gnu: nss-certs: Use G-Expression. Message-ID: <20220403004915.rzqmwkqkags4adf6@peregrine> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=69.69.108.139; envelope-from=brian@kubisiak.com; helo=mail.kubisiak.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This fixes cross-compilation for aarch64-linux-gnu. * gnu/packages/certs.scm (nss-certs)[arguments]: Use a gexp to remove references to %output. --- gnu/packages/certs.scm | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/gnu/packages/certs.scm b/gnu/packages/certs.scm index 28c2f84f98..8f762f2966 100644 --- a/gnu/packages/certs.scm +++ b/gnu/packages/certs.scm @@ -28,6 +28,7 @@ (define-module (gnu packages certs) #:use-module (guix packages) #:use-module (guix utils) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) @@ -164,21 +165,21 @@ (define-public nss-certs (rnrs io ports) (srfi srfi-26)) #:phases - (modify-phases - (map (cut assq <> %standard-phases) - '(set-paths install-locale unpack)) - (add-after 'unpack 'install - (lambda _ - (let ((certsdir (string-append %output "/etc/ssl/certs/"))) - (with-directory-excursion "nss/lib/ckfw/builtins/" - (unless (file-exists? "blacklist.txt") - (call-with-output-file "blacklist.txt" (const #t))) - ;; Extract selected single certificates from blob. - (invoke "certdata2pem") - ;; Copy .pem files into the output. - (for-each (cut install-file <> certsdir) - (find-files "." ".*\\.pem$"))) - (invoke "openssl" "rehash" certsdir))))))) + ,#~(modify-phases + (map (cut assq <> %standard-phases) + '(set-paths install-locale unpack)) + (add-after 'unpack 'install + (lambda _ + (let ((certsdir (string-append #$output "/etc/ssl/certs/"))) + (with-directory-excursion "nss/lib/ckfw/builtins/" + (unless (file-exists? "blacklist.txt") + (call-with-output-file "blacklist.txt" (const #t))) + ;; Extract selected single certificates from blob. + (invoke "certdata2pem") + ;; Copy .pem files into the output. + (for-each (cut install-file <> certsdir) + (find-files "." ".*\\.pem$"))) + (invoke "openssl" "rehash" certsdir))))))) (synopsis "CA certificates from Mozilla") (description "This package provides certificates for Certification Authorities (CA) -- 2.34.0 ------------=_1651523101-2739-1--