From unknown Fri Jun 13 10:43:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#47344] guix-cookbook : (Basic setup with mafinests) Resent-From: Fulbert Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Mar 2021 14:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47344 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 47344@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161651070827008 (code B ref -1); Tue, 23 Mar 2021 14:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Mar 2021 14:45:08 +0000 Received: from localhost ([127.0.0.1]:60936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOiHL-00071Y-La for submit@debbugs.gnu.org; Tue, 23 Mar 2021 10:45:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:48852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOiHJ-00071N-2d for submit@debbugs.gnu.org; Tue, 23 Mar 2021 10:45:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOiHI-0001Lu-Oo for guix-patches@gnu.org; Tue, 23 Mar 2021 10:45:04 -0400 Received: from vimdzmsp-sfwd02.bluewin.ch ([195.186.227.131]:55339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOiHG-0007Uk-I2 for guix-patches@gnu.org; Tue, 23 Mar 2021 10:45:04 -0400 Received: from bluewin.ch ([85.5.44.62]) by vimdzmsp-sfwd02.bluewin.ch Swisscom AG with ESMTPA id OiHDlSxLCIn7COiHElzmVb; Tue, 23 Mar 2021 15:45:00 +0100 X-Bluewin-Spam-Analysis: v=2.4 cv=daFFYVbe c=1 sm=1 tr=0 ts=6059feec a=bLoAJnPGBKLbGpzEBMhwHQ==:117 a=RhqaMz7EtA_yR4BBwmQA:9 a=QEXdDO2ut3YA:10 a=Q_hwkIaQF7DZ1ZajMcoA:9 a=JOWeiY5itpwPQvuQ8dm/GawRuwE=:19 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[85.5.44.62] Epoch[1616510700] X-Bluewin-AuthAs: fulbert@bluewin.ch Date: Tue, 23 Mar 2021 15:44:59 +0100 From: Fulbert Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="bNvcUvr18pO4B8TW" Content-Disposition: inline Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfKfe/2kVOBvHeMOU4JPSDp5ffsEPoY4rF7rCvoaL650EIawhKDiRiJB7B6FCXbigXHLibginGbJmD2ewKDBrwaDwQS+NTccRiG6YOshyvHmafq97enrg vyZNFg2RL4/1hFuvmb8UsrBEd0UR8YrmXFF2z8i9hpyed+Xw2o8BuvprFQ8JnPxDibY8x5F9ti3rYg== Received-SPF: pass client-ip=195.186.227.131; envelope-from=fulbert@bluewin.ch; helo=vimdzmsp-sfwd02.bluewin.ch X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --bNvcUvr18pO4B8TW Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit … with the patch this time ! Hello, I propose those changes to (Basic setup with mafinests) as they are more likely to produce the exptected result. Probably the `combined` search-paths profiles were not available at the time of writing this section ?! Although It works well for me, I'm not 100% sure it should make it to live guix-cookbook. Not sure either if filtering-out $HOME/.config/guix/current is necessary. Anyway, I thought it was worth proposing :) Best regards, Fulbert --bNvcUvr18pO4B8TW Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="guix-cookbook.texi.patch" Content-Transfer-Encoding: 8bit >From 352b4bbbec7acd51d01a05f11b0e59bbe8b2b2cb Mon Sep 17 00:00:00 2001 From: Fulbert Date: Tue, 23 Mar 2021 14:26:15 +0100 Subject: [PATCH] =?UTF-8?q?doc:=20cookbook:=20modify=20=E2=80=9Cenable=20a?= =?UTF-8?q?ll=20profiles=20on=20login=E2=80=9D=20examples.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * doc/guix-cookbook.texi (Basic setup with mafinests): “enable all profiles on login” examples changed from etc/profile sourcing to combined profiles eval's. --- doc/guix-cookbook.texi | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi index 1cddaa7faf..81339f16b3 100644 --- a/doc/guix-cookbook.texi +++ b/doc/guix-cookbook.texi @@ -2531,14 +2531,13 @@ although you'll probably have to filter out @file{~/.config/guix/current}. To enable all profiles on login, add this to your @file{~/.bash_profile} (or similar): @example -for i in $GUIX_EXTRA_PROFILES/*; do - profile=$i/$(basename "$i") - if [ -f "$profile"/etc/profile ]; then - GUIX_PROFILE="$profile" - . "$GUIX_PROFILE"/etc/profile - fi - unset profile -done +search_paths_profiles() @{ + for p in $(guix package --list-profiles); do + [[ "$p" != "$HOME/.config/guix/current" ]] \ + && echo -n "-p $p " + done +@} +eval $(guix package $(search_paths_profiles) --search-paths=suffix) @end example Note to Guix System users: the above reflects how your default profile @@ -2548,14 +2547,13 @@ Note to Guix System users: the above reflects how your default profile You can obviously choose to only enable a subset of them: @example -for i in "$GUIX_EXTRA_PROFILES"/my-project-1 "$GUIX_EXTRA_PROFILES"/my-project-2; do - profile=$i/$(basename "$i") - if [ -f "$profile"/etc/profile ]; then - GUIX_PROFILE="$profile" - . "$GUIX_PROFILE"/etc/profile - fi - unset profile -done +search_paths_profiles() @{ + for p in $(guix package --list-profiles); do + [[ "$p" =~ (my-project-1)|(my-project-2)|(…) ]] \ + && echo -n "-p $p " + done +@} +eval $(guix package $(search_paths_profiles) --search-paths=suffix) @end example When a profile is off, it's straightforward to enable it for an individual shell @@ -2575,8 +2573,11 @@ It contains the same variables you would get if you ran: guix package --search-paths=prefix --profile=$my_profile" @end example -Once again, see (@pxref{Invoking guix package,,, guix, GNU Guix Reference Manual}) -for the command line options. +Note that you can also use this option to compute +@emph{combined --search-paths} of several profiles, as illustrated in the +previous @samp{~/.bash_profile} example. + +Once again, see (@pxref{Invoking guix package,,, guix, GNU Guix Reference Manual}) for the command line options. To upgrade a profile, simply install the manifest again: -- 2.31.0 --bNvcUvr18pO4B8TW-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 23 11:06:37 2021 Received: (at control) by debbugs.gnu.org; 23 Mar 2021 15:06:37 +0000 Received: from localhost ([127.0.0.1]:60964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOic9-0007av-K1 for submit@debbugs.gnu.org; Tue, 23 Mar 2021 11:06:37 -0400 Received: from tobias.gr ([80.241.217.52]:48916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOic6-0007al-Va for control@debbugs.gnu.org; Tue, 23 Mar 2021 11:06:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=4d+WdVvDEYrnAGZzvpqBssK1JyjpnwWRXBVTBJE9jXo=; h=date:to:from; b=Le/ Fadjv3NVTW5tJdhHgBrgJ9FqtWF0nJ9wsLXnGBNTAls/hzx/Nazl1v4ZzmpzGHMStgexbB F6LSrEkns9Ya8t0i4oeQU9tJ87peUyEZfI3o0gEZDGb1ypHxZ5dhiA1U2zwMoSRc5aTOHf igDuEwN6eDbesoLNhWqh7w3xcyUlcMcQIsd0v2WtNfAIRFxbo9dyb5xMbz408l/0vkiR5H LDcnGU2t2L1cHkxbYRMzMzo0enkrC8ZSDhwj0Wa7fw83xP1hGH4fvlbncGkOT8w0IEYuE3 dT8fer8tLVmYTh5m6j5FLpujV5Bd8q/S3sUaiVXcZHNPsRvIIyiVLN4as/g== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 025d94b7 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO) for ; Tue, 23 Mar 2021 15:07:38 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: control@debbugs.gnu.org Date: Tue, 23 Mar 2021 16:06:32 +0100 Message-ID: <87y2ed7vuv.fsf@nckx> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) merge 47344 47343 From unknown Fri Jun 13 10:43:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#47344] guix-cookbook : (Basic setup with mafinests) Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Mar 2021 15:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47344 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Fulbert Cc: 47344@debbugs.gnu.org X-Debbugs-Original-Cc: 47344@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161651245930049 (code B ref -1); Tue, 23 Mar 2021 15:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Mar 2021 15:14:19 +0000 Received: from localhost ([127.0.0.1]:60988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOija-0007ob-KO for submit@debbugs.gnu.org; Tue, 23 Mar 2021 11:14:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:44958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOijX-0007oM-5u for submit@debbugs.gnu.org; Tue, 23 Mar 2021 11:14:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOijX-0008G4-1M for guix-patches@gnu.org; Tue, 23 Mar 2021 11:14:15 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:58970) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOijU-0007iI-2Y for guix-patches@gnu.org; Tue, 23 Mar 2021 11:14:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=J8cAprmQkr95AqS6n8/o85Pb0tq0dWYeiNBFp4sd5P4=; h=date:in-reply-to: references:subject:cc:to:from; b=jHKWODoMGJCHhPvF80f1nxkXPvkDyD/YZccEI SvWQmQoySWq+Ag/LTif3Tz2CK3r4iMwo584i29EAqbZQQt125uG9sXMJ34BLgS4xD9i0mq H+LGVGhTl8c0v7SIe1YCrLi//4Jar29k2o0iz+BedDPknB8BUzh2JSFZavEtYDayvseATF W84LnQvKGTAjTpGWD0ArOoG4bUd1OzY7f3U3GSeD3sBrUTpVfdh1sE9LfEcycBoRWcQ5ap 6vD0RzJwK1Yvatqef8NCGolkwApEtjej0XZTbTB80z23cxIp7PuYsO6jIlD0mtx+BwI+gb /xOxRIT0GR0RNj5gIGFT0p5pQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 0b64675c (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Tue, 23 Mar 2021 15:15:13 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice References: In-reply-to: Date: Tue, 23 Mar 2021 16:14:07 +0100 Message-ID: <87v99h7vi8.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Fulbert, Fulbert =E5=86=99=E9=81=93=EF=BC=9A > =E2=80=A6 with the patch this time ! Thanks! Every time you send a new mail to bug-guix@gnu.org it will create=20 a new bug number. In this case you accidentally created two bug=20 reports, [0] and [1]. No big deal, and I've merged them into one now, but make sure to=20 send replies to an existing thread to the correct=20 nnnnn@debbugs.gnu.org address. If you CC bug-guix@ in addition to=20 that, as some mail clients do by default, Debbugs will still know=20 what you mean. ...and since you seem to be interested in submitting patches=20 (yay!): This also applies to multi-patch series: if you send 5 patches to=20 bug-guix@ or guix-patches@, 5 separate issues will be created. In=20 that case, send a single cover letter to bug-guix/guix-patches@,=20 wait for Debbugs to respond with the bug number, then send the=20 actual patches to nnnnn@debbugs.gnu.org. Kind regards, T G-R [0]: http://issues.guix.gnu.org/47343 [1]: http://issues.guix.gnu.org/47344 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYFoFvw0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15ZusA/05rraEnEyWBpwKWylYEIc3b10jQQUaVx9poCaiK dUeuAP9cu4+Xj4S/ySs9QqAKFM6DZUDM8rH4ZarxvI0aHxs0Cw== =AG7S -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 13 10:43:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#47344] guix-cookbook : (Basic setup with mafinests) Resent-From: Fulbert Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Mar 2021 18:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47344 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Cc: 47344@debbugs.gnu.org Received: via spool by 47344-submit@debbugs.gnu.org id=B47344.161652362023261 (code B ref 47344); Tue, 23 Mar 2021 18:21:01 +0000 Received: (at 47344) by debbugs.gnu.org; 23 Mar 2021 18:20:20 +0000 Received: from localhost ([127.0.0.1]:32967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOldc-000637-DG for submit@debbugs.gnu.org; Tue, 23 Mar 2021 14:20:20 -0400 Received: from vimdzmsp-sfwd04.bluewin.ch ([195.186.227.132]:53388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOlda-00062r-TM for 47344@debbugs.gnu.org; Tue, 23 Mar 2021 14:20:20 -0400 Received: from bluewin.ch ([85.5.44.62]) by vimdzmsp-sfwd04.bluewin.ch Swisscom AG with ESMTPA id OldTl9KmD4QBHOldUlXijR; Tue, 23 Mar 2021 19:20:12 +0100 X-Bluewin-Spam-Analysis: v=2.4 cv=LICj/La9 c=1 sm=1 tr=0 ts=605a315c a=bLoAJnPGBKLbGpzEBMhwHQ==:117 a=IkcTkHD0fZMA:10 a=Q6xpxlOiw41UapokAfEA:9 a=QEXdDO2ut3YA:10 a=QYH75iMubAgA:10 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[85.5.44.62] Epoch[1616523612] X-Bluewin-AuthAs: fulbert@bluewin.ch Date: Tue, 23 Mar 2021 19:20:11 +0100 From: Fulbert Message-ID: References: <87v99h7vi8.fsf@nckx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87v99h7vi8.fsf@nckx> X-CMAE-Envelope: MS4xfPDcvF4SKTOTSTqkTJhcg9LRfcetWnSvbpw7Cv3h9lBYYnMNE2CZfi1SiKfKtkHnk9EMwjNxxO8bnLeAvsszHZdmHOIJedYl0MD2FBcONY57ncbR3SOP 0TO/IXXLfE39fVScuaISkXnyV9YtrDj0p/ee9qzjFIgS9AL1kKbiuA4Xr/vTyXGskjBkVqFr8HoJKM1tgNlmJzSI3xNpoPSJIwE= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Le Tue, Mar 23, 2021 at 04:14:07PM +0100, Tobias Geerinckx-Rice a écrit : > Hi Fulbert, Hello Tobias, and yes… sorry for the nooby mess :) as well as my thanks for the detailed instructions. Best regards, Fulbert