GNU bug report logs - #22514
Missing environment variables when logging in via SSH

Previous Next

Package: guix;

Reported by: myglc2 <myglc2 <at> gmail.com>

Date: Mon, 1 Feb 2016 04:44:01 UTC

Severity: normal

Merged with 22175

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: myglc2 <myglc2 <at> gmail.com>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 22514 <at> debbugs.gnu.org, request <at> debbugs.gnu.org
Subject: bug#22514: emacs INFO pages have "?"s instead of "'"s
Date: Tue, 02 Feb 2016 23:22:22 -0500
ludo <at> gnu.org (Ludovic Courtès) writes:

> retitle 22514 Missing environment variables when logging in via SSH
> merge 22513 22175
> thanks
>
> myglc2 <myglc2 <at> gmail.com> skribis:
>
>> In emacs INFO pages, single quotes "'" appear as question marks "?" and
>> 'echo $LANG' returns a blank line.
>>
>> I am running guixSD on a headless server & logging in via the iTerm2
>> terminal emulator running on Max OS X... e.g. 'ssh' & 'emacs -nw'
>
> This bug is due to <http://bugs.gnu.org/22175>, which appears to be
> fixed by the patch below (I tested it in a VM.)
>
> Could you confirm that it works for you?

Yes, that fixes it here. Thank you.

> You would need to apply the
> patch with ‘patch -p1 bugfix.patch’ in a fresh checkout of Guix, and to
> run ‘./configure && make && ./pre-inst-env guix system reconfigure’ from
> there.
>
> TIA,
> Ludo’.
>
> diff --git a/gnu/system.scm b/gnu/system.scm
> index b4264fe..59fc20c 100644
> --- a/gnu/system.scm
> +++ b/gnu/system.scm
> @@ -465,6 +465,17 @@ else
>    export PATH=\"$HOME/.guix-profile/bin:$PATH\"
>  fi
>  
> +# Since 'lshd' does not use pam_env, /etc/environment must be explicitly
> +# loaded when someone logs in via SSH.  See <http://bugs.gnu.org/22175>.
> +# We need 'PATH' to be defined here, for 'cat' and 'cut'.
> +if [ -f /etc/environment -a -n \"$SSH_CLIENT\" \\
> +     -a -z \"$LINUX_MODULE_DIRECTORY\" ]
> +then
> +  . /etc/environment
> +  export `cat /etc/environment | cut -d= -f1`
> +fi
> +
> +
>  # Allow Aspell to find dictionaries installed in the user profile.
>  export ASPELL_CONF=\"dict-dir $HOME/.guix-profile/lib/aspell\"




This bug report was last modified 9 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.