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 ms5.migadu.com with LMTPS id SAy0C3703mN27wAAbAwnHQ (envelope-from ) for ; Sun, 05 Feb 2023 01:12:46 +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 sFudC3703mOw7QAAauVa8A (envelope-from ) for ; Sun, 05 Feb 2023 01:12:46 +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 B7535A58E for ; Sun, 5 Feb 2023 01:12:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOSdp-0004IO-LG; Sat, 04 Feb 2023 19:12:21 -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 1pOSdo-0004IF-KU for help-guix@gnu.org; Sat, 04 Feb 2023 19:12:20 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOSdl-0007FM-P0 for help-guix@gnu.org; Sat, 04 Feb 2023 19:12:20 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D27D9240187 for ; Sun, 5 Feb 2023 01:12:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1675555934; bh=eEaPFwvdvx/xGsvxghL2iZriQjV2xfGcg4CEaQT37cY=; h=From:To:Cc:Subject:Date:From; b=RCl6po/InV5eE9tSncOJyiKa61O+rOPx555o+BUJAc7ptLDFLlZJAG7nPcunhuONZ ludqIrR1qdmcdQFMIzCZ0phItKUguXTJtgBtIYZ609HzGIF/P8Ylnn3mTLoiIno6tG aQ4bjwDhYv2xg73E5OGdV0PI9AQm2pwKuSbirdkNu/YEICIVimydYG87l4XPebjVL5 VKh8u0bTcavm4Y2i4LnMFVy8+TmQz22hdmChUPj9pZdYw0DMCbjguquqU3tP9bgqFD pHx2oLRQ5dX2m/GdsSE5uXtO/seBKMxoOwxYcze/xG5UqUJZYaKUMgNcIIQsqdgQs5 bc0bFQOJKkFXQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P8VFS3qcmz9rxB; Sun, 5 Feb 2023 01:12:12 +0100 (CET) References: <00645283-6540-ea05-aba2-8997d32b16c1@posteo.de> <87fscnis4q.fsf@gmail.com> From: Kyle Andrews To: Simon Tournier Cc: Gottfried , Csepp , Wojtek Kosior , help-guix@gnu.org Subject: Re: attempt to create a profile Date: Sat, 04 Feb 2023 23:36:36 +0000 In-reply-to: <87fscnis4q.fsf@gmail.com> Message-ID: <877cwx6kdh.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=kyle@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675555966; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=UEGA3U5ZbXU5Nvoncq5p9oKR/MrwB5xCUj3vW0+EdM8=; b=lFriKBTw7QKjgZ+E8+PSC02dPZgMCCSuGwHKJ8KQ3BMQjYiBq1HwcYu/+5D/zurGAFnvf4 WXvRILpE2728FLSebvTU9WlREDO5oV7vPqUvwder0nLSnjcTTQ7XXW+aWQ1Z8jBlsnlWHd AEDQHtS4zj6Ibfokz2UcUFKmP2JTrfiaOWO3k08IkdAPTK1i9EbOuEJAHg3nMZJRTd6K7t O87t45jo+V9m0LjQQvCealXmqQBzwXmrkDE+dCwYQXZGXb8SMiPUCMg/eDdyLbt+pNDb4b 6bhvzbSy/IJsucF6ugQAb/hnoTz3gb1TIhvsqb1DGnbG06fDuMh3MWOcCjzddQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="RCl6po/I"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675555966; a=rsa-sha256; cv=none; b=XHnizLxnxrPj0kjE1qlubIEUHeevF37uVrX32CVbMP3l1XOwokGXiDnOAON1RAgi9X2uzj JKGTKvIqib4OPGSpjEex2JTukYXUSxZBviRp9FqaPXR4nxwoKrJ42kaw9w2OCFC852592o fXuLizLaP4n6qiknIfCh5AdgdJ8794jneH4dzwXgijG0EDThAp3uE6ePuC7T/8k3v1w184 RZDZmvtaMpb3MXC+bvKfRD2CifLnYViEWN3TM8+/uDxXMhfgmXC3jAhbchyiuRNOzW5cIo 5gEc7HLL4heSzli+L11lITUPvw0G6AMUCRsJ9RdCCJdmWt79z73R9KL42fQczw== X-Migadu-Queue-Id: B7535A58E X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="RCl6po/I"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.85 X-Spam-Score: -6.85 X-TUID: ihSacydSSHvf Simon Tournier writes: > Hi, > > On Wed, 28 Dec 2022 at 15:09, Gottfried wrote: > >> Which commands can I use to enter and close my new profile? > > To enter, you just need to =E2=80=99source path/to/some-profile/etc/profi= le=E2=80=99. > > However, you cannot =E2=80=9Cdeactivacte=E2=80=9C; unset the environment = variables and > restore the previous ones. Maybe, the easiest is: > > bash > source path/to/some-profile/etc/profile > =E2=80=A6do some stuff=E2=80=A6 > exit > > Instead, you can run > > guix shell -p path/to/some-profile/etc/profile > =E2=80=A6do some stuff=E2=80=A6 > exit > > which does the same thing as above. > > >> ...and also at start up that I can choose which profile to open? > > What do you mean by =E2=80=9Cchoose=E2=80=9D? > > >> guix package --profile=3D/home/gfp/projects/musescore-3.6.2.guix-profile >> >> and beforehand I created the directory "projects" and >> "Musescore-3.6.2" in the directory "projects" >> in my /home/gfp/ directory >> (I did that because it said: " >> file or directory was not found" >> >> but it didn't work. >> "warning: nothing to do" was the answer. >> >> Where was my mistake? > > It is missing the option -i (or -m). For instance, > > guix package -i musescore -p projects/musescore-3.6.2.guix-profile > > > Cheers, > simon Thank you Gottfried for asking this question and thank you Simon for providing these examples. I didn't realize I could use guix shell with an already installed and named profile. This suggests a follow-up question: Is it possible to use guix shell to activate multiple existing profiles in a particular order to explicitly test for incompatibilities when combining profiles? I have been using multiple existing profiles mainly in the hope it would spare my poor underpowered and aging laptop the burden of having to do a long system update ordeal all at once. This seemed to me especially useful when there would be conflicts which would require uninstalling something and then redoing a lot of work. However, it has not worked out as well as I could have hoped. For one thing, I have found Emacs to be quite confused as to whether some documentation or command completions are available or not. For another thing, I found that if there was an explicitly recognized problem, it would usually be related to an issue with package definitions on my personal channel or in the main Guix channel and I would then have to run guix pull. After do that operation, I believed I would have to update everything again anyway. I had just read a discussion on this forum where it was mentioned that mixing guix executables from different guix generations would be asking for trouble and that the only way to make sure things would work correctly was to keep ~/.config/guix/current/bin~ at the front of our PATH. Maybe this is an example where this issue is relevant? I have had many issues which I have reported but these have all turned out to be unreproducible in a single dedicated profile. In conclusion, I'm a bit surprised that activating multiple profiles at once is so easily found and recommended in the cookbook. It seems to me like there are many underemphasized gotchas with respect to reproducibility and usability which come from it and as far as I can tell, the main developers of Guix do not use it that way. If it is going to be recommended as atleast a possibility for advanced users, then it would be nice to be able to formally test that usage through ~guix shell~.