From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 oOw3CeI7EGRALwEASxT56A (envelope-from ) for ; Tue, 14 Mar 2023 10:18:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cIsKCeI7EGQoKwAAauVa8A (envelope-from ) for ; Tue, 14 Mar 2023 10:18:26 +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 F319FEE9F for ; Tue, 14 Mar 2023 10:18:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pc0nE-0001lV-1e; Tue, 14 Mar 2023 05:18:04 -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 1pc0nC-0001lI-TT for guix-patches@gnu.org; Tue, 14 Mar 2023 05:18:02 -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 1pc0nC-0001RT-MY for guix-patches@gnu.org; Tue, 14 Mar 2023 05:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pc0nC-00030I-Gr for guix-patches@gnu.org; Tue, 14 Mar 2023 05:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62153] [PATCH 1/2] guix: docker: Build layered image. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 14 Mar 2023 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62153 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Tournier Cc: Josselin Poiret , Tobias Geerinckx-Rice , Oleg Pykhalov , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines , Mathieu Othacehe , 62153@debbugs.gnu.org Received: via spool by 62153-submit@debbugs.gnu.org id=B62153.167878544711498 (code B ref 62153); Tue, 14 Mar 2023 09:18:02 +0000 Received: (at 62153) by debbugs.gnu.org; 14 Mar 2023 09:17:27 +0000 Received: from localhost ([127.0.0.1]:36259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pc0mc-0002zO-ID for submit@debbugs.gnu.org; Tue, 14 Mar 2023 05:17:26 -0400 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pc0ma-0002zG-U4 for 62153@debbugs.gnu.org; Tue, 14 Mar 2023 05:17:25 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1678785436; cv=none; d=zohomail.com; s=zohoarc; b=jjreRIZwJl2TrrlaA0gKpkScZuFP162S8prxCAcyToKMrTg1r6zxIXaVqj/yr0Gm/ShqrsBIvJeBYDfW6EsKi6pnxQrmPbBehjvDknGcgP+G07StaPkbgl12HMDkAKJcs+P0/1nUlhgInLuhkWfQ0+VCh7py8gR8ykXMHRXg6ao= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678785436; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=OrKts9VUoJ0S3cB6l/6v4yQOPb82NROFl7WOB+bRVSU=; b=CB/Ut4DsgdU5QFbJj+MYG27aU0bzfPw63JH5a7fI7bEbjDD4xNobQ0FnSFujUCr+1gWGeL4013AfaSlr9eNsryV1L++ffCUfRvetdLG3vc1nqz0ceARC12+AZo+lMS7Z6+bAisGLRDUxJElUv4H3BZQm4UAa0ii66aJU2ECDddI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1678785436; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=OrKts9VUoJ0S3cB6l/6v4yQOPb82NROFl7WOB+bRVSU=; b=Cnm6bAKy9jtQNFKlt70iTaoOwgeFrf4ykc0MvDl1kclXe6K2XhilFoy+a4+xMgNn 8cmUfLrbnXzhdWqoR4yJ5AEfJ/fwThXOTZdUO2b93s7E95fYIJck2kPD984v8H7UaCw Chz+A0LRRt3KUnk3H/CgQ9xbTBVpDzpApyoPpqSg= Received: from localhost (175-109-142-46.pool.kielnet.net [46.142.109.175]) by mx.zohomail.com with SMTPS id 1678785433975291.00451690492855; Tue, 14 Mar 2023 02:17:13 -0700 (PDT) References: <20230313003012.14325-1-go.wigust@gmail.com> <20230313003310.17129-1-go.wigust@gmail.com> <87r0tsk85r.fsf@gmail.com> <87bkkw2w7z.fsf@gmail.com> <86cz5b923c.fsf@gmail.com> User-agent: mu4e 1.8.13; emacs 28.2 From: Ricardo Wurmus Date: Tue, 14 Mar 2023 10:15:49 +0100 In-reply-to: <86cz5b923c.fsf@gmail.com> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <874jqnzo8a.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=Cnm6bAKy; 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"; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1678785506; a=rsa-sha256; cv=fail; b=KAwwxPIJCayqvO3Oc13Wy9phJSYHyAKphf5WraO1OESrEvCuAapABXVtCXjjkdOf6pSvhJ KfGEilx1xs3CAAd3Fr10TBssrY2j7vmg4caIcsWaimOjywbrv77Xzzt5z62kqd/cKfp9jb T/AQOthv8HCJiH2aj+Ac0JFL56DRQKsBybuUt6MBTdA8jOFn/5cKDLxsklOiE3aDdWlUcB JxPTKnTrtoRNzVLTnpU4J9csXzaPdbXmygtYWHtN9QuuapWLUDx4AxXuxs4VD7d+P9Zwcp FBy1dqIIfuWAY6U7LW2azj06JuqB6+vnZu7WYzJFcr2pHCsOVLk+8uToar50HQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678785506; 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=OrKts9VUoJ0S3cB6l/6v4yQOPb82NROFl7WOB+bRVSU=; b=kKoDZaDdYW/YhiURucFXXrjv5LG58/k5oZK0l02qwD+FftXm5g2By4thNFNc2Z75e4Vxmd qiAvVNZKOUwWh9OcLkVsnj6ZBE1C5pZXmHh9vPzjWyEES104pEu8zMGQscrQ4exTwku3II 3uLulTRr4aCv8MXVn/XdiY8TSEgNdHlr8qpYmwrLY5CzJqc0Vtja+IqrOon8BTwbaGCMa1 CDz5jdTlzHBz4apgJ7Dv8GiZo92ZCokcMDAFe9awu8OUlt5gXYP+uGODbWy5W9EYM5dGAb FIeO4wzA49RiV7saHDc3ppNumiGVB6JTOO0frKwnji5jjCaeBkXrTaO3XiLfsw== X-Migadu-Spam-Score: 1.78 X-Spam-Score: 1.78 X-Migadu-Queue-Id: F319FEE9F X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=Cnm6bAKy; 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"; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}") X-TUID: HfYXyiZEAaLI Simon Tournier writes: >>> Instead of Python, would it possible to implement in Guile? I mean, >>> does Python have something that is missing in Guile? >>> >>> The facility for manipulating Tar? Something else? >> >> I think nothing else. As I understand Python implemented Tar inside the >> language itself in 2500 lines of code by manipulating binary data. >> >> /gnu/store/...-python-3.9.9/lib/python3.9/tarfile.py >> >> Technically it's probably possible to use tar utility with --append flag >> instead of opening a new file and streaming to it as the Python script >> does. To be honest I would like not to write it in this way if the >> Python script does not block current patch for merge. > > Ok, thanks for explaining. > >> Also I don't see myself writing Tar implementation in Guile, yet. ;-) > > Maybe not reimplementing Tar in Guile, maybe just enough for working. > Or maybe some Guile bindings. Or maybe something is already around for > the bootstrap story. gash-utils has (gash ustar); it=E2=80=99s about 620 lines of code. --=20 Ricardo