From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4AZxEfY0K2QR7wAASxT56A (envelope-from ) for ; Mon, 03 Apr 2023 22:20:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MLJ1EfY0K2QqpQAA9RJhRA (envelope-from ) for ; Mon, 03 Apr 2023 22:20:06 +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 0F23B353E4 for ; Mon, 3 Apr 2023 22:20:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjQeV-0005my-Cy; Mon, 03 Apr 2023 16:19:43 -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 1pjQeU-0005mq-Fa for guix-devel@gnu.org; Mon, 03 Apr 2023 16:19:42 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjQeS-0008CG-2r for guix-devel@gnu.org; Mon, 03 Apr 2023 16:19:42 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id E1A5D32009B8; Mon, 3 Apr 2023 16:19:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 03 Apr 2023 16:19:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1680553175; x= 1680639575; bh=4BoXfKQmab8G+a/F5ijr4UCGqslVD7q9P5LUbf4oceA=; b=o LA3l7oT0ROxto9kiHjYNiAmgUI6iZL68PK0YDZpSNa46gplVMqSn8m5ZWCQmcjBx OJKUQvlHuC0OIDoBKkYI2x0C1ZgJNOSq8XTiFIXSdkUIjFn8vwyZq7Knb5mywUlP BDpFlulLzAPRx2hZx+nAxqejimBnfcgT3Xo03JAJcXqkL3+E9nEAWao5AohAxiqJ kcnmoYz06yP1m0HJGbgsGyNqhSjQGtIUH/KWAIBkOt1wO7KktvyD316cLHtfyIsS yCfm+tAtDdVM+WPOkYtCF4X929Fas7ZfMXXhp2dpZE6G3JxXUDR9V4yeCnHNAkl0 PhKCznJLJTwvW8qsPxPPQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeijedgudeglecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufhffffkfgggtgfgsehtqhertddtreejnecuhfhrohhmpefvihhm ohhthhihucfurghmphhlvgcuoehsrghmphhlvghtsehnghihrhhordgtohhmqeenucggtf frrghtthgvrhhnpeefvddtgfdvtdetvdeuieelkeevtedtjeeugeehueeigfelkeffleeg vdevuedthfenucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmphhlvghtsehnghihrhhordgtohhm X-ME-Proxy: Feedback-ID: i4721425c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Apr 2023 16:19:34 -0400 (EDT) From: Timothy Sample To: Simon Tournier Cc: Guix Devel Subject: Re: disarchive: disassemble then assemble tarball References: <87sfdhf1w5.fsf@gmail.com> Date: Mon, 03 Apr 2023 14:19:33 -0600 Message-ID: <871ql0zpka.fsf@ngyro.com> 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 Received-SPF: pass client-ip=64.147.123.19; envelope-from=samplet@ngyro.com; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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: 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=1680553206; a=rsa-sha256; cv=none; b=oTOk/7TKJCshynv8Yxa5NkTLb839I6O61BG9yOGwyE9ORGnLeAAwXaAt4brTCN8HXC/IY+ Wmj1Ya5k3ns87TiSZCIsytGdrYh97bI/CPYyNQbCZQ/mdCajtxO25DEplNDPZ210hjxK23 R3uujWIs/zn75H/zguGWa59yeIVPKWaE0SgvoJKWlN/vm7YG8y5ZFIcstZRc2JfI0M+aef XCGW+ft3M90K5a9jjypHDHpsMlw3p3x4OkL/qn1mLF8fI+DxK5FdpFXtIqPRF/5cbCG9z2 FPJxxo1JF3cPfQte5bqwC8JGHJzQ3WdEzntP6w6lUHpDa9RxT/KlKOIwcsfF7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="o LA3l7o"; dmarc=none; 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=1680553206; 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: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4BoXfKQmab8G+a/F5ijr4UCGqslVD7q9P5LUbf4oceA=; b=TXc4yGMnUTOHJWa82n/aQZiiKO1ksQ5uf9v2knF4hpLUpejpclljHW33CJaXb4cCS7vgo+ xjMiKYw4R4mW6c+C68yBH5F5EksvC+6erUhgav2vGfhxM3LbHRuOGC/S/jQwReDl6OnycL ngLZkcXuTy6MnVqCIr+/9yIsYmNTGsGaJUNFv1MYkm3V7LV+pz9wUM5l/okWtEjYUVXuoO 7uDZOXEVclCcvJah8DI7eYSsjiEsDAQuyc8+CIWButVTnxiz9wFE6aVT50u+b8TMvyWGmR g9kAduxlGGmcR+5ogaPv6lkwKIZah0TZd7+q36P/EC2OrA+N52z64ZACH2Z71Q== X-Migadu-Spam-Score: 0.88 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="o LA3l7o"; dmarc=none; 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: 0.88 X-Migadu-Queue-Id: 0F23B353E4 X-TUID: 8PVHsd5Yu3Kv Hi Simon, Simon Tournier writes: > Discussing in #62153 [1], it is noticed that Disarchive is not working > as expected. To be fair, Oleg is experimenting with reusing some internal Disarchive code in another context. That experiment didn=E2=80=99t go well, and Oleg = came to a good (IMO) conclusion: try the tarball code from Gash-Utils. (The longer story is that the tarball code in Disarchive is nicer, but it is specialized for the Disarchive use case. Sometime I might de-specialize it and use it in Gash-Utils, but Gash-Utils has difficult constraints due to its use during bootstrapping. We=E2=80=99ll see.) > scheme@(guile-user)> ,module(disarchive assemblers tarball) > scheme@(disarchive assemblers tarball)> (assemble-tarball (disassemble-t= arball "my-gnu.tar") ".") > > [...] > > $ tar tf sha256/7a94f577d3235a5ab954f0bc56b15fbe5518c56354c4235574618= f6e666f6a38 > > [...] > > gnu/build/accounts.go > tar: Unexpected EOF in archive > tar: Error is not recoverable: exiting now The =E2=80=98assemble-tarball=E2=80=99 procedure assumes (without checking)= that it has access to a copy of its input in the =E2=80=9Cworkspace=E2=80=9D directory.= Normally, it would be called from the generic =E2=80=98assemble=E2=80=99 procedure, w= hich 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. > 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 na= mes are designed to aid a human while debugging. To my knowledge, Disarchive doesn=E2=80=99t u= se 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. > And then I do not understand how to use =E2=80=9Cdisarchive assemble=E2= =80=9D; I get > something like: > > Checking my-gnu digest... fail > Output is incorrect > > What do I do wrong? You need to put =E2=80=9Cgnu=E2=80=9D in a directory by itself. First, $ mkdir base Then either $ mv gnu base/ or $ tar -C base -xf my-gnu.tar Then you can run $ disarchive assemble base spec 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!) -- Tim