From unknown Tue Aug 19 07:28:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#38391 <38391@debbugs.gnu.org> To: bug#38391 <38391@debbugs.gnu.org> Subject: Status: Issues with Environment Variables Reply-To: bug#38391 <38391@debbugs.gnu.org> Date: Tue, 19 Aug 2025 14:28:42 +0000 retitle 38391 Issues with Environment Variables reassign 38391 guix submitter 38391 anon987321 severity 38391 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 26 14:36:14 2019 Received: (at submit) by debbugs.gnu.org; 26 Nov 2019 19:36:14 +0000 Received: from localhost ([127.0.0.1]:52974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZgd9-0000RW-4R for submit@debbugs.gnu.org; Tue, 26 Nov 2019 14:36:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:42338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZfLx-0006o0-1G for submit@debbugs.gnu.org; Tue, 26 Nov 2019 13:14:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53317) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZfLv-0007gy-Ea for bug-guix@gnu.org; Tue, 26 Nov 2019 13:14:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZfLu-0003PC-0h for bug-guix@gnu.org; Tue, 26 Nov 2019 13:14:19 -0500 Received: from mx1.cock.li ([185.10.68.5]:47057 helo=cock.li) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iZfLt-0003No-Eq for bug-guix@gnu.org; Tue, 26 Nov 2019 13:14:17 -0500 From: anon987321 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firemail.cc; s=mail; t=1574792054; bh=JRUYHONGdZWkzOx5hF2ZirEsPKCsfh9tH08H21Nk3H8=; h=From:To:Subject:Date:From; b=kxUf5UYB8+Z4vXbQ8X8YQB8IM4Ewq/Dh0fR6pJfU0QNfYCM9lRL8pTtQRg1w8Z+mw pU4UiOonoD1CYJdZatq5Mk/V8OBjnWjmWwNGbEPrtRzdYCdy65z22bNqNYlOU0TV4/ OQ6Hgbw7i8vnP/e8yjCD0/QEF7Xhmw8m3ad6DbUEf6Tx1bQJO1d6yBSSRBv7WDP9Rj D6rDm3D5YDam1Ogu52jJUkJEkSaJpfrdk9TMqiLZX5tG/9WXsjvtz1y+Xce9RyilaT 7+bwHskV8UJVr3S+hWpnBS4vpDUcQ8TH5nTl+lDbax5xdHeuudEv8XYjSRjMce3W0X T4TcZsADEIGSg== To: bug-guix@gnu.org Subject: Issues with Environment Variables Date: Tue, 26 Nov 2019 15:14:10 -0300 Message-ID: <87eexumrnx.fsf@firemail.cc> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.10.68.5 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 26 Nov 2019 14:36:10 -0500 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 (--) I have had a few issues with environment variables with Guix under Ubuntu 18.04 lately. The issue with locales isn't fixed with only $ guix install glibc-locales $ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale but rather, also requires $ export LANG=en_US.UTF-8 $ export LC_ALL=en_US.UTF-8 This issue was actually messing up with some programs installed with Guix. The Perl binary wouldn't work at all until i added those variables. 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 Then, a bit later, i had another issue. I use Stumpwm, and it stopped working because SBCL started complaining that $XDG_DATA_DIRS was set to ~/.guix-profile//share (yes, double /), and it wanted an absolute path. Again the PATH i had set up "~/.guix-profile/share" was correct, but ~/.guix-profile/etc/profile was setting up another hash path that messed up with SBCL. After i removed the `source ~/.guix-profile/etc/profile` entry from my .profile, with a bit of work, i got stump working again (probably would have fixed the issue with GNU Global). My $GUIX_PROFILE is set to /home/user/.guix-profile I am currently not sourcing ~/.guix-profile/etc/profile, and instead exporting the variables by hand on my .profile. It seems to work correctly this way, but is not intuitive, and the original way caused lots of issues. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 28 10:04:34 2019 Received: (at 38391-done) by debbugs.gnu.org; 28 Nov 2019 15:04:34 +0000 Received: from localhost ([127.0.0.1]:58984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iaLLN-0003cV-Vw for submit@debbugs.gnu.org; Thu, 28 Nov 2019 10:04:34 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:48975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iaLLL-0003cH-15 for 38391-done@debbugs.gnu.org; Thu, 28 Nov 2019 10:04:32 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9C9272258A; Thu, 28 Nov 2019 10:04:25 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 28 Nov 2019 10:04:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=j/wIFw07iKhGzuppQuRLZ8ihMY Pyys1hAuAtjdni1U4=; b=aBDvDk5x0Qd+MVhlIJmURj95TTDgoZog6UEDGIVeJG bTH7A5R/aiI/ezfg7NNAlJtZHfh5Uy9i+PeH/XCv8oXh/JaRnuqBduEJoGN3mbvz y3Ep3Buy+SQW5ds3xhOpxRo542QNN+H1EgheRn+PXBLfyCMz6jTDlAcULPkOxVTW WDA66I+QFO2pCWn5pQ/63kB6MZYxtZo3diVK2oW0gIQEOZvPCTB0F0zkEqVsPcW/ pwigzt2x8swMOES6Qy7ho21lelnf0bDQUPkeKtH3H+ChegwjZ6mp/pvsmikKtWfn 3PG/ce+Y7x36jd1Wpkw7L7K67KjN3yFHVtkM+t0sUxgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=j/wIFw 07iKhGzuppQuRLZ8ihMYPyys1hAuAtjdni1U4=; b=MBoZp1HF8kMucZiT+glp/O 95lNCPeArVmRc11YK8/dZ/N4Yo9hTnI3fPWvb2KoZ7c2FoOtfj/zVkclGNwxuP7b YPotqD4RS6Ac5/sJ6cSFBdPBA29T0g6kfvYxfVxTDnBifpSv+4+j7RecU0r4d2o6 6X51ofyXVdFyCB7Ztba7PCbMaC/8SU2cviqoaVA59wGSct1F71SIjDIHFUbAjBCV lmx+tF95wv26GoNZUcmG8epomQnJkYhhCW0JtYjTJoEqchVQCP+kMdzUNIGLjAUe K6/hpeOkJS0iqZVUfxhCKg2/dKe9Z7eQr9dr58gT3+XjkIYs6em06kVKcNJKdZ7g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeijedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedmnecujfgurhephffvuf gjfhgffffkgggtsehgtderredtredtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcu oehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhmqeenucfkphepkeegrdehvddrvddvie druddtvdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghi lhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (84-52-226.102.3p.ntebredband.no [84.52.226.102]) by mail.messagingengine.com (Postfix) with ESMTPA id F36DD3060074; Thu, 28 Nov 2019 10:04:24 -0500 (EST) From: Marius Bakke To: anon987321 , 38391-done@debbugs.gnu.org Subject: Re: bug#38391: Issues with Environment Variables In-Reply-To: <87eexumrnx.fsf@firemail.cc> References: <87eexumrnx.fsf@firemail.cc> User-Agent: Notmuch/0.29.2 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Thu, 28 Nov 2019 16:04:21 +0100 Message-ID: <874kyo6o0a.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 38391-done 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 (-) --=-=-= 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----- --=-=-=-- From unknown Tue Aug 19 07:28:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 27 Dec 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator