From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2IWlBri1MGfkPgEAqHPOHw:P1 (envelope-from ) for ; Sun, 10 Nov 2024 13:31:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 2IWlBri1MGfkPgEAqHPOHw (envelope-from ) for ; Sun, 10 Nov 2024 14:31:36 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=aSpM1mwf; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ZsSNLWYl; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731245496; 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=xxebYpjU8FbOxLyfgbwSN6UV69iWRLq02S5hF3ig6AY=; b=oX7ug5zt37qI/7hqQGhPXFb4/Lpt9OIO59YKX2t5YmtTxyUghtbMxO26kWeRisZ1sTXVIP rQL2+FgGRtjqlrYTt6xBVj3inLpIRoztIeOn+KrYqeDXQhnJYxd9IpMQ+zamLHrvXeJ73C pbr6LIDCKBmOZPKTYd/gEfdAwJGeWBYfeMBxFk6CLpcIW8pR1at1Uq1O7f66OJNu0isgYu zQShz6iLcUtn7rnRgHedgh5P7PmqagiBLceKQkIL3D2lwWj7uMtfqbyglqI2FsZY5Du/Iw GiO3Wj3iXdFadFUYN6nlj9biwGFj1E1VQM3deBvtxJmPMwPVP7oWfD8JkYUqUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=aSpM1mwf; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ZsSNLWYl; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731245496; a=rsa-sha256; cv=none; b=PaLqw+qsqtNWU0tyaOctyLBiyGjXiDd8Rmj2TOFuPoMJutlDbSe1TgQvOMEPlV5zSD0lC8 F7N88db/LeaHPCPQBNO58lceypklnR/13VtskJmY9G+FhG+47u/B1POlYK5iMYnX3giDza iPF4xXrxN2mbrwP2P+kOrjgu4Y+7Ka0eO3M1Oun+3RGVFLP2aOrRJCfTmNOYtodig1lz4e cneP0+rX5eEAL29FXlHVJM7zfxv1W+KS5y7cNEjWBRSODHC2NHjJilTczQqK4l/Vi7M9LZ OrrCNT5eRg//Zo/uUVZqtbROd7loxdUY+d8iYwWg25/pM/HiPB4IDgi67A3ZMA== 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 C3A6880127 for ; Sun, 10 Nov 2024 14:31:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tA828-000487-Hk; Sun, 10 Nov 2024 08:31:17 -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 1tA81v-00045E-U1 for bug-guix@gnu.org; Sun, 10 Nov 2024 08:31:09 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tA81u-0005RK-Qi for bug-guix@gnu.org; Sun, 10 Nov 2024 08:31:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=xxebYpjU8FbOxLyfgbwSN6UV69iWRLq02S5hF3ig6AY=; b=aSpM1mwfxPY8jpQ5YpIkYTX20dgbqKymi/golmYBkVj28iB0KKIRR2/r4Jk9Qb/pBiD/v3ZTtPgoUcttnvL1MLNXvn55Tc1fZqtg5FkT6fS3usrhOf1Ofp9bQTIDZMNrcgoX6zoZI5zptEuDx//NWbxXvGLUd9AQUezNvd3pDV+LZMzHnxGihFmxK+t1Sjgk++QCVWBR7t/3EKy0/E+i1xyHK/bfqmDvaSKq67Kan/LWq3jEdqe0RfgjvZf7gDu8pSakJiw1dGk76gSTQurSyup/6EbX8l8JQKBFbO/hdAOnsJfoTgzOmNZd4GQ1AFxb77QajLLIF3woZrHs1qWMeA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tA81u-0001x4-8D for bug-guix@gnu.org; Sun, 10 Nov 2024 08:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74015: 'guix shell --export-manifest' fails for some transformations Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 10 Nov 2024 13:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74015 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 74015@debbugs.gnu.org Received: via spool by 74015-submit@debbugs.gnu.org id=B74015.17312454067079 (code B ref 74015); Sun, 10 Nov 2024 13:31:02 +0000 Received: (at 74015) by debbugs.gnu.org; 10 Nov 2024 13:30:06 +0000 Received: from localhost ([127.0.0.1]:56140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tA810-0001px-8K for submit@debbugs.gnu.org; Sun, 10 Nov 2024 08:30:06 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:59872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tA80x-0001nW-8y for 74015@debbugs.gnu.org; Sun, 10 Nov 2024 08:30:04 -0500 Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-431695fa98bso28129785e9.3 for <74015@debbugs.gnu.org>; Sun, 10 Nov 2024 05:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731245337; x=1731850137; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xxebYpjU8FbOxLyfgbwSN6UV69iWRLq02S5hF3ig6AY=; b=ZsSNLWYlKTzRgxQaEKT2gIVoizDs8pY+TC3pPNcEwt6ENwWklN4WdxHZ0GuoG9uSa+ IAHHVMbdmZJFRVqTZ92bU6Hi6YflWU7cINCY38RbzCVILU6TANUX/SYJQL/LF6+WPyPf kR5/iDjYS6URVIKHZ07PaqVBKRAn2MRHvIXlmPXurXvw7FAAy7D2JJGkTi3o4UpJBw2W 4BxmZEi+3DfcbHUj5ElIBBDfx6sB1I1Got2oAbyrTCbuxuzL4Y3D5FXmWgQWfczfDdHc +4O5KfaH12/lkKl0G1qptIU153oMnssHtSKzP522U+2A5v/cJj6+J9Sd0/fDUm7vfoCy 9vmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731245337; x=1731850137; h=content-transfer-encoding:mime-version:user-agent: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=xxebYpjU8FbOxLyfgbwSN6UV69iWRLq02S5hF3ig6AY=; b=XlWPp+OOzptNDkZQnh+1hIaz0EYYzp9hYNm5DOhO2ZrlMRFyn0lTI0sP1pdAomJPPB aYtX2a2pZe+WVJPoBCrcbh1SpyeXgP+Gjp5zepIvTUkxGyhbPYY/8VBUIljpSHJZFhlu X3XKNRl1YLn2AvW3uoIX+qZAn18wuy89G+fqfm03vHMZmzg0ZdZCN/vCV/OIk7GXSL8v OkqyBevFyJuBeLMWMftzkuJeEQcalERXAIys2M1SPhM9ft+N/+cSa+81IeGYTQ4B9zmX ZFrY11m54bHiJThiPmYzKMUwrqJexVGU/R0NQ2y7s85MYyXETrs9S2L+C6L5Ty+aAHZn YR8g== X-Gm-Message-State: AOJu0Yyx6GS8vLbJrT2ujMk4EXKvxdzlg/cj/pJTLTpS1/lDB9R5Y4tz YtTYAm05f+nZ/B/gEGZ3C+GLMR80mj/t0foMtiJHB7jB7otVD8avHs2DNQ== X-Google-Smtp-Source: AGHT+IFOtmGUk9NBL2NsXXyJpmfoaW8MtNeW5ELhGKlHoMV7HQUhUdetZAUhuAA2uDGlxjBDO+S3sQ== X-Received: by 2002:a05:600c:3ca4:b0:42c:a6da:a149 with SMTP id 5b1f17b1804b1-432b751839dmr81620125e9.25.1731245337189; Sun, 10 Nov 2024 05:28:57 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:fea9:2cfd:bf40:8f0a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432aa74abb9sm182345415e9.42.2024.11.10.05.28.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 05:28:56 -0800 (PST) From: Simon Tournier In-Reply-To: <87v7wvwc6t.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 10 Nov 2024 12:38:50 +0100") References: <87a5eshzzy.fsf@gmail.com> <87v7wvwc6t.fsf@gnu.org> Date: Sun, 10 Nov 2024 14:06:16 +0100 Message-ID: <87serzxmpj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 3.56 X-Spam-Score: 3.56 X-Migadu-Queue-Id: C3A6880127 X-TUID: y2pSVDljnCWv Hi, On Sun, 10 Nov 2024 at 12:38, Ludovic Court=C3=A8s wrote: >> $ guix shell -m manifest.scm --export-manifest > > =E2=80=98--export-manifest=E2=80=99 is meant to =E2=80=9Ctranslate=E2=80= =9D a command line, which it can > do faithfully; there=E2=80=99s no way it could possibly =E2=80=9Crecreate= =E2=80=9D what > =E2=80=98manifest.scm=E2=80=99, which may contain arbitrary Scheme code (= and someone who > already has a =E2=80=98manifest.scm=E2=80=99 file probably doesn=E2=80=99= t need > =E2=80=98--export-manifest=E2=80=99). Yes, one might need. :-) As I explained: =C2=AB That=E2=80=99s annoying in some context as =E2=80=9C= guix pack --save-provenance=E2=80=9D [1]. Even, it defeats the idea of a self-contai= ned reproducible binary container. =C2=BB For sure, I understand it=E2=80=99s hard to capture this kind of transforma= tion. Still, an improvement appears to me possible (see below). 1: https://hpc.guix.info/blog/2021/10/when-docker-images-become-fixed-point > It=E2=80=99s necessarily a lossy process. This is where I disagree. :-) I mean, yes I agree that building profile/manifest is somehow a lossy process because some Scheme is potentially evaluated on the road. However, I am proposing: Aside the profile =E2=80=99manifest=E2=80=99 file (lossy process), we could store all= the manifests provided by the command line. Something as: /gnu/store/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-profile/manifest /gnu/store/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-profile/manifest.orig1 /gnu/store/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-profile/manifest.orig2 =E2=80=A6 where manifest.orig1 and manifest.orig2 are the copy of files =E2=80=99foo.= scm=E2=80=99 and =E2=80=99bar.scm=E2=80=99 from: -m foo.scm -m bar.scm This way, the option --export-manifest could be improved, eventually. In other word, I think that saving as-is the manifests costs almost nothing and it paves the way to more robust self-contained binary packs. Well, maybe this extra work could be only done when there is an option =E2=80=99--save-provenance=E2=80=99 applied. > I would close it as not-a-bug; WDYT? I still think it=E2=80=99s a feature that it=E2=80=99s possible to improve. Cheers, simon