From: John Kehayias via Guix-patches via <guix-patches@gnu.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 60112@debbugs.gnu.org, jman <srht@city17.xyz>
Subject: [bug#60112] [PATCH] website: Add post about guix shell fhs option.
Date: Thu, 05 Jan 2023 21:03:29 +0000 [thread overview]
Message-ID: <878rigk82r.fsf@protonmail.com> (raw)
In-Reply-To: <87pmbs3de0.fsf_-_@gnu.org>
On Thu, Jan 05, 2023 at 10:00 PM, Ludovic Courtès wrote:
> Hi jman,
>
> jman <srht@city17.xyz> skribis:
>
>> Hello and sorry for getting into this comment thread.
>>
>> I have posted a few days ago a question about preserving env vars
>> when creating a container with FHS emulation:
>> <https://lists.gnu.org/archive/html/help-guix/2023-01/msg00002.html>
>
> The ‘PATH’ environment variable, and only this one, is overridden
> unconditionally when using ‘--emulate-fhs’; quoth ‘environment.scm’:
>
> (when emulate-fhs?
> ;; When running in a container with EMULATE-FHS?, override $PATH
> ;; (optional, but to better match FHS expectations), and generate
> ;; /etc/ld.so.cache.
> (setenv "PATH" "/bin:/usr/bin:/sbin:/usr/sbin")
> (invoke "ldconfig" "-X"))
>
> Other variables are preserved, as in this example:
>
> $ FOO=bar guix shell -CF -E ^FOO coreutils -- env | grep FOO
> FOO=bar
>
> HTH!
>
> Ludo’.
Now filed by jman as <https://issues.guix.gnu.org/60566> after discussion on #guix. I think it is a bug (say you want to preserve PATH as you have some scripts in ~/.local/bin for example) and I have a patch to fix. I'll send it to that bug and CC you (Ludo’) as well.
John
next prev parent reply other threads:[~2023-01-05 21:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 23:39 Drafting a Guix blog post on the FHS container Jim Newsome
2022-12-19 21:28 ` Ludovic Courtès
2022-12-23 2:04 ` Csepp
2022-12-26 5:36 ` John Kehayias
2023-01-04 17:47 ` John Kehayias
2023-01-04 18:07 ` Jim Newsome
2023-01-04 18:16 ` John Kehayias
2023-01-04 18:18 ` [bug#60112] " jman via Guix-patches via
2023-01-05 21:00 ` [bug#60112] [PATCH] website: Add post about guix shell fhs option Ludovic Courtès
2023-01-05 21:03 ` John Kehayias via Guix-patches via [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-12-16 7:27 John Kehayias via Guix-patches via
2022-12-25 23:58 ` Ludovic Courtès
2023-01-03 22:54 ` Ludovic Courtès
2023-01-03 23:07 ` John Kehayias via Guix-patches via
2023-01-04 10:31 ` Ludovic Courtès
2023-01-04 17:43 ` [bug#60112] [PATCH v2] " John Kehayias via Guix-patches via
2023-01-04 18:23 ` [bug#60112] [PATCH v3] " John Kehayias via Guix-patches via
2023-01-06 12:49 ` [bug#60112] [PATCH] " 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=878rigk82r.fsf@protonmail.com \
--to=guix-patches@gnu.org \
--cc=60112@debbugs.gnu.org \
--cc=john.kehayias@protonmail.com \
--cc=ludo@gnu.org \
--cc=srht@city17.xyz \
/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.