From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 27 15:38:54 2017 Received: (at 27386) by debbugs.gnu.org; 27 Jun 2017 19:38:55 +0000 Received: from localhost ([127.0.0.1]:41169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPwK6-00079M-LB for submit@debbugs.gnu.org; Tue, 27 Jun 2017 15:38:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPwK4-000797-SP for 27386@debbugs.gnu.org; Tue, 27 Jun 2017 15:38:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPwJu-0004MR-LA for 27386@debbugs.gnu.org; Tue, 27 Jun 2017 15:38:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPwJu-0004MH-IP for 27386@debbugs.gnu.org; Tue, 27 Jun 2017 15:38:42 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:52704 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dPwJt-00049E-Q9 for 27386@debbugs.gnu.org; Tue, 27 Jun 2017 15:38:42 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: 27386@debbugs.gnu.org Subject: Re: bug#27386: offloading documentation and env References: <20170615170552.n7y5cxquqozpnesj@abyayala> <20170615211132.clkaslffc4a3l5bw@abyayala> <20170615221902.5ubbhriynb7wozrz@abyayala> <20170615223456.z5w2oaxifbah2ak2@abyayala> <87podq7cae.fsf@gnu.org> <20170626211511.ox5smekycmqz2vc3@abyayala> <87injh5z3h.fsf@gnu.org> <20170627145418.iq54zrhfzbr7vdtn@abyayala> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Messidor an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Tue, 27 Jun 2017 21:38:39 +0200 In-Reply-To: <20170627145418.iq54zrhfzbr7vdtn@abyayala> (ng0@infotropique.org's message of "Tue, 27 Jun 2017 14:54:18 +0000") Message-ID: <87d19p43wg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27386 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) ng0 skribis: > Ludovic Court=C3=A8s transcribed 2.8K bytes: [...] >> >> The test is to run something like: >> >>=20 >> >> $ ssh localhost env |grep GUILE_ >> >> GUILE_LOAD_COMPILED_PATH=3D/home/ludo/.guix-profile/lib/guile/2.2/s= ite-ccache:/home/ludo/.guix-profile/share/guile/site/2.2:/run/current-syste= m/profile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guile= /site/2.2 >> >> GUILE_LOAD_PATH=3D/home/ludo/.guix-profile/share/guile/site/2.2:/ru= n/current-system/profile/share/guile/site/2.2 >> >>=20 >> >> and you should see /run/current-system/profile/share/guile/site/2.2. = If >> >> not, you=E2=80=99ll have to add it somehow. >>=20 >> What does the above give for you? >>=20 >> HTH, >> Ludo=E2=80=99. > > This is issued from computer A (abyayala) to computer B (shadownet). > > user@abyayala ~$ ssh shadownet env |grep GUILE_ > GUILE_LOAD_COMPILED_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-pr= ofile/lib/guile/2.2/site-ccache:/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547= -profile/share/guile/site/2.2 > GUILE_LOAD_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/sha= re/guile/site/2.2 The problem here is that /run/current-system/profile/share/guile/site/2.2, which is where the Guix modules are on GuixSD as I wrote above, is missing from the search path. The session started when you run =E2=80=9Cssh shadownet env=E2=80=9D does n= ot spawn a login shell; thus ~/.profile and similar are *not* sourced. I=E2=80=99m us= ing Bash, so on my accounts, I have this in .bashrc (=E2=80=98.bashrc=E2=80=99 = is for non-login shells): --8<---------------cut here---------------start------------->8--- if [ -n "$SSH_CLIENT" -a -z "`type -P cat`" ] then # We are being invoked from a non-interactive SSH session # (as in "ssh host command") but 'cat' cannot be found # in $PATH. Source /etc/profile so we get $PATH and other # essential variables. source /etc/profile fi --8<---------------cut here---------------end--------------->8--- That way, =E2=80=9Cssh HOST COMMAND=E2=80=9D effectively gets the same envi= ronment as a login shell. If you=E2=80=99re using a different shell, then make sure its startup file = does something similar. HTH! Ludo=E2=80=99.