From: "Gábor Boskovits" <boskovits@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Environment variables in Guix and GuixSD
Date: Tue, 6 Nov 2018 12:38:34 +0100 [thread overview]
Message-ID: <CAE4v=piZJdq-zTZett7Thr0UZFy8=Z2=HESmzydGamsABOuWkQ@mail.gmail.com> (raw)
In-Reply-To: <877ehq5tmq.fsf@gnu.org>
Hello Ludo,
Ludovic Courtès <ludo@gnu.org> ezt írta (időpont: 2018. nov. 6., K, 12:32):
>
> Hello,
>
> swedebugia <swedebugia@riseup.net> skribis:
>
> > I noticed during my years of reading this list that difficulties
> > stemming from wrong environment variables or lack of knowledge of the
> > importance of these is VERY common among (new) guix users.
> >
> > To help everyone I wonder if it is possible for Guix to automatically
> > register all these suggested changes to variables that happen after
> > installing a package and check whether the user did his job of
> > managing this correctly and help if not.
>
> Upon completion, ‘guix package’ tells which additional environment
> variables may need to be defined. There’s also ‘guix package
> --search-paths’ and the generated ‘etc/profile’ file.
>
I have seen in the /etc/profile file that it suggest you to do something like
source $GUIX_PROFILE/etc/profile.
This causes problems on systems where the startup file is executed by
a posix /bin/sh, as this is bash specific.
Any reason not to use
. $GUIX_PROFILE/etc/sh
instead in that hint?
(I noticed this on debian, .xsessionrc is using /bin/sh to interpret
this when starting up the x session, and that defaults to dash
on debian and derivatives.)
> Do you think we need something in addition to this?
>
> I was under the impression that Guix does better than the alternatives
> when it comes to environment variable settings, but of course, I’m
> biased. ;-)
>
> Thank you,
> Ludo’.
>
Best regards,
g_bor
next prev parent reply other threads:[~2018-11-06 11:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-04 7:13 Environment variables in Guix and GuixSD swedebugia
2018-11-06 11:32 ` Ludovic Courtès
2018-11-06 11:38 ` Gábor Boskovits [this message]
2018-11-07 21:55 ` Ludovic Courtès
2018-11-08 7:02 ` Gábor Boskovits
2018-11-09 13:49 ` Nils Gillmann
2018-11-11 13:26 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAE4v=piZJdq-zTZett7Thr0UZFy8=Z2=HESmzydGamsABOuWkQ@mail.gmail.com' \
--to=boskovits@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.