From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AAHGGqhjSGGjRwAAgWs5BA (envelope-from ) for ; Mon, 20 Sep 2021 12:34:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UPiCFqhjSGGtIAAA1q6Kng (envelope-from ) for ; Mon, 20 Sep 2021 10:34:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DC4281E955 for ; Mon, 20 Sep 2021 12:34:15 +0200 (CEST) Received: from localhost ([::1]:57040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSGco-0005VW-RM for larch@yhetil.org; Mon, 20 Sep 2021 06:34:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSGce-0005T8-EQ for bug-guix@gnu.org; Mon, 20 Sep 2021 06:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSGcb-0008QP-Un for bug-guix@gnu.org; Mon, 20 Sep 2021 06:34:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mSGcb-0007lb-SP for bug-guix@gnu.org; Mon, 20 Sep 2021 06:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50697: [core-updates-frozen] ca-certificate-bundle generation is broken. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 20 Sep 2021 10:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50697 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50697@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163213398829791 (code B ref -1); Mon, 20 Sep 2021 10:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Sep 2021 10:33:08 +0000 Received: from localhost ([127.0.0.1]:41051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSGbj-0007kR-TY for submit@debbugs.gnu.org; Mon, 20 Sep 2021 06:33:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:59350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSGbe-0007kE-3t for submit@debbugs.gnu.org; Mon, 20 Sep 2021 06:33:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSGbd-0004jP-Dl for bug-guix@gnu.org; Mon, 20 Sep 2021 06:33:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55422) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSGbc-0007aF-HS; Mon, 20 Sep 2021 06:33:01 -0400 Received: from [195.122.1.73] (port=42626 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSGbb-0005gR-87; Mon, 20 Sep 2021 06:32:59 -0400 From: Mathieu Othacehe Date: Mon, 20 Sep 2021 10:32:56 +0000 Message-ID: <87pmt3sfjb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: maxim.cournoyer@gmail.com Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632134056; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=yOyJ0bHjdmRcEviXw2fLVuGgTJdIfvIMuK2URPV5YJQ=; b=jW88eNstptRHaN8u5aHSqU9rpsZ3UQE6GTjQ4/OWPVKI7KiHAgAaCV7+CSiNzy4bBXMfLh NynW4eI/nZ/fv2HlSQfla76FOVSa5yuLql1t+jQuunZhGbj5s0jvN4GhazlbVzu9ez3M/0 x1vOdQxPSF47IP0BwkAc5Sbim+o8QVKBdlUd5/XjM59c3a5cnzf0TgvGcYRKL3kDco8YAr fQHIXPcy+21m2vEiuQhY7/tHsF7vS9SV6CzM/3jS9ln6+MClOCOX0C3snBYy14Q0+GwI8S GzlHo7eRMCPhxhFCvbd8pt7l84khFDnvXVkcJqkP+Dva30W1dAagL0sSJjO5uQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632134056; a=rsa-sha256; cv=none; b=rcUWGrNzInHCc0PL7hEAIzP5C0svQo+e3EoGA8HLpv1u0/et10PrLiAApP9oZ0IoaRFK1z ppvsX06KRvA4stmv3MMPpknykl20hYeSVAW6T9tRyI6C+FJxTxTOUJLjWoTZiQpxM9gpn3 7DioFJawn2Jqq8yoa9DG5o6mvKPo3r1sZGJnEay2QEwmt4MGOjU43z2FFU0J8zoF3SpFPa lSD+qHq7QAeRxHrZJrYEWHFmS5oeanbvNqTku3KpA121d7bSHlMXWuhYLweG3Ir0mtY6ub p8ZyQHKbD1jMhumPl5Tw7rY6DWPpy5KjGyZ1OVy+VQIR95evvjAMfuwa0StWDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.89 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: DC4281E955 X-Spam-Score: -2.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: LcJlzzMBShxw --=-=-= Content-Type: text/plain Hello, On core-updates-frozen, the ca-certificate-bundle derivation produces an empty output. That's because nss-certs only contains .crt files that are ignored by ca-certificate-bundle procedure. The following patches should fix the situation. Thanks, Mathieu --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-certdata2pem-Produce-pem-files.patch >From 18248cc817952c690694707cc965283dad1933c2 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Mon, 20 Sep 2021 10:26:30 +0000 Subject: [PATCH 1/2] gnu: certdata2pem: Produce pem files. Create files with pem extension instead of crt. * gnu/packages/certs.scm (certdata2pem)[arguments]<#:phases>{fix-extension}: New phase. --- gnu/packages/certs.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/certs.scm b/gnu/packages/certs.scm index 37e3fa6786..c9d8e7b76c 100644 --- a/gnu/packages/certs.scm +++ b/gnu/packages/certs.scm @@ -104,6 +104,11 @@ port forwarding to your local machine.") (arguments `(#:phases (modify-phases %standard-phases (delete 'configure) + (add-before 'build 'fix-extension + (lambda _ + (substitute* "certdata2pem.c" + (("\\.crt") + ".pem")))) (replace 'build (lambda _ (invoke ,(cc-for-target) "certdata2pem.c" -- 2.33.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-nss-certs-Copy-pem-files.patch >From 751a89919aa7a7bdf963a85112346153bfd03407 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Mon, 20 Sep 2021 10:27:55 +0000 Subject: [PATCH 2/2] gnu: nss-certs: Copy pem files. * gnu/packages/certs.scm (nss-certs)[arguments]<#:phases>{install}: Copy pem files instead of crt files. --- gnu/packages/certs.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/certs.scm b/gnu/packages/certs.scm index c9d8e7b76c..39c3ebd128 100644 --- a/gnu/packages/certs.scm +++ b/gnu/packages/certs.scm @@ -164,9 +164,9 @@ that was originally contributed to Debian.") (call-with-output-file "blacklist.txt" (const #t))) ;; Extract selected single certificates from blob. (invoke "certdata2pem") - ;; Copy .crt files into the output. + ;; Copy .pem files into the output. (for-each (cut install-file <> certsdir) - (find-files "." ".*\\.crt$"))) + (find-files "." ".*\\.pem$"))) (invoke "openssl" "rehash" certsdir))))))) (synopsis "CA certificates from Mozilla") (description -- 2.33.0 --=-=-=--