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 ms11 with LMTPS id WFDUMm6PQmADLQAA0tVLHw (envelope-from ) for ; Fri, 05 Mar 2021 20:07:10 +0000 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 GCivLm6PQmClBwAA1q6Kng (envelope-from ) for ; Fri, 05 Mar 2021 20:07:10 +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 81769C50B for ; Fri, 5 Mar 2021 21:07:10 +0100 (CET) Received: from localhost ([::1]:55592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIGj7-0002tU-A1 for larch@yhetil.org; Fri, 05 Mar 2021 15:07:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIGj0-0002tN-TY for guix-patches@gnu.org; Fri, 05 Mar 2021 15:07:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIGj0-0004ge-LO for guix-patches@gnu.org; Fri, 05 Mar 2021 15:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIGj0-000326-GP for guix-patches@gnu.org; Fri, 05 Mar 2021 15:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46800] [PATCH] Allow defining multiple substituters Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Mar 2021 20:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46800 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 46800@debbugs.gnu.org Received: via spool by 46800-submit@debbugs.gnu.org id=B46800.161497478711619 (code B ref 46800); Fri, 05 Mar 2021 20:07:02 +0000 Received: (at 46800) by debbugs.gnu.org; 5 Mar 2021 20:06:27 +0000 Received: from localhost ([127.0.0.1]:35515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIGiR-00031K-J9 for submit@debbugs.gnu.org; Fri, 05 Mar 2021 15:06:27 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:60356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIGiP-000319-0T for 46800@debbugs.gnu.org; Fri, 05 Mar 2021 15:06:26 -0500 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by albert.telenet-ops.be with bizsmtp id ck6P240050mfAB406k6PDc; Fri, 05 Mar 2021 21:06:23 +0100 Message-ID: <9585e4728cfa5cae4e4a16f3434220ac4dd0bd7d.camel@telenet.be> From: Maxime Devos Date: Fri, 05 Mar 2021 21:05:53 +0100 In-Reply-To: <87o8g1thpr.fsf@gnu.org> References: <87o8g1thpr.fsf@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-OjuK/KQDbJ/zHqRWpvF0" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1614974783; bh=C1m6H9zwVUB0VICDlLJnM8CRF9ia734r2oVQCS7Yrbg=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=XsVtQJ4KNZC40zpDPtoNc5K+ifitvz0U87slti1G/DbkPe6dsfDwgZyZoiYPFlb5W 2KuibiDd4+4fpYnOrgK7gCDnscaWmcyXfp6P6ZUg40a5igGM1DYPj6jF7vSIb5fH5b CKzCcDg9VjJyBqd8IvQZ8qH2QSVOUFhDP1NyMfsBzoKqxQGWmqWWfjvLowc5FIU0n7 SWgjHhMwsfjN2HWT2r15y/Z6y1Aod4HTMi6gFUrsDUgPUcGEsCLojaohC8whEwbjtC ZdJ2EKxF2eKvbsZsLNmvnJrE7aBU0t9e6afVhpLhohumUGH21SvIos8qA5vmghGLAA piBKnw/TiyQYg== 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=XsVtQJ4K; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 81769C50B X-Spam-Score: -3.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: I/ILufvHZpiL --=-OjuK/KQDbJ/zHqRWpvF0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2021-03-02 at 21:37 +0100, Ludovic Court=C3=A8s wrote: > Hi Maxime, >=20 > Maxime Devos skribis: >=20 > > This patch series is my suggestion for allowing > > multiple "substitution methods" or "substituters" > > as I call them. Currently, only a method for HTTP/S > > is defined, though I hope it will be a good basis > > for a common framework for substitutes over GNUnet > > and IPFS. >=20 > [Ludovic's reply] (See previous mail for my responses) FYI: I've implemented a GNUnet substituter using this patch series and the "publish hooks" patch (+ an unsubmitted patch that passes some extra information to the publish hook) here: https://notabug.org/mdevos/guix-gnunet/src/download-hooks3 (Warning: it does some questionable things with add-to-load-path. Will hopefully be fixed eventually. Also requires in a special location.) Also, there's a bug in fetch-narinfos that causes an error if the "fetch-narinfos" field of a subtituter is #f. Also, recognised-uri-scheme should be removed or reworked, as otherwise the IPFS and GNUnet substituter won't be used for downloading a substitute if http and https are not in the list. I've worked around that for now by setting the latter '(http https file), and setting the former to (const '()). Greetings, Maxime. --=-OjuK/KQDbJ/zHqRWpvF0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYEKPIRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ggNAP9kAKdmueFuktbJwweo4z6igHkb Kn07Uc1HuE7mT3IJnQEAtkL8N9OTD+IC6+PEyo7qIoUogyflcM43nW/fUD94oAI= =QISs -----END PGP SIGNATURE----- --=-OjuK/KQDbJ/zHqRWpvF0--