From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wOgZM6edfmECfwAAgWs5BA (envelope-from ) for ; Sun, 31 Oct 2021 14:44:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KH3RLqedfmHJBAAA1q6Kng (envelope-from ) for ; Sun, 31 Oct 2021 13:44:07 +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 92C0CB20B for ; Sun, 31 Oct 2021 14:44:07 +0100 (CET) Received: from localhost ([::1]:34408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhB82-0005sf-NJ for larch@yhetil.org; Sun, 31 Oct 2021 09:44:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhB7y-0005sH-Kx for guix-patches@gnu.org; Sun, 31 Oct 2021 09:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhB7y-0001C4-Cs for guix-patches@gnu.org; Sun, 31 Oct 2021 09:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhB7y-0000Yc-8D for guix-patches@gnu.org; Sun, 31 Oct 2021 09:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51307] [PATCH 0/2] guix hash: eases conversion Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 31 Oct 2021 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51307 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 51307@debbugs.gnu.org Received: via spool by 51307-submit@debbugs.gnu.org id=B51307.16356878322118 (code B ref 51307); Sun, 31 Oct 2021 13:44:02 +0000 Received: (at 51307) by debbugs.gnu.org; 31 Oct 2021 13:43:52 +0000 Received: from localhost ([127.0.0.1]:59271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhB7o-0000Y6-Au for submit@debbugs.gnu.org; Sun, 31 Oct 2021 09:43:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhB7m-0000Xt-Ls for 51307@debbugs.gnu.org; Sun, 31 Oct 2021 09:43:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53942) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhB7h-00006Q-6h; Sun, 31 Oct 2021 09:43:45 -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=lTep9BqyU2R/t502HFAh3Uu/B0z15E3T99VGInnn/kY=; b=P5og/NiFYPpuwgXQdMen ldMFkvjXVoUe+KRjfZfreHMJYQari3IZlFffLXlL7D1G0/OltZ7UzQXyQ/ul65OJWmk9M3BBj7qYy wNTtH05ZD9aweNhz267355AucKk/fySUOwppAnWl/RvcbwMvr9G/81t9Ix5p+Y5bVctrs8oOX/n57 GrlP65cnuK0+UEX0FwIqthEF+ffRTyPV+4sdnf5Sp6dKhS69d1AqKneGZPvv+qGOVj4J0L1YjY2sw XmmVU1zm6uFLX1b2611h9//FwsWAAKh4m0oLD5ZK2N81JVaumEijz//wKNlXqjiB/FiWzRtOOW879 HbcUn9Nd5HcUMw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55504 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhB7g-0007Y3-QG; Sun, 31 Oct 2021 09:43:45 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20211020165020.3358311-1-zimon.toutoune@gmail.com> <20211020165435.3358398-1-zimon.toutoune@gmail.com> <875ytetvt1.fsf_-_@gnu.org> <86cznmldv8.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 Brumaire an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 31 Oct 2021 14:43:41 +0100 In-Reply-To: <86cznmldv8.fsf@gmail.com> (zimoun's message of "Sat, 30 Oct 2021 17:40:59 +0200") Message-ID: <87tugxqpgy.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635687847; 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=lTep9BqyU2R/t502HFAh3Uu/B0z15E3T99VGInnn/kY=; b=CsD3qlwwzREXRfHlSzmSkV5ts156wTthQJNNbWcnkgeuNXtiB9RVMo02/kzzNITNBGQ1aD WBOWe6tJ1e3eaCvd8dogNCZzAw2Huylx6ESFZhetXuV3n4toC0kA9zvYAwzMfO9Tzz7sxB NaexOFQUJQRtSv5jtCuHqYeZnEjNviR5Xy0XhCrWEk9ahPoR8/1XJaQlptEDyYxyJkMWFw SEohHQIoPqxROF31NQKfYCjUDSZDZjrS1VxWJoq7B6yXr2DmJhnXGiEYkrtnBFQcsLhr1Q BHN2VCm3FwXzDhMtpP/+76AbgPqLdG3BC4Vl+wUAA0w8DDNmPkG7RG4EkiJF9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635687847; a=rsa-sha256; cv=none; b=RqdfF6zD1lb1VENsvb5le+8D5mJGb6qDVIAJodXiOtrh/rZB65D4Ks6pLLCxpCItA9cTaC 0gbOWcC2dUs53/i2+xM4gQ6Q3/FocWNodeOOmA3gYdHgRCAyNXpsDFG0j/VT9nJHuMEeJD sGLotHH4p9dDgwyFDo60ibgWIDRLk/ok2qVU/LApL5Mvk2iRek9Ax+bQqhv8FPvTluz1gK rg525iSOEAkdIt3mupwzDdi/IMdF5ZZoCZVnHf+XbGV/9udzfOz3CiFavPKp0ln0yM5bjS q8ndc665KUdoDs3vQxTbTyXbW6VXgKqZaowS3PPMxgFbxAoWkESAgoho7HENNw== 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="P5og/NiF"; dmarc=pass (policy=none) header.from=gnu.org; 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-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="P5og/NiF"; dmarc=pass (policy=none) header.from=gnu.org; 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: 92C0CB20B X-Spam-Score: -1.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: HIP5VOMnaHaV Hi, zimoun skribis: > On Sat, 30 Oct 2021 at 16:46, Ludovic Court=C3=A8s wrote: >> zimoun skribis: >> >>> * guix/scripts/hash.scm (guix-hash): Allow several files. >>> [directory?]: New procedure. >>> [file-hash]: Catch system-error. >>> [hash-to-display]: New procedure. >> >> Nice! Could you update guix.texi and tests/guix-hash.texi? > > I will once we agree and reach consensus. ;-) Apparently there=E2=80=99s consensus on this specific patch. >> This change is not related to the main purpose of the patch. >> >> More importantly, note that =E2=80=98--recursive=E2=80=99 is not limited= to directories: >> it preserves file properties (directory, executable, or regular), so >> it=E2=80=99s also useful for executable files for instance. It can also= be used >> for regular files, even if it=E2=80=99s less useful. > > I understand. Could you provide concrete examples when it is not > directory? In order to see if there is a pattern. See the executables used in (gnu packages bootstrap): to preserve their executable bit, you need =E2=80=98--recursive=E2=80=99. Same for symlinks. Anyway, this patch is about allowing for multiple arguments (which we agree on), so I think we should discuss the =E2=80=98--recursive=E2=80=99 i= ssue separately. Thanks! Ludo=E2=80=99.