Received: (at 47344) by debbugs.gnu.org; 23 Mar 2021 15:14:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 23 11:14:15 2021 Received: from localhost ([127.0.0.1]:60985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lOijX-0007oL-46 for submit <at> debbugs.gnu.org; Tue, 23 Mar 2021 11:14:15 -0400 Received: from tobias.gr ([80.241.217.52]:48924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <me@HIDDEN>) id 1lOijS-0007o6-08 for 47344 <at> debbugs.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 <me@HIDDEN> To: Fulbert <fulbert@HIDDEN> Subject: Re: [bug#47344] guix-cookbook : (Basic setup with mafinests) References: <YFn+6820/lIMD2+I@HIDDEN> In-reply-to: <YFn+6820/lIMD2+I@HIDDEN> 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" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 47344 Cc: 47344 <at> debbugs.gnu.org, guix-patches@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) --=-=-= 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@HIDDEN 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 <at> 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 <at> 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----- --=-=-=--
guix-patches@HIDDEN
:bug#47344
; Package guix-patches
.
Full text available.Received: (at submit) by debbugs.gnu.org; 23 Mar 2021 15:14:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 23 11:14:18 2021 Received: from localhost ([127.0.0.1]:60988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lOija-0007ob-KO for submit <at> 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 <me@HIDDEN>) id 1lOijX-0007oM-5u for submit <at> 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 <me@HIDDEN>) id 1lOijX-0008G4-1M for guix-patches@HIDDEN; 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 <me@HIDDEN>) id 1lOijU-0007iI-2Y for guix-patches@HIDDEN; 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 <me@HIDDEN> To: Fulbert <fulbert@HIDDEN> Subject: Re: [bug#47344] guix-cookbook : (Basic setup with mafinests) References: <YFn+6820/lIMD2+I@HIDDEN> In-reply-to: <YFn+6820/lIMD2+I@HIDDEN> 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@HIDDEN; 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-Debbugs-Envelope-To: submit Cc: 47344 <at> debbugs.gnu.org, guix-patches@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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@HIDDEN 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 <at> 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 <at> 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----- --=-=-=--
guix-patches@HIDDEN
:bug#47344
; Package guix-patches
.
Full text available.Tobias Geerinckx-Rice <me@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 23 Mar 2021 14:45:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 23 10:45:08 2021 Received: from localhost ([127.0.0.1]:60936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lOiHL-00071Y-La for submit <at> 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 <fulbert@HIDDEN>) id 1lOiHJ-00071N-2d for submit <at> 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 <fulbert@HIDDEN>) id 1lOiHI-0001Lu-Oo for guix-patches@HIDDEN; 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 <fulbert@HIDDEN>) id 1lOiHG-0007Uk-I2 for guix-patches@HIDDEN; 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@HIDDEN Date: Tue, 23 Mar 2021 15:44:59 +0100 From: Fulbert <fulbert@HIDDEN> To: guix-patches@HIDDEN Subject: guix-cookbook : (Basic setup with mafinests) Message-ID: <YFn+6820/lIMD2+I@HIDDEN> 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@HIDDEN; 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-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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 <fulbert@HIDDEN> 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--
Fulbert <fulbert@HIDDEN>
:guix-patches@HIDDEN
.
Full text available.guix-patches@HIDDEN
:bug#47344
; Package guix-patches
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.