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 qLzzELLQG2ceKQEAqHPOHw:P1 (envelope-from ) for ; Fri, 25 Oct 2024 17:09:06 +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 qLzzELLQG2ceKQEAqHPOHw (envelope-from ) for ; Fri, 25 Oct 2024 19:09:06 +0200 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=sprmxgo4; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=E+5KTaDG; 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=1729876146; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=P8r5xhKHehc6INwDem+Vj263eY82eBp+M5B7rLMreis=; b=qOVksbkd8qmoP8Qc3Zw20Uihasz6pRyKZkZqzlxejnQFj2Y7Igpia3VQY+TaWEJ9qTInkc MFhM3FBYrGaaIpyqJ+8lFaQCYKE3kVyElcLLBA92m3Ll3FHNYLM3xGKil1Lg30ShChod96 JEJfJqMSuDsUBJlJj/YzFuzlpqMRiy+HSgKQ4G3y2fRKjKPMVJo2v6tqGT1r3iwdpcocmr /S+LOUq9UawBkNiNx0mm+PXW6mTO9ysRVMSaMf0VhbxbkDH9btn3sJ/LHDB+3OyxcyCWra cJxM2JJHBUGfPxfS5PLsHVNxwnmdhjzYW0zhoALRRSc2hbXSLz8B8U/PdEUFQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sprmxgo4; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=E+5KTaDG; 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=1729876146; a=rsa-sha256; cv=none; b=P3l786qWNoGS3bw9sipJIrR62WCT/T3VMoO7T/pjA8evbtkWnDD/JH0dvJy8eV4Y5IUCFG iv/BkL6tpjVn8L813eTDthf4eOpWeZW9XR/RChp5lgqPtteP8Di2NBrpRefN9BMzW9//ZV Grf4mxnkPgtVGYt9Z4Q6Vi04ZXYxTx7rjmlbhBK8nWX/OvipKhSZS7YG0cNFk7lZ2iFhaR Kp31Vb04CHPZoFrmPMh3CpXTDPzHqna3UNdtAVe/GT7F30mO+YHqSmyi3D7FMeRA2xK5kx 0CQ/bJJxo9pmESbKfek5ucRFqxX4ekd1WNI2tABAY4/4I88TVprx0n9NO4pqmA== 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 0838983F01 for ; Fri, 25 Oct 2024 19:09:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4Nni-00083Y-Vp; Fri, 25 Oct 2024 13:08:39 -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 1t4Nnb-000837-Am for bug-guix@gnu.org; Fri, 25 Oct 2024 13:08:31 -0400 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 1t4Nna-0004eb-QQ for bug-guix@gnu.org; Fri, 25 Oct 2024 13:08:30 -0400 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:From:To:Subject; bh=P8r5xhKHehc6INwDem+Vj263eY82eBp+M5B7rLMreis=; b=sprmxgo4pSClA5x5EDQgfZHzF+ws+RHXyWLvxl01vbblUGJ3/iPaPyiACU184YWP7c/NpneaMjlJM8ugIMnyfRXnspreTYot+lxD/GqVbqKP7V3acgWnTP9OpvguTpbZv3NSvKyW1bibhdlRkVE26DmPaYnMEJU3B497XHsAnNDyig+w9Sb+ZJO2tZwaQVA1SswowNXFrct8N9uqw8q3wtrCF1DtGlOQEMUu2rB0X/Xy54tav3erFI32hCP25Lzj/Mn6whFDn9ziNTLtrNBLpYht7CiUlyOgjkkjvSef4Z4mbKIJqk1IEgbF0LCKl3WNLTVGVwFdGgMhjCki1pXyGg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t4No5-0006Uu-Ui for bug-guix@gnu.org; Fri, 25 Oct 2024 13:09:01 -0400 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: Fri, 25 Oct 2024 17:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74015 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74015@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172987614124971 (code B ref -1); Fri, 25 Oct 2024 17:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Oct 2024 17:09:01 +0000 Received: from localhost ([127.0.0.1]:39345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4No4-0006Ud-LK for submit@debbugs.gnu.org; Fri, 25 Oct 2024 13:09:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:49170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4No2-0006UU-2b for submit@debbugs.gnu.org; Fri, 25 Oct 2024 13:08:58 -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 1t4NnV-00082l-AG for bug-guix@gnu.org; Fri, 25 Oct 2024 13:08:25 -0400 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t4NnT-0004dl-El for bug-guix@gnu.org; Fri, 25 Oct 2024 13:08:25 -0400 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-539f72c913aso3027092e87.1 for ; Fri, 25 Oct 2024 10:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729876101; x=1730480901; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=P8r5xhKHehc6INwDem+Vj263eY82eBp+M5B7rLMreis=; b=E+5KTaDGRmn5RORSk2s/2rgBx0ZBkSrn2u/TLkUDIBXhPDvcjPT4FgNcRevZpISW65 gxc+BdeViMJLdjxQhxp0rP3ac0ilAWQW1wztsjK2zpLQp2I0MWssR03wV4TL5ERgPZe9 gw2BJPpWSSfmkx6wh+ovvqbZPKVBjrHghWpsTza3L//oUOYeJN3as0mM4KWUO0leUy58 +a4m3gnDctsIwk60ocxG+MDJrti7I29IMLtEZr32W6ivNQfO4XFCU3hKp8DLXfJ4HKwE 5yH4h5uocD9xiaTyYc+3fiYOIk6Nrz+2yccUgJzAhRwDq4FjQimRabOJE0Y7XBr83ETb yWmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729876101; x=1730480901; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P8r5xhKHehc6INwDem+Vj263eY82eBp+M5B7rLMreis=; b=XBc53eWWFSnuNyElpqQHnw5qUkC2kU86+Nlc/NyiQFBzGw276SPLLJxCD3KZXAx3KJ 9QnUFs66wOfAf1u9zlMsqPcGapXGHkFFaWeEisjny0W5GSyd9hEB//TIkgixAJdSeTqT NbnnQ9cYefVmuX/JCuApQpLM9Vv3MtjBbi8jtfGeoTNpTOzy/+1ruO7EAIjevE0HkW0B t8Yeywnp3qQmiUpIX37yniuQO/ggwsx9eBFaWn3FkvngbY8B7WHD7iYKCGrv+2Jr2AXN ck/t0TL9B9K8oFB1K6aaVByN+6J5GbuMAOrkvopcc7LGP/+5v7/qLaXK6ihnv1m5HTJg gUAw== X-Gm-Message-State: AOJu0YxB8hjOII4BcoT3tUgH4jIQju0ktv/6n3Tl6uPNF1PJW3GPWi0I 0CIsFjjXKsNA21OV5mS+Vwdj0gchbh8KtnENJgLO2K/fPyoaZgjmqeXUJg== X-Google-Smtp-Source: AGHT+IFwe6mdkY1fHPu7jDDHXu/8zKzqCP9yrC0uGSFPjT/3Vrx4SQvrPJlvAOEv6QqDjDo1f5pySw== X-Received: by 2002:a05:6512:1249:b0:539:e60a:6dd0 with SMTP id 2adb3069b0e04-53b23ea0162mr4148962e87.51.1729876100624; Fri, 25 Oct 2024 10:08:20 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4318b5431c9sm53651905e9.0.2024.10.25.10.08.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 10:08:20 -0700 (PDT) From: Simon Tournier Date: Fri, 25 Oct 2024 19:08:17 +0200 Message-ID: <87a5eshzzy.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::136; envelope-from=zimon.toutoune@gmail.com; helo=mail-lf1-x136.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: 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.31 X-Spam-Score: 3.31 X-Migadu-Queue-Id: 0838983F01 X-TUID: Mz67LwzBxHpN Hi, I notice this: --8<---------------cut here---------------start------------->8--- $ cat manifest.scm (use-modules (guix transformations) (guix packages) (guix download) (guix build-system r)) (define r-knitr (specification->package "r-knitr")) (define r-knitr-other (package (inherit r-knitr) (version "1.47") (source (origin (method url-fetch) (uri (cran-uri "knitr" version)) (sha256 (base32 "1kx6g8ddbigwx3bmq771gwi3din3fxjn59l801904kjaz6dq9pgs")))))) (define r-ggplot2 (package (inherit ((package-input-rewriting `((,r-knitr . ,r-knitr-other))) (specification->package "r-ggplot2"))) (name "my-ggplot"))) (define transform (options->transformation '((with-c-toolchain . "r-minimal=3Dgcc-toolchain@12") (with-c-toolchain . "r=3Dgcc-toolchain@12")))) (packages->manifest (append (map specification->package (list "python" "python-numpy")) (map transform (list (specification->package "r") r-ggplot2)))) $ guix shell -m manifest.scm --export-manifest guix shell: warning: transformation 'with-c-toolchain' had no effect on my-= ggplot@3.5.1. ;; What follows is a "manifest" equivalent to the command line you gave. ;; You can store it in a file that you may then pass to any 'guix' command ;; that accepts a '--manifest' (or '-m') option. (use-modules (guix transformations)) (define transform1 (options->transformation '((with-c-toolchain . "r-minimal=3Dgcc-toolchain@12") (with-c-toolchain . "r=3Dgcc-toolchain@12")))) (packages->manifest (list (specification->package "python") (specification->package "python-numpy") (transform1 (specification->package "r")) (transform1 (specification->package "my-ggplot")))) --8<---------------cut here---------------end--------------->8--- Well, this is incorrect. While I understand the approximation when dealing with profiles built over time in the imperative way, here I am missing why the transformation of =E2=80=99r-ggplot2=E2=80=99 is skipped. = And even the export manifest is broken. It=E2=80=99s skipped because: --8<---------------cut here---------------start------------->8--- $ guix shell -m manifest.scm $ grep ggplot $GUIX_ENVIRONMENT/manifest ("my-ggplot" "/gnu/store/x0jbmvg0nbl7lyk8zd938rq2c7c9qkn4-my-ggplot-3.5.1" --8<---------------cut here---------------end--------------->8--- Please note that if the symbol =E2=80=99r-ggplot2=E2=80=99 is not named =E2= =80=9Cmy-ggplot=E2=80=9D but kept as =E2=80=99r-ggplot2=E2=80=9C: (define r-ggplot2 ((package-input-rewriting `((,r-knitr . ,r-knitr-other))) (specification->package "r-ggplot2"))) then the bug is maybe worse because the exported manifest =E2=80=9Cworks=E2= =80=9D but without the transformation=E2=80=A6 which can be misleading and hard to det= ect. Well, I understand it=E2=80=99s hard to capture this kind of transformation. Still, it appears to me as an half-baked feature. :-) That=E2=80=99s annoying in some context as =E2=80=9Cguix pack --save-proven= ance=E2=80=9D [1]. Even, it defeats the idea of a self-contained reproducible binary container. ;-) Maybe, aside the profile =E2=80=99manifest=E2=80=99 file, we could store al= l 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. WDYT? Cheers, simon 1: https://hpc.guix.info/blog/2021/10/when-docker-images-become-fixed-point