GNU bug report logs -
#34486
[PATCH 0/1] Add '--inherit' to 'guix environment'
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Fri, 15 Feb 2019 10:44:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Sat, 16 Feb 2019 01:05:17 +0100
with message-id <87imxkion6.fsf <at> gnu.org>
and subject line Re: [bug#34486] [PATCH 0/1] Add '--inherit' to 'guix environment'
has caused the debbugs.gnu.org bug report #34486,
regarding [PATCH 0/1] Add '--inherit' to 'guix environment'
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
34486: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34486
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hello,
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.
Thoughts?
Ludo’.
Ludovic Courtès (1):
environment: Add '--inherit'.
doc/guix.texi | 21 ++++++++++++--
guix/scripts/environment.scm | 53 +++++++++++++++++++++++++-----------
tests/guix-environment.sh | 15 +++++++++-
3 files changed, 69 insertions(+), 20 deletions(-)
--
2.20.1
[Message part 3 (message/rfc822, inline)]
Hello,
Ricardo Wurmus <rekado <at> elephly.net> skribis:
> Ludovic Courtès <ludo <at> 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:
>
> #!/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"
Oh so I guess this is an improvement. :-)
Pushed as e6e599fa0106f57b9de15f90dcab3795ff1575b6.
> I guess the only thing that’s missing now is to activate an installed
> environment.
Something beyond --search-paths and etc/profile, right? I’m not sure
what it would look like.
Thanks for your feedback David & Ricardo!
Ludo’.
This bug report was last modified 6 years and 74 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.