From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 GMH+J+UhE2ST/QAASxT56A (envelope-from ) for ; Thu, 16 Mar 2023 15:04:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gKT5J+UhE2SttQAA9RJhRA (envelope-from ) for ; Thu, 16 Mar 2023 15:04:21 +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 7E31A124EA for ; Thu, 16 Mar 2023 15:04:21 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=JiVyuYBN; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678975461; 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:dkim-signature; bh=85hT6i7SsPTM4wQm2oQf6puRyb3pIB40tgtY3+euqGg=; b=nx+Zt+k3tlK2Ynon0jYeH4XU2KeIIoGHPBz3raKOuVqQ6E/nmSNniRWJE+gQqqgdqOYDQN YLxDIJwFiQ3BkJe6FyVTL5Ym0ZWbvKi7tHHjR37Xj8AJ3PRmcj39Y+HtyWjr3HbOrxTwPi beqTPFQWmr0wE+v52NnNxVyhrLzUFsdxjBdCiZdJ8P9cfdlGrUgKZbG+YMJiWlcYFTbcP0 XXI/Vdqa8t81wHF2hajdmKF7x2UCXPHp8lJtW7C4J7w6E8jfxVP1YSKSOYmFCqnfoayxhi ZRngBStrtwxs8YAGNlAgNMkz7Uieavdr0p5BrykuVc/3rGgGWZ7AuHRGqb+YNw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=JiVyuYBN; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678975461; a=rsa-sha256; cv=none; b=ZZZ2txZCb/LENc2nddZ/QUf6kezL2K7hlW9HfRK5UGXsc5ZpSC8WZJAM8V0hPqbHSphqa9 tF6U5flamIZvmS6ciOJSxw4eEFkKjRTdOKH+h7y81D+aLkk96diE3Uomq5VlpMTaW4PeX+ ZNX24/6jiab6OhXr1X2YK4L6mbKuJeTfqE8bztskyagpjaEUZ43uGb+VZQDRlwHedX7Uwz sK7nIEAY6UNsrx2yhk3dqOXBhjA4p/fU5Nj3/OEfpmmPMGCeTpDkCD5MDUZvKSuaftb4ME tzMbMWmr+bP9DgSw1fg4h4UU9qN2d+yEJN5m7cW36CmyQ2X774m7EE8mXasfFw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcoD7-0006N4-7F; Thu, 16 Mar 2023 10:04:05 -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 1pcoD5-0006Ml-Tm for guix-patches@gnu.org; Thu, 16 Mar 2023 10:04:03 -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 1pcoD4-0004ns-DV for guix-patches@gnu.org; Thu, 16 Mar 2023 10:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pcoD3-00011F-Un for guix-patches@gnu.org; Thu, 16 Mar 2023 10:04:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62129] [PATCH] guix: Improve download-nar. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Mar 2023 14:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 62129@debbugs.gnu.org Received: via spool by 62129-submit@debbugs.gnu.org id=B62129.16789753843828 (code B ref 62129); Thu, 16 Mar 2023 14:04:01 +0000 Received: (at 62129) by debbugs.gnu.org; 16 Mar 2023 14:03:04 +0000 Received: from localhost ([127.0.0.1]:42667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcoC8-0000zg-8Z for submit@debbugs.gnu.org; Thu, 16 Mar 2023 10:03:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcoC5-0000z7-1P for 62129@debbugs.gnu.org; Thu, 16 Mar 2023 10:03:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcoBz-0004ZS-Do; Thu, 16 Mar 2023 10:02:55 -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=85hT6i7SsPTM4wQm2oQf6puRyb3pIB40tgtY3+euqGg=; b=JiVyuYBNEAhJ1HGXooHr Xujyw3qtj4EMLJZpjDKkLr4EFnc5KWcOV6DSKZcJb1euR028tH7xZsgovZDgQKBTMHyxuOpZheCOD ZQzLHGQDR7oHW+vf6MXaimIifx2NOcVjmJ34G9XaO3vSomtTFOjeDQKQF3Th53i+2qODkIfn2OQJk 6/Ic1dLPs0Fms7su0dhoLCy+9F8+CetiOT4c2ZPPhUWtP55UEDbs2Mh6vQbfYfSpe9yqpAplgs2yn DPlB2RHKUuwyY+1AxrFard5MiHLI60qdEWwQZ8dIdJ6qRPXuKDd+LKkV4S5zxRrnezNrrwagSYONn 3RATrb4U8pOSeA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcoBy-00022k-VR; Thu, 16 Mar 2023 10:02:55 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230311201152.18865-1-mail@cbaines.net> Date: Thu, 16 Mar 2023 15:02:52 +0100 In-Reply-To: <20230311201152.18865-1-mail@cbaines.net> (Christopher Baines's message of "Sat, 11 Mar 2023 20:11:52 +0000") Message-ID: <87ilf0equr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: X-Migadu-Queue-Id: 7E31A124EA X-Spam-Score: -4.74 X-Migadu-Spam-Score: -4.74 X-Migadu-Scanner: scn0.migadu.com 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 X-TUID: ia4z/TVMtUfP 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 l= onger > serves gzipped nars so this is of limited use. > > This commit changes download-nar to query both the default substitute ser= vers, > and queries for lzipped rather than gzipped nars, since those are availab= le > from both. > > * guix/build/download-nar.scm (urls-for-item): Return urls for lzip rather > than gzip compression, and from both default substitute servers. The comm= ent > 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 for > download-nar LGTM! 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. Thank you, Ludo=E2=80=99.