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 ePa7EXxGK2R9fwEASxT56A (envelope-from ) for ; Mon, 03 Apr 2023 23:34:52 +0200 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 4PvgEHxGK2RRLQEAG6o9tA (envelope-from ) for ; Mon, 03 Apr 2023 23:34:52 +0200 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 0296C2BE40 for ; Mon, 3 Apr 2023 23:34:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjRoU-0006oS-Q3; Mon, 03 Apr 2023 17:34:06 -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 1pjRoT-0006np-4n for guix-devel@gnu.org; Mon, 03 Apr 2023 17:34:05 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjRnx-0001sB-QI for guix-devel@gnu.org; Mon, 03 Apr 2023 17:34:04 -0400 Received: by mail-wr1-x430.google.com with SMTP id d17so30760109wrb.11 for ; Mon, 03 Apr 2023 14:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680557612; x=1683149612; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1x7F/kr5TXm9qgpn9OL3qzx/54I8KICBK9Ao41jokro=; b=qGJqEdzgJh5ygpfdxGF0lsow2MduuFaWtHzy6VnPhgFxBvhIcIHa/RnQ/dsCXjJt2B rrqkluApgkZrajTe70pR7qOOzs5zDpQsMTIMNpOxJzLrDQNCX2GYUX+/s/RSbTUT/cvu 4VtrfatHipHdIIP56Ze2yfqaD6A9EHKxejRauHrsbZei805KJGr+GSsUYiA0NLMOuEJ2 QTMM+ZWYtF/58aquDIJSGLJQeinz4D+VnAcujLT+eZP8FFQzcs4HHp9kY72BVuOaW267 6UFTr85TVA5LUYX7Svn8W1OBqiEzoQFbmI8k+G/+Wh0rD65jDuT+zbQTFOB3L/pTtZaE yXZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680557612; x=1683149612; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1x7F/kr5TXm9qgpn9OL3qzx/54I8KICBK9Ao41jokro=; b=FN4j1Xto8kJSFYGYqjw5Da0jsPJb07BNJxcByKkh7xPkv+onEh2ywLsDFW5B5AZo0b 5h5GRMqTRTJ5lATcQvTBf9LgFRasSFhRv3PuR6p59I2e6S4WRiOz6pkIhCclTYMzxc3b 0TsdAYYjQQq6WhgWDXt1B+BslLvDQvEHPrOyrcCJpqKIMAnZ2bHiQsD6jku9/6W+RtSR adECNN2oxQGoR7byHVxn9hfFHFGGBY1k0tV0/J+MBQroqBKMWldPJGndEHSQGjvVgchH /4ImpDb/DvKmu7U6X9+rUnJ6yp9iWhSlb6wuaGPOu1G1DqwkPAtbaqxV1SBHlOmO+dZN w+KQ== X-Gm-Message-State: AAQBX9clzbMoGOGiyczoRsusQTGd7mAcluhxcw/8QIzL4689x4l4mHAH 6j1GLydFgB5dFEK8K26/7od7BRvu9RA= X-Google-Smtp-Source: AKy350YR1jcM8v0XsQXJTJXRzSLz/Noj/7oIQbcg5lvftl1hCQ86jOcNkKXWL7QL7eODn3XHVXl/zg== X-Received: by 2002:a5d:4681:0:b0:2e4:aa42:7872 with SMTP id u1-20020a5d4681000000b002e4aa427872mr4461wrq.4.1680557611970; Mon, 03 Apr 2023 14:33:31 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id q11-20020a5d574b000000b002c54c92e125sm10616284wrw.46.2023.04.03.14.33.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 14:33:31 -0700 (PDT) From: Simon Tournier To: Timothy Sample Cc: Guix Devel Subject: Re: disarchive: disassemble then assemble tarball In-Reply-To: <871ql0zpka.fsf@ngyro.com> References: <87sfdhf1w5.fsf@gmail.com> <871ql0zpka.fsf@ngyro.com> Date: Mon, 03 Apr 2023 23:08:47 +0200 Message-ID: <86v8icy8ps.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x430.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680557692; a=rsa-sha256; cv=none; b=jZ3iwKwyMPH92WYMEwroJuvVGXiJ2z5NgMbM4nNYx7hYgIzSz0+j761etYJ/WJmBipEjPm hUXMjECT321ZCfjmbQiZXpsMuBOmnAXB/NTQu5R0mQKbhffjrddWHFP1ZOQQyKegvjhws5 w7mAO2Z0W3bni84QnO5hbtTkX7tpM15CLA1ZevAhLG3oBagSy3hj0V7fkGMzr/HNAtUWB4 C6Ku6VVhdzRiJcqKgN9QcEMXGaqJ5aNJv052NLVvnDcuVmSIw723XGNBqCcvF463upNP4U Z6n7zaqDxxOFBG4qmU6PCBUESmjsfvwHCwxLvjdLjy6ELVkuPVqbbMylJmY66Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qGJqEdzg; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680557692; 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=1x7F/kr5TXm9qgpn9OL3qzx/54I8KICBK9Ao41jokro=; b=fhF7LtEOOuKHcizZTTW/swh7eEGr42Qp5d3oYFTGRfcUw0SGGuNj/cQrBaz191lUtuThXZ 10+SI9YtuC6o8Nef9LU8DaH2OlCtIFUlUdIVFV25xsgGFkY7ghi3Wa5IeBtFEJkUJQ+VAA /lx9s7M+WMVvZl1LJohP2DE028NxKAHhnzOnio2zkbohWjRdYGtVcsLPB4TVgHV+IPOw/B EUsJM1opfNhXMO5CSFx2O/FPGXMGSFb3Kgcxx577Ln4aT9fxhnRRYaf23JIC29C0soevHY pq2b31gKkfZqHfxa+BLII2OR00bKWix9dbuKHIK+OuGir45UNdcFbiYHjMaZ7g== X-Migadu-Spam-Score: -6.45 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qGJqEdzg; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Spam-Score: -6.45 X-Migadu-Queue-Id: 0296C2BE40 X-TUID: 7SqEQC1B9dd0 Hi, On Mon, 03 Apr 2023 at 14:19, Timothy Sample wrote: > The =E2=80=98assemble-tarball=E2=80=99 procedure assumes (without checkin= g) that it has > access to a copy of its input in the =E2=80=9Cworkspace=E2=80=9D director= y. Normally, > it would be called from the generic =E2=80=98assemble=E2=80=99 procedure,= which ensures > this (and also checks the output). It probably just wrote all the > tarball headers without the file contents, producing a corrupt tarball. > Indeed, if you set up logging (using =E2=80=98%disarchive-log-port=E2=80= =99) it prints a > bunch of =E2=80=9CIgnoring irregular file=E2=80=9D warnings. Ok, but I was expecting a kind of identity when composing =E2=80=99disassemble-tarball=E2=80=99 and =E2=80=99assemble-tarball=E2=80= =99. And even, that the identity properties of assembling some disassembling would be some tests. :-) >> Well, I am not sure to understand why the name =E2=80=9Cmy-gnu=E2=80=9D. > > It=E2=80=99s just =E2=80=98(basename "my-gnu.tar" ".tar")=E2=80=99. The = names are designed to > aid a human while debugging. To my knowledge, Disarchive doesn=E2=80=99t= use > them for anything. You can use set the name by passing =E2=80=9C--name= =E2=80=9D to the > =E2=80=98disassemble=E2=80=99 subcommand. Thanks for explaining. > In other words, it=E2=80=99s your old nemesis: > > https://lists.gnu.org/archive/html/guix-devel/2023-03/msg00063.html > > :) (I tease only because it=E2=80=99s confused me many times too!) Arf, probably because the behaviour appears to me unexpected. :-) Well, maybe some convention with trailing / would be helpful, as with =E2=80=99rsync=E2=80=99. Cheers, simon