From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GO/AN3hmFGShngAASxT56A (envelope-from ) for ; Fri, 17 Mar 2023 14:09:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yCyxNnhmFGTMZAAAG6o9tA (envelope-from ) for ; Fri, 17 Mar 2023 14:09:12 +0100 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 88AA312876 for ; Fri, 17 Mar 2023 14:09:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pd9pQ-0004M3-Kp; Fri, 17 Mar 2023 09:09: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 1pd9pO-0004Ic-Q2 for guix-patches@gnu.org; Fri, 17 Mar 2023 09:09:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pd9pO-00007r-F7 for guix-patches@gnu.org; Fri, 17 Mar 2023 09:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pd9pO-0003Hg-0h for guix-patches@gnu.org; Fri, 17 Mar 2023 09:09:02 -0400 Subject: bug#62129: [PATCH] guix: Improve download-nar. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Fri, 17 Mar 2023 13:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 62129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 62129-done@debbugs.gnu.org Mail-Followup-To: 62129@debbugs.gnu.org, mail@cbaines.net, mail@cbaines.net Received: via spool by 62129-done@debbugs.gnu.org id=D62129.167905849112562 (code D ref 62129); Fri, 17 Mar 2023 13:09:01 +0000 Received: (at 62129-done) by debbugs.gnu.org; 17 Mar 2023 13:08:11 +0000 Received: from localhost ([127.0.0.1]:43936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pd9oZ-0003GX-EM for submit@debbugs.gnu.org; Fri, 17 Mar 2023 09:08:11 -0400 Received: from mira.cbaines.net ([212.71.252.8]:42398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pd9oX-0003GO-TT for 62129-done@debbugs.gnu.org; Fri, 17 Mar 2023 09:08:10 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:54d1:d5d4:280e:f699]) by mira.cbaines.net (Postfix) with ESMTPSA id BBF3D16E81; Fri, 17 Mar 2023 13:08:08 +0000 (GMT) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id b43ebde2; Fri, 17 Mar 2023 13:08:08 +0000 (UTC) References: <20230311201152.18865-1-mail@cbaines.net> <87ilf0equr.fsf@gnu.org> User-agent: mu4e 1.8.13; emacs 28.2 From: Christopher Baines Date: Fri, 17 Mar 2023 13:06:38 +0000 In-reply-to: <87ilf0equr.fsf@gnu.org> Message-ID: <87cz57wmo7.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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-Country: US X-Migadu-Flow: FLOW_IN 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679058552; a=rsa-sha256; cv=none; b=Ekg1F3X9PFUDdq6ILEf5VMay7+Z1wRVztuHOExZtEgRkT1Poby8IlVDVBunN5tR77YfL5o UsahXZ0GB1qhGOhU5Zw0nDLzgGBB5FMOjboDbIczYlFlnWtwwtgLjrG2HiboVWBFXUF89L PELH01hHxm6b6FmObEhCci9e1kvhXdx9n57PEnkQ7kuUr5qvoj67hzC1d6pkH1CtQlsCWk jxx1BJRyjXfasYxpVF93+ua8QNgJ7HUqtfx1EZy536ZmyeOfpjOsyvVTShzG6A53rjCCOM LqIt2+u+4+8teiBE7NjqxwOcu60Tt1q2Cm4pODzRV96he6BcHCp1RPJ6hnblVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679058552; 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-to: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=QwEw9Ez/wuADL9gUqyGZ9gQTIdEP788Phl7RBj/AVI8=; b=Fvwq4/CHQjxNOoTuOjKAFbZNsFIQah7vjMEhwHYXBx4jqc/cQNUlMHSrbJsCf/Q8gtSDvw +LbEJN1H+aoAidm1KUSKajXIdjyrc4Z+GwhtaQnpEH9RQe88PY2+/vdx2ilBC92gBkOpI3 35dvf+vANfLXqFIBfjx7H4Bk0l5ylJTutaofUquuzN1Hbxc+KPx1ocJSplIST2a/Lp76Hg CFf4uLTGBhCLs/rMd8wtVxme3WlkyvXAAIkQE/rQdj0yFlqqgguvfbpqcBAW1gIoT2nS2U cG3SdgBtqyxf6H9RImoJL92wtM9afvw6dj5Kt7b6FXp9v0qzxhXpxFs9W3TQ7g== X-Migadu-Spam-Score: -5.34 X-Spam-Score: -5.34 X-Migadu-Queue-Id: 88AA312876 X-Migadu-Scanner: scn1.migadu.com 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 X-TUID: /GneWcFqUGCe --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi Chris, > > Christopher Baines skribis: > >> Previously download-nar worked with gzipped nars and queried >> berlin.guix.gnu.org (also known as ci.guix.gnu.org). ci.guix.gnu.org no = longer >> serves gzipped nars so this is of limited use. >> >> This commit changes download-nar to query both the default substitute se= rvers, >> and queries for lzipped rather than gzipped nars, since those are availa= ble >> from both. >> >> * guix/build/download-nar.scm (urls-for-item): Return urls for lzip rath= er >> than gzip compression, and from both default substitute servers. The com= ment >> about CDN's is no longer relevant. >> (restore-gzipped-nar): Rename to restore-lzipped-nar and reimplement >> accordingly. >> (download-nar): Add progress reporting and switch to use lzip rather than >> gzip. >> * guix/cvs-download.scm (cvs-fetch): Replace guile-zlib with guile-lzlib. >> * guix/git-download.scm (git-fetch): Replace guile-zlib with guile-lzlib. >> * guix/hg-download.scm (hg-fetch): Replace guile-zlib with guile-lzlib. >> * guix/android-repo-download.scm (android-repo-fetch): Add guile-lzlib f= or >> download-nar > > LGTM! Great :) I pushed this to master yesterday as b59f89cf18fbad9ee95521c4cadc6642c580feb8. > As a second step, we could add support for zstd/gzip (via > guile-{zlib,zstd}) since that comes almost for free due to the fact that > the interface is the same in all three compression libraries. That will > make it more future-proof. Indeed, that should be easier now. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmQUZjhfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XcQVw//aVi7HBuKjfqjSuUngVM4SuiYmVzgjs7D FACCC+WUq/xaans4Ih6buUbpFUZfhL9443CeBIHOsOJjwjhk7c1unQNlxhqKMQBe EjOFLHSX06xaeQoitQofDpARS8PxWep9hmafRstoDMy1tvg2mH2y4MXsVzvZQyOW xMRQ9KzmATLrv5pdP2rxkvZ7Tc+xjVoDU/MIYtutBgY4iBGDN8/T9paiKPfzcdta r+v44mY6B8qLnKYjgRtUx0CU9G25c/FUdl0Onwg1iSbYoG9e5M2Jpdz1FebKYx/i 9xHEtlIHTB+jxHNduv9at/rLwlwxJhAA+0iDcv/r5oe1pfwNyXgpbKdcPQRulgGq M+rM10khy0N+ath0etvsdPp/sUSpG2CpMfwPLYZEOTu0CkdlIhBVJoP90cSJsrES 6kGvJMWhB2IuImOfJBEW8MgL5DPVnfrlOcF2HNyyFNsoI10xYQCyA1KDrM6W8uqq ieEoCfX6D3BlKWibGJVtvem9UPQIJb4J7cdf0IeOZN1dd/i1W33F9BOEPvYnwPL0 QQsRZmTOknAH+vxPuvb3rQyAYBlCH1r11GXePWhg2BJ9rH9f5RffvzgNZvI5G9Rl IdDBuqe4/kHhxt1RBaPNgJdt4GBJanV/zmh/LMLPhF+iWb+Fj8sQqYLp6EUmZYO6 EJUsV5ZVntM= =uKDF -----END PGP SIGNATURE----- --=-=-=--