From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: "The following environment variable definitions may be needed" Date: Tue, 09 May 2017 22:53:06 -0700 Message-ID: <87lgq5p8al.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8KYn-0007jK-T3 for help-guix@gnu.org; Wed, 10 May 2017 01:53:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8KYk-0007TS-Q8 for help-guix@gnu.org; Wed, 10 May 2017 01:53:17 -0400 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:36367) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8KYk-0007TE-KY for help-guix@gnu.org; Wed, 10 May 2017 01:53:14 -0400 Received: by mail-pf0-x229.google.com with SMTP id m17so10746703pfg.3 for ; Tue, 09 May 2017 22:53:14 -0700 (PDT) Received: from garuda (c-24-18-189-215.hsd1.wa.comcast.net. [24.18.189.215]) by smtp.gmail.com with ESMTPSA id x5sm2806825pfd.94.2017.05.09.22.53.11 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 May 2017 22:53:11 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Sometimes, when you install a package, you get a message like this: =2D-8<---------------cut here---------------start------------->8--- [0] marusich@garuda:/tmp $ guix package -p test-profile -i guile The following package will be installed: guile 2.2.2 /gnu/store/5zx29y44nrqj0s8h3jlvlj82k8hj4dxs-guile-2.2.2 1 package in profile The following environment variable definitions may be needed: export PATH=3D"test-profile/bin${PATH:+:}$PATH" [0] marusich@garuda:/tmp $=20 =2D-8<---------------cut here---------------end--------------->8--- Up until now, I've always added the recommended export statements to my ~/.bashrc or ~/.bash_profile. I (mistakenly?) assumed that's what the message was really telling me to do. However, I've just learned that these recommended variables also appear to get exported in $GUIX_PROFILE/etc/profile, which is automatically sourced by /etc/profile on GuixSD. Even on a foreign distro, $GUIX_PROFILE/etc/profile is automatically sourced if one follows the guidance in the manual ((guix) Binary Installation): =2D-8<---------------cut here---------------start------------->8--- Source =E2=80=98etc/profile=E2=80=99 to augment =E2=80=98PATH=E2=80=99= and other relevant environment variables: # GUIX_PROFILE=3D$HOME/.guix-profile \ source $GUIX_PROFILE/etc/profile =2D-8<---------------cut here---------------end--------------->8--- This leads to my question: If I'm using GuixSD (or a foreign distro in which $GUIX_PROFILE/etc/profile is automatically sourced), do I need to add these recommended export statements to my ~/.bashrc or ~/.bash_profile? My suspicion is that the answer is "no". The next time I reboot or log out and back in, the environment variables will be set correctly even if I don't add them to my ~/.bashrc or ~/.bash_profile. In fact, by adding them there, I would be adding redundant entries. I am hoping that someone can confirm that my understanding is correct. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlkSqsMACgkQ3UCaFdgi Rp3THg/+PIOicZWfbVfKlB9UEpCEx+V5untqtbTKZGXgHpjUPDlrL/LZv6oMiUlP cQmvmHjjmluZokdd5J9BTbq31OO0NNZohmiYCmGvRWixrR4Asx6mNN6Ls+noTjjY PKmwOP+OwESyDpXQVdtCfLvH1aXj6CcgiKSY7U432Twp+VEivjWjlYVhQYYck7aM yoi1GHVcJfKCKqF801CgoYk6fWWkPFx/R9qu5CRpoqIcMHcAHdnkhV/epKyWyshr 1lSTeUVBipkszyrMqnE3CLeJBwRt2btPOEf0KVouySkqOq8P09XYVGU/5m6WiKIG XxqgkTTB4iN5+0InCuEq7ySutByOhmBvNxPq26wv9r/uJexF/0C9i8pRNZd/PdxT d9VD8j03BLQFYRjgLJ0w73TbU2hQEnQpwyboUP3YQU1+mO9OUYa6G5n7ILYA8e9d IhvkLbN/qhaMRJKyZEdvydHZy8E1hHlx9rPFhghJ6n8WdFZ+Sayw3zdlr7EhCK1h Mas/h8Gp3iEoiOc8XmiKqPC8QJ4NaCUdveWOfeWePRC9a0L5vzXzNviFC28y0kda 5v2q/imOAZS61+uZrHO0TOCeaGqPgEeLWq1fTnPs5KTBii/zYnFb4zsGQnm7/ltr k8G6yzFzKHG55JPP2BSIVk3+mLQkdZ8cel4m53oQAbUPXF0Ytyg= =hJ0B -----END PGP SIGNATURE----- --=-=-=--