From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WCFYBhBHc2XIvwAAG6o9tA:P1 (envelope-from ) for ; Fri, 08 Dec 2023 17:40:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WCFYBhBHc2XIvwAAG6o9tA (envelope-from ) for ; Fri, 08 Dec 2023 17:40:48 +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 14A0E5D7E3 for ; Fri, 8 Dec 2023 17:40:47 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.net header.s=fm1 header.b=G7gHbfZN; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="S83m9/OL"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.net (policy=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=1702053648; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=mF3XehrAo1LAmNVhRVVH+kpuB5ILfbjRzLuljLobyDo=; b=i1FIbsihwXkwSKjSJ1mLAkJ/mbuYKdGhxaNubqizryFypNU/89FA6nQunF+Ah3VJxjjeMt SAe55KrRdwmaroY4NMIj+ePhWMJXShygb/60aaF1idzZQXKZ8Zod846J/RGMJilyHfA9Yv wcjPJX6tcFjlMWyAzyfysCg+gWNJrHkGsZWQW0QAUQlRsMcwFIJ73ChdUMMbBkwCCdYXHq S6TGnD+kqB/9/BKGOBws3dxJaCF/VA79bBO9iX2uXq4BErNNxLwxwmEEn2KPXUln7+hEQo Ki07iEY77BukyzdJNkLp/dTlkuapoRexVbOldK2fpzlf2Z9/GrrV+PWpNXVWIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702053648; a=rsa-sha256; cv=none; b=Ltitx6Snu6vzQPboIIFP7Gqbkd17KlkF9pY+WVXYO+Tb99Qf8I9bpy7cJh6k6ZGRRrbJP2 x/M8cKdMVJ0eEIaebk3vOAfJ3MjGwe6Cn4L8k1RJ2xt72E4xX5fnZno9QK3Hgxb3kWMvm7 3rDWkah3mS/lH6UlA8HTSeMikJwZ5OrmrZilX0Z2TCp6ff5QWkT3VLGBQhWfOMny1nVUWb SsO/CA6QALoKx6I5/hpT6kKTO04efXE9Tkpq/XIsGhm4mYcjJSqtVu9tuJ7okHq4/BbRdq ckEcJGuzw8/CCPU9hHHcgnlXRf4ZXGz92ZO+IV7/5xDvZu1XrLP6kC1lkVtdvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.net header.s=fm1 header.b=G7gHbfZN; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="S83m9/OL"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.net (policy=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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBdeD-0005Lt-CO; Fri, 08 Dec 2023 11:24: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 1rBdeA-0005LE-VG for guix-devel@gnu.org; Fri, 08 Dec 2023 11:24:15 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBde6-00058p-Mx for guix-devel@gnu.org; Fri, 08 Dec 2023 11:24:12 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 7022D3200A0B; Fri, 8 Dec 2023 11:24:07 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 08 Dec 2023 11:24:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm1; t=1702052646; x=1702139046; bh=mF 3XehrAo1LAmNVhRVVH+kpuB5ILfbjRzLuljLobyDo=; b=G7gHbfZNY2opqW/t2Y p0L+FO94+I1Yz8tslM4EFL5K3g2IZj8unXLQ0wfVp+kPqbd8MVfOzTHM5Xkf6XbX QlbYdpKHkm07V15KDe07SFBXh8tVnUFCloI4fDf7YgQp+2jyoCApH4XaCFOltnwO c8AOtHpnysNVwUA1uOFk9K9xUoWj58WkE4kV0dHg/hRfB4/uFLizi3id72+Z8nMh yalAknv+j3gJHY2/btPdRk2cCOv5LOBlW0nQ0rzWfGwpUTqBJEqGTj2pcljbM9me k5xRU1J1A4kFpzMuxSMoL7jBhuk6KLRAmSSar2jUvYF/AYkNN7gLjHVOWVGgLfD9 LVjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1702052646; x=1702139046; bh=mF3XehrAo1LAm NVhRVVH+kpuB5ILfbjRzLuljLobyDo=; b=S83m9/OLH/8aC3MbSkOk69sfS4BBm WVzb/t3XSPgcAw7KH0BJKiQTIfNxJBb0+7wdSmUgGufz4EsDqCIRqBF8EizLRHA8 PKLSOEyBYsL53x24PouD6jbW0SxrNnvk0zPn/1ppvA6ZEtZI2D4mhUzD+xVLFQbU utw/x664L2wX8n8lhDVSuFj4iN4KRFDz+Ru2QMlVcn5H+Xrj1eWRi8ArxXm727fh Uhg/FoGYnz033UO5iQc49cHCi1UWICjr2Y3SzUN7K3dIVBD4w7qqQLb/IUvl0a/H 1CrQayNZFpkOQrEkTCBGApw9j71E0Ttn/iZynllXa6X6zfYqlTTjg0osg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudekiedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfggtgfgsehtqhertddttdejnecuhfhrohhmpefmohhnrhgrugcu jfhinhhsvghnuceokhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvghtqe enucggtffrrghtthgvrhhnpefghfeuffehhfeugefhvdeugfekfeegudeltdehveehkeek fefftdehgeejjedufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth X-ME-Proxy: Feedback-ID: i184641e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Dec 2023 11:24:06 -0500 (EST) From: Konrad Hinsen To: Guix Devel Subject: What's the difference between a shell environment and a profile? Date: Fri, 08 Dec 2023 17:24:02 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.25; envelope-from=konrad.hinsen@fastmail.net; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.15 X-Spam-Score: -4.15 X-Migadu-Queue-Id: 14A0E5D7E3 X-TUID: uVWubuTm/HUk Hi Guix experts, While doing some software archeology, I ran into a behavior that I don't quit understand. First, I tested some Python 2 scripts in a shell environment: guix time-machine -C ./channels.scm \ -- shell --container \ python2 python2-mmtk python2-matplotlib \ --with-input=3Dpython2-numpy=3Dpython2-numpy@1.8.2 \ -- python Works fine. Next, I wanted to create a Guix profile with the same software, mainly to keep it in the store for long-term future use, surviving garbage collection: guix time-machine -C ./channels.scm \ -- package -p ./python2-profile \ -i python2 python2-mmtk python2-matplotlib \ --with-input=3Dpython2-numpy=3Dpython2-numpy@1.8.2 Guix wasn't happy at all with this: guix package: warning: Consider running 'guix pull' followed by 'guix package -u' to get up-to-date packages and security updates. The following packages will be installed: python2 2.7.18 python2-matplotlib 2.2.5 python2-mmtk 2.7.13 guix package: error: profile contains conflicting entries for glib guix package: error: first entry: glib@2.70.2 /gnu/store/64bdjb3nwdkadm= y5z2wph9cgqr0bwijm-glib-2.70.2 guix package: error: ... propagated from cairo@1.16.0 guix package: error: ... propagated from python2-pycairo@1.18.2 guix package: error: ... propagated from python2-matplotlib@2.2.5 guix package: error: second entry: glib@2.73.3 /gnu/store/kf488k7v0lc48= ylbs4xxpam0dbl3r4jl-glib-2.73.3 guix package: error: ... propagated from gobject-introspection@1.73.1 guix package: error: ... propagated from python2-matplotlib@2.2.5 hint: You cannot have two different versions or variants of `python2-matp= lotlib' in the same profile. In the end I did: guix time-machine -C ./channels.scm \ -- shell --container -r ./python2-profile \ python2 python2-mmtk python2-matplotlib \ --with-input=3Dpython2-numpy=3Dpython2-numpy@1.8.2 \ -- python which should have the effect I am looking for, but I don't understand how this differs from the "guix package" attempt that failed. The difference seems to be related to the =E2=80=93with-input transform, because I don't see what else could cause the "two different versions of python2-matplotlib" to be around. Any ideas? Cheers, Konrad