[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] doc: Clarify need to update search paths on foreign distro (
From: |
Matt |
Subject: |
Re: [PATCH] doc: Clarify need to update search paths on foreign distro (was Re: Feedback of the GNU Guix manual) |
Date: |
Fri, 10 May 2024 11:57:28 +0200 |
User-agent: |
Zoho Mail |
<div>
<br /> ---- On Tue, 07 May 2024 22:41:33 +0200 Vagrant Cascadian wrote ---
<br /> > On 2024-05-07, matt@excalamus.com wrote:
<br /> > > #+begin_quote
<br /> > > 6.7 L37 true for Guix System as well?
<br /> > > The result of running ‘guix pull’ is a “profile” available
under
<br /> > > ‘~/.config/guix/current’ containing the latest Guix. Thus,
make sure to
<br /> > > add it to the beginning of your search path so that you use
the latest
<br /> > > version, and similarly for the Info manual (*note
Documentation::):
<br /> > >
<br /> > > export PATH="$HOME/.config/guix/current/bin:$PATH"
<br /> > > export
INFOPATH="$HOME/.config/guix/current/share/info:$INFOPATH"
<br /> > > #+end_quote
<br /> > >
<br /> > > As far as I know, exporting like this is only necessary on
foreign distros.
<br /> > >
<br /> > > The attached patch makes this explicit. It also provides
information
<br /> > > for people unfamiliar with the concept of a "search path" or
how
<br /> > > shells work by suggesting the exports be added to .bashrc and
tries to
<br /> > > clarify the consequences of not doing this.
<br /> >
<br /> > If the foreign distro has /etc/profile.d/*guix.sh installed, as
<br /> > implemented in the binary guix-install.sh script and also
implemented in
<br /> > the Debian packaging, manually adding this is also arguably not
<br /> > necessary, unless they are using a shell that does not respect
<br /> > /etc/profile.d ... which, to my knowledge, is no different from Guix
<br /> > System really.
<br /> >
<br /> > There is also the issue of logging out and back in again (or
manually
<br /> > adding the variables for one session), but that seems a little
<br /> > tangential, and again, is no different for Guix System than on
foreign
<br /> > distros.
<br />
<br />Should we remove the advice to update search paths and instead explain
(IIUC) how guix.sh is added to /etc/profile.d? Basically, does the reader need
to take some action or is there some information about the system that would be
relevant for the reader regarding its use or maintenance?</div>