From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#38391: Issues with Environment Variables Date: Thu, 28 Nov 2019 16:04:21 +0100 Message-ID: <874kyo6o0a.fsf@devup.no> References: <87eexumrnx.fsf@firemail.cc> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42427) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaLLu-0003m7-74 for bug-guix@gnu.org; Thu, 28 Nov 2019 10:05:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaLLt-0003vM-1E for bug-guix@gnu.org; Thu, 28 Nov 2019 10:05:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53011) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaLLr-0003lN-Lw for bug-guix@gnu.org; Thu, 28 Nov 2019 10:05:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaLLq-0003dI-2N for bug-guix@gnu.org; Thu, 28 Nov 2019 10:05:02 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87eexumrnx.fsf@firemail.cc> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: anon987321 , 38391-done@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi anon987321 (if that is your real name), anon987321 writes: > I had two issues caused by ~/.guix-profile/etc/profile. First, Emacs's > Semantic mode started having issues with GNU Global (both Emacs and > global were installed with guix). It would complain about not knowing > where global were located, with `/bin/bash global No Such File or > Directory`. I did `which global`, revealing it was under > /gnu/store/*hash*-global-6.6.3/bin/global. It seems Emacs didn't work > well with looking for global directly under /gnu/store. I did set my > $PATH to ~/.guix-profile/bin, but sourcing ~/.guix-profile/etc/profile > caused it to add a /gnu/store/*hash*-profile to my $PATH, and this > caused issues as the path wouldn't change even if i tried changing > generations for my profile, doing rollbacks and all. If i tried to > remove global, it would still be there under the same hash which was on > $PATH, and Emacs would only work correctly if i launched it without > sourcing ~/.guix-profile/etc/profile. I ended up removing guix > completely and reinstalling it in order for it to fix If you set GUIX_PROFILE=~/.guix-profile before sourcing the profile, the exported variables will refer to that instead of just the _current_ generation (at the time of sourcing). It's not very obvious, improvements to the manual are welcome. :-) This topic is better suited for help-guix@gnu.org, so I'm closing the bug report. Hope this helps, Marius --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl3f4fUACgkQoqBt8qM6 VPrXlAf9HTT9+22HDvxVsuJcg1ILG+21/jFuECGjSe/XIBmJMNzTsN1I9KosqFNk ifu4TUdcxqjopqbZJQB1su+Isavml/RbAhJd/4zF/TJSxgTlWwxSX7x3gLAAerVW WNgJF/82zpt2Gz5UslnWSGv3oLAuKiW06AXT9PS74CX5Ez4hOyn//SwcBFn7avIK 2pjk5A3bBQCPN+jo5agb+w78m/Yns7auTmuaz4iQpLEP/X6hpC3YDrQwet37Alkv 5S8UO9J9op7ceDwoH2sisUFmulRrYdT6jtK+BxP/rhln5t65pbTd118RIDGg9gW7 Ztk0V0HgcKJKW5M4WrD9ulo+T3f5OQ== =ujU1 -----END PGP SIGNATURE----- --=-=-=--