From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0BWGDHvPJGB6JQAA0tVLHw (envelope-from ) for ; Thu, 11 Feb 2021 06:32:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MEtUCHvPJGBxTgAA1q6Kng (envelope-from ) for ; Thu, 11 Feb 2021 06:32:27 +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 57C27940463 for ; Thu, 11 Feb 2021 06:32:26 +0000 (UTC) Received: from localhost ([::1]:45682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lA5Wb-00081h-6o for larch@yhetil.org; Thu, 11 Feb 2021 01:32:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lA5Vx-0007vW-7l for guix-devel@gnu.org; Thu, 11 Feb 2021 01:31:45 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:37064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lA5Vv-0007id-K4; Thu, 11 Feb 2021 01:31:44 -0500 Received: by mail-wm1-x332.google.com with SMTP id m1so4209079wml.2; Wed, 10 Feb 2021 22:31:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=KshN2NAmXkQpGoVaVz80ugOxkJ1XQr4nTdlkV6Iqh0w=; b=V2OAajuHoXhbDbXgs2/WWf9pFvMihE8ccrfJaFHg+LdCKa2NJTTgkGfEq1/aUivrEM Fsvso6JsUiHFOjtXAS6Myge1bTF37O9xdX0TyZxXo6pah6Fv1DCSmhuxTKaS/XIQ1oP9 U07G7GZynaKQKc9KbF//3SSRJQQB8qgNCBBFOO2OJxaeg5t3bgLFyIRXluyqiii7IXqY O8k2gN76bE3Gbq3J6IqGZTUBkrMPUdida8jy38RgqoK1eMUxRA0Sx/QpZtzkx00VwI/j PKjggAZRntrEjV5rhV50g15f2XaUp9thj7CM5MLGquNGFOs9VmkRaQ/2/Y1YaB4I7+jb wcrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=KshN2NAmXkQpGoVaVz80ugOxkJ1XQr4nTdlkV6Iqh0w=; b=a+nj9jrgdZaIEelmtG0I203LmNNANmwFm80qgPT70PdTPF3ZUfQa259FUA0bpxHNvS Di+jHcDyBpvSec4uy14EvhukYZhVnb6KzsouyvzT9FbLVyVxQnxXjrc+b80xUXlif2pN ckz9vprApZOpGW3WAJrLSIQp9uNg/bqkV2FjK0t88qvz8/IUEJuzBeo0RZsb41l3l71t ZOoZMEUd9RdG6K9d+x7w8ln5RHrmWsUFURD2ja6zOyYbH6+EHoUiGeFHHwxmEBhabwzp hsi36Xz1h1hNlZFosCJ0EW1UBfNcA3Q+WvanAA4ST9s5hf3eXBHS5hYoGNUyUBZJhEGZ XaNg== X-Gm-Message-State: AOAM531AC/LbZHKnWcutj4aRWowkGqIhzywfHpZgEL/MXK9j5y1Ipess Lfp+tZ5kNEXPwBYOfHfoifFfSQhgPH4= X-Google-Smtp-Source: ABdhPJyYX14UCBYr0aFOXH56jnHZ7/UNiqDW/m5MtAqD2gX+2shWew5aCLuN8Dgwe/eorRqoHEw9OA== X-Received: by 2002:a1c:9a12:: with SMTP id c18mr3330443wme.146.1613025101369; Wed, 10 Feb 2021 22:31:41 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id s64sm8221949wms.21.2021.02.10.22.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 22:31:40 -0800 (PST) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Unexpected --export-manifest with simple transformations In-Reply-To: <87sg63zfvp.fsf@gnu.org> References: <868s7wbt6d.fsf@gmail.com> <87sg63zfvp.fsf@gnu.org> Date: Thu, 11 Feb 2021 06:33:45 +0100 Message-ID: <86k0rf9nie.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::332; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x332.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.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=V2OAajuH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 57C27940463 X-Spam-Score: -1.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: ASWwlXCwkhSx Hi Ludo, On Thu, 11 Feb 2021 at 00:01, Ludovic Court=C3=A8s wrote: > That=E2=80=99s because when using =E2=80=98-m=E2=80=99, transformations a= re not recorded. Yes. The question is: is it a conscientious choice or a missing feature? It makes sense to save the transformations from a manifest, IMHO. But it is not clear what should be the good solution for that because it is not easy for the general case; from my understanding. For instance, one could easily imagine this (restricted) typical manifest with transformation, --8<---------------cut here---------------start------------->8--- (use-modules (guix transformations)) (define transform1 (options->transformation '((with-c-toolchain . "hello=3Dgcc-toolchain@10")))) (packages->manifest (list (transform1 (specification->package "hello")) (specification->package "python-numpy") (specification->package "python"))) --8<---------------cut here---------------end--------------->8--- should record the transformation in /manifest. Motivated by 1. consistency with the =C2=ABequivalent=C2=BB command-line and 2. the use-= case =E2=80=9Cguix pack -f docker --save-provenance -m=E2=80=99. Other said, the option =E2=80=99-m + --export-manifest=E2=80=99 should be a= fixed-point, IMHO.=20 For example, =E2=80=99package->manifest-entry*=E2=80=99 is "Like 'package->manifest-entry', but attach PACKAGE provenance meta-data to the resulting manifest entry." (I have not tried.) Therefore, we could have something similar with =E2=80=99options->transform=E2=80=99, i.e., att= ach somehow meta-data. Well, because the feature is missing, the story about #2 is incomplete. And I would like to have a self-reproducible Docker image produced by =E2=80=98guix pack=E2=80=99. This =E2=80=9Cmissing feature=E2=80=9C, is it a conscientious choice or an = use-case not thought yet? WDYT? Cheers, simon