From: Ricardo Wurmus <rekado@elephly.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 34486@debbugs.gnu.org
Subject: [bug#34486] [PATCH 0/1] Add '--inherit' to 'guix environment'
Date: Fri, 15 Feb 2019 15:54:33 +0100 [thread overview]
Message-ID: <87va1lrtjq.fsf@elephly.net> (raw)
In-Reply-To: <20190215104257.16275-1-ludo@gnu.org>
Hi,
Ludovic Courtès <ludo@gnu.org> writes:
> This new option allows to specify additional variables to be inherited
> in a “pure” (semi-pure?) environment.
>
> The main motivation was the use of the SLURM batch scheduler, which
> defines environment variables that you need to preserve so that things
> like ‘mpirun’ work correctly.
Looks good to me. The same is needed for Grid Engine. Previously I
would use “env” with an installed profile for the same effect:
--8<---------------cut here---------------start------------->8---
#!/bin/bash
profile=/path/to/.guix-profile
exec /bin/env - PATH=/opt/uge/bin/lx-amd64 \
SGE_CELL=default \
SGE_ARCH=lx-amd64 …
GUIX_LOCPATH=… \
/bin/bash --init-file "$profile/etc/profile"
--8<---------------cut here---------------end--------------->8---
I guess the only thing that’s missing now is to activate an installed
environment.
--
Ricardo
next prev parent reply other threads:[~2019-02-15 14:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-15 10:42 [bug#34486] [PATCH 0/1] Add '--inherit' to 'guix environment' Ludovic Courtès
2019-02-15 10:49 ` [bug#34486] [PATCH 1/1] environment: Add '--inherit' Ludovic Courtès
2019-02-15 14:34 ` Thompson, David
2019-02-15 14:54 ` Ricardo Wurmus [this message]
2019-02-16 0:05 ` bug#34486: [PATCH 0/1] Add '--inherit' to 'guix environment' Ludovic Courtès
2019-02-16 9:12 ` [bug#34486] " Ricardo Wurmus
2019-02-19 14:33 ` Thompson, David
2019-02-16 16:23 ` Eric Bavier
2019-02-18 22:16 ` Ludovic Courtès
2019-02-20 17:00 ` Ricardo Wurmus
2019-03-04 10:10 ` Ludovic Courtès
2019-03-04 11:01 ` Ricardo Wurmus
2019-03-04 11:14 ` Ludovic Courtès
2019-03-04 11:19 ` Ricardo Wurmus
2019-03-04 14:24 ` 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=87va1lrtjq.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=34486@debbugs.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.