From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id sDoFBmjeJ2Z7bgEAe85BDQ:P1 (envelope-from ) for ; Tue, 23 Apr 2024 18:14:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id sDoFBmjeJ2Z7bgEAe85BDQ (envelope-from ) for ; Tue, 23 Apr 2024 18:14:32 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713888871; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=OlM4gcHENtReJCav2o1QYf3slzaYvJsAw3do5eaXlsk=; b=jlPxEHXaaUXFxLlfnQZaaeONOgtUVkcS9VPfkrBuEZE2yOWG6NCfXfTNqOPVNsEVbXLWl0 utjqwVCalQOAoIyftCM2zqk4P+/fgaByGnAtowt7N7eYPqKE4jXZ6yr9e388YsZ8U8IenN gVFG3+WYfU6W9gC16TmCjPU2xaHvQbndpQf6jjCRgRLfeIWuamAtyVbW1rGHPL2vkPVvxa kqJmtq33AdNCOJjiRKgy7lRsimsefqgTEtbariUEyOvkLWktq8ovDLhZ2rYp5/DDqnsipI F+vvKPnEeWI1ae1DJIW/BW//5hT/1eDFnIdxwgLOy9ylDXQPUkBfOsapEP0o9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713888871; a=rsa-sha256; cv=none; b=Kr1j1yKCSYfIa9GryJUNgT/HtpClWULvAuvCI9u7ywKYOer4N4cjURjsW5gCUrMdOXl0wG MXV8qkJoBb7TczY/5xLMbJk6j7nRLa/zD7iQnMrrPpujFudn38iZLrz5oEnz/Gu3G1e2ND TbG9jtCsKWUixt7G6mqHpZIVtNaxUoUe0dgvchqUWyGxZk4EltuSTDIQpyfdFK71aeYvkc 3ArobIB2cxb7Xb7VHYvai1Zj+ai9H70FFJr4zwfIiGmbtKQn9Tyd6bTwIRodHrH1zTdtZu r4YW4WxIE/AcPwS5rWxW/Q90GC2tMAG7vlBfSUouauF8GVbpJ8w7VqAWQiYrgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none 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 BE39517880 for ; Tue, 23 Apr 2024 18:14:31 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzImS-0002qu-4e; Tue, 23 Apr 2024 12:14:04 -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 1rzImK-0002oS-10 for guix-patches@gnu.org; Tue, 23 Apr 2024 12:13:56 -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 1rzImI-0005rl-1r for guix-patches@gnu.org; Tue, 23 Apr 2024 12:13:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rzImY-0001k1-4r for guix-patches@gnu.org; Tue, 23 Apr 2024 12:14:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#68621] [PATCH v2 1/4] gnu: knot-resolver: Re-enable default DNSSEC trust anchors. Resent-From: Dale Mellor Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Apr 2024 16:14:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68621 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68621@debbugs.gnu.org Cc: hello@lnikki.la X-Debbugs-Original-Cc: Leo =?UTF-8?Q?Nikkil=C3=A4?= , guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17138888256359 (code B ref -1); Tue, 23 Apr 2024 16:14:09 +0000 Received: (at submit) by debbugs.gnu.org; 23 Apr 2024 16:13:45 +0000 Received: from localhost ([127.0.0.1]:53038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rzIm6-0001e0-Ij for submit@debbugs.gnu.org; Tue, 23 Apr 2024 12:13:44 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rzIm3-0001d6-UJ for submit@debbugs.gnu.org; Tue, 23 Apr 2024 12:13:41 -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 1rzIlh-0002mK-HR for guix-patches@gnu.org; Tue, 23 Apr 2024 12:13:17 -0400 Received: from [195.15.247.228] (helo=rdmp.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzIlf-0005ik-ML for guix-patches@gnu.org; Tue, 23 Apr 2024 12:13:17 -0400 Received: from [127.0.0.1] (helo=localhost.localdomain) by rdmp.org with esmtp (Exim 4.96.1) (envelope-from ) id 1rzIlb-00047D-2z; Tue, 23 Apr 2024 16:13:12 +0000 From: Dale Mellor Date: Tue, 23 Apr 2024 17:12:23 +0100 Message-ID: <20240423161226.973140-1-guix-devel-0brg6a@rdmp.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240120212542.17473-1-hello@lnikki.la> References: <20240120212542.17473-1-hello@lnikki.la> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.15.247.228 (failed) Received-SPF: pass client-ip=195.15.247.228; envelope-from=guix-devel-0brg6a@rdmp.org; helo=rdmp.org X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.38 X-Spam-Score: -5.38 X-Migadu-Queue-Id: BE39517880 X-Migadu-Scanner: mx12.migadu.com X-TUID: xpjeeLLzWyEY From: Leo Nikkilä * gnu/packages/dns.scm (knot-resolver) [#:configure-flags]: Configure root keys and managed TA. [#:phases] Remove `'disable-default-ta', add `'install-root-keys'. --- gnu/packages/dns.scm | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 36d3eb8b7e..947a6e89ba 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -995,15 +995,13 @@ (define-public knot-resolver (build-system meson-build-system) (outputs '("out" "doc")) (arguments - '(#:configure-flags '("-Ddoc=enabled") + `(#:configure-flags + '("-Ddoc=enabled" + "-Dinstall_root_keys=disabled" ; installed manually outside store + "-Dkeyfile_default=/var/cache/knot-resolver/root.keys" + "-Dmanaged_ta=enabled") #:phases (modify-phases %standard-phases - (add-before 'configure 'disable-default-ta - (lambda _ - ;; Disable the default managed root TA, since we don't have - ;; write access to the keyfile and its directory in store. - (substitute* "daemon/lua/sandbox.lua.in" - (("^trust_anchors\\.add_file.*") "")))) (add-after 'build 'build-doc (lambda _ (invoke "ninja" "doc"))) @@ -1021,6 +1019,14 @@ (define-public knot-resolver '("doc/knot-resolver/examples" "doc/knot-resolver/html" "info"))))) + (add-after 'install 'install-root-keys + (lambda* (#:key outputs #:allow-other-keys) + (let ((dir (string-append (assoc-ref outputs "out") + "/etc/knot-resolver"))) + (mkdir-p dir) + (install-file (string-append "../knot-resolver-" ,version + "/etc/root.keys") + dir)))) (add-after 'install 'wrap-binary (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) -- 2.41.0