From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6FqVBMhg+mMegwEAbAwnHQ (envelope-from ) for ; Sat, 25 Feb 2023 20:26:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eGJ7BMhg+mNRdAEAauVa8A (envelope-from ) for ; Sat, 25 Feb 2023 20:26:00 +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 B4A1A2DD2 for ; Sat, 25 Feb 2023 20:25:59 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=N06CKa7K; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=tobias.gr ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677353159; a=rsa-sha256; cv=none; b=feGzcU42RfbYLtz9DVX4wCIQxng5QkdQBTY8RfykY0L5S+yFjGlkG9BS3jcvrg3XoetP0U Srk/s4BXtO1vZd1Luxx144Y9P6GkcB/vA02UjR33a2Q5T0X6wBRs1/j9mxGiJUqMVc6gpK tzX55NFvxt8ZdGt5DsHggU9aCTJ1zOruYdxC7znx9alQStGJ4Yvp4TNEugst+ei0dYtkXO R061khbMZrQLgtS5Joz+kECGhLMBroAJmt/2FybyHopO0r80y4EpWW+r44wJclyD/vGetO 093KTmYkIwycS8IkpAgVcZQijtY4gtr8bZQJqxwD4HcUc5ByFrte/9qbd08A7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=N06CKa7K; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=tobias.gr ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677353159; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=56ZWVc5z9JtMMkcVvITyxSkkkmYkr121MSA7Zl1ApXM=; b=gd4DfolQi9aSPoersPTQes7ERezIsaXIsaFK19Q6HKiLYdf98nXAVmMDw7aI9pvQsb49ak VmWzIFuTbWOd8+CCpCMMu0s3O+A9CbNCIz2dtiumdoOjaU2MEwvxFfdQpBsOeY8EZpk+jA rTVIwlkxAXwIWzNqME6XdHgx+i6AURP+xsr4SPj9zuD1i9hNzK7jfh9aJF5Uflqj9E/qpK mTepwwLtqn9noFJ/RgNYpELmKUfrcvkmr/GuC21+6YO8JiHyreVYiWdWlcf4MX237eA9D8 C/3UCYw8GXWeKS1P7tPGNvIOIzqxBaiV/UXKdLPGED8uM8is0VsGoaG4Q53qSg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pW0Aw-0008Di-8k; Sat, 25 Feb 2023 14:25:42 -0500 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 1pW0As-0008DI-D5; Sat, 25 Feb 2023 14:25:39 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pW0Al-0002j7-K2; Sat, 25 Feb 2023 14:25:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=56ZWVc5z9JtMM kcVvITyxSkkkmYkr121MSA7Zl1ApXM=; h=references:in-reply-to:subject:cc: to:from:date; d=tobias.gr; b=N06CKa7KJ7KOyML/VqcHv3tsGz3QY0u8/W+81m6zf Q0RirRPKncJhsJZ++o8x+/nr9Bp0TMGneVC+HuEm5SE3uJJHXyTjC7N6Br2wbhTbbWQBIm 9AXldX7KlQKCDYMP/2LTLugI3BR6jCLWnD1xXQbDwGJc084tdNrBlygihM8McjEShD+91r KQsABD0sNr5gE0us/u6nlBIH528t+daF/gX1pM7KyZBykTjrP9A2YfON//Y4Z5nCZATpYL O6Aw6fR7N/bBws/lZQZTGEZGPcxAYR4Amqne1aPXttOWLKWhsJyenaTcKubBlP75p2KcG4 Zwvjh+Z0s6WFDc2oIgFzA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id 0a07d9f6; Sat, 25 Feb 2023 19:25:24 +0000 (UTC) MIME-Version: 1.0 Date: Sat, 25 Feb 2023 20:25:24 +0100 From: Tobias Geerinckx-Rice To: Hilton Chain Cc: guix-patches@gnu.org, guix-devel@gnu.org Subject: Re: [PATCH] download: Add url-fetch/xz-file. In-Reply-To: <87sffz2d9a.wl-hako@ultrarare.space> References: <87sffz2d9a.wl-hako@ultrarare.space> Message-ID: <16189d896f675c30ba117222b7dd36da@tobias.gr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: B4A1A2DD2 X-Spam-Score: -11.59 X-Migadu-Spam-Score: -11.59 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: rHT3gVBQjQS8 Hi Hilton, I agree with Ludo' and also wonder if a generic ‘url-fetch/compressed-file’ wouldn't be better. There are closure arguments to be made for this xz-only approach. I don't know if they're convincing. Cluebats welcome. (I was going to bring up ‘url-fetch/tarbomb’ as an example, but it doesn't actually handle anything besides gzip! Madness.) On 2023-01-25 10:07, Hilton Chain wrote: > + (setenv "XZ_OPT" > + (string-join (%xz-parallel-args))) Why set this kluge… > + (invoke (string-append #+xz "/bin/unxz") > + #$file-name) …when we have full control over xz's arguments? Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity.