From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: bug#27386: offloading documentation and env Date: Tue, 27 Jun 2017 20:31:36 +0000 Message-ID: <20170627203136.rvl4dr6d3byzjein@abyayala> 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> <87d19p43wg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lk26t3gkhksnuu3p" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPxAZ-0006AR-9s for bug-guix@gnu.org; Tue, 27 Jun 2017 16:33:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPxAU-0004kB-JM for bug-guix@gnu.org; Tue, 27 Jun 2017 16:33:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPxAU-0004k5-Fm for bug-guix@gnu.org; Tue, 27 Jun 2017 16:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dPxAU-0008Sf-9i for bug-guix@gnu.org; Tue, 27 Jun 2017 16:33:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87d19p43wg.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 27386@debbugs.gnu.org --lk26t3gkhksnuu3p Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s transcribed 2.2K bytes: > ng0 skribis: >=20 > > Ludovic Court=C3=A8s transcribed 2.8K bytes: >=20 > [...] >=20 > >> >> 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= /site-ccache:/home/ludo/.guix-profile/share/guile/site/2.2:/run/current-sys= tem/profile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/gui= le/site/2.2 > >> >> GUILE_LOAD_PATH=3D/home/ludo/.guix-profile/share/guile/site/2.2:/= run/current-system/profile/share/guile/site/2.2 > >> >>=20 > >> >> and you should see /run/current-system/profile/share/guile/site/2.2= =2E 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-= profile/lib/guile/2.2/site-ccache:/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf5= 47-profile/share/guile/site/2.2 > > GUILE_LOAD_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/s= hare/guile/site/2.2 >=20 > 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. >=20 > The session started when you run =E2=80=9Cssh shadownet env=E2=80=9D does= not spawn a > login shell; thus ~/.profile and similar are *not* sourced. I=E2=80=99m = using I was aware of this, but I thought we had (guix) available nevertheless and I was just pushing the wrong buttons. > Bash, so on my accounts, I have this in .bashrc (=E2=80=98.bashrc=E2=80= =99 is for > non-login shells): >=20 > --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--- >=20 > That way, =E2=80=9Cssh HOST COMMAND=E2=80=9D effectively gets the same en= vironment as a > login shell. I use the same on this computer, but at the end of it I source some files, among them ~/.guix-profile/etc/profile I would guess that sourcing ~/.guix-profile/etc/profile gets into the way and that moving this to .bash_profile could fix the issue. What do you think? > If you=E2=80=99re using a different shell, then make sure its startup fil= e does > something similar. >=20 > HTH! >=20 > Ludo=E2=80=99. >=20 >=20 >=20 >=20 --=20 ng0 OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 infotropique: https://www.infotropique.org personal: https://ng-0.github.io https://krosos.org/ --lk26t3gkhksnuu3p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAllSwKgACgkQ4i+bv+40 hYgFKQ//SyejsHknQ9Zx0vHdYB1Qj3Hwhm4fLv++J/x7nzRNRY24gfwSeZ9BJx+l 3i42Vs8kKkLPCYXDais8F7YgiaoGOqU173iR4zONedDnx8tmQbj8MM8fe4dnXT8C 58Bt0JUxZ9NCVuH25oqj6MEBxDPsU1tbScKwZyMsoGBpy20HZjF/OSF5XucVBFWT yNrM8z9JPZdUhAnh5f5xP0sT+UBaJXMbY8fC+S/BcA8ChPfwvoTzLo/DznCoyasK EJ8U6UWTQ9aztEvoTSti+lck+5n4OWAaI5ZqeZuE6nVhzZEFy/Zdkgx1Ic0um/i7 /Jk2/U0HuNV6M2t/OFHyAI1PWPx3qCioHS0n1SCajAgVb6djl1AGSntXem36WZpo RMTU5UhzSjW1dzfLJC+fGHf3uMwCcRG4SRCB8LZMoyK1X9BEQCM9iDVnfKtkPuJn zseZ9neTSVUcamFvlCjDNqmkx0oMPesnaLihp2Z93ZBabXdBQhbfMy4//sWUyjhc IEN0TmGzxIR5ihO+mLA0LOB+JKkaGzCQuvYhK00OO+NQ9AXRzm3AGcqQPjvpVWt0 J7CJEYZOIFVVHTRHbcX/pI4tWMEplOWJtfHFqa/6D6zLQRy0wH/dPKIs+u1AQHE/ Ok+am6ttHZ4QSMcIic0Q7NFLqJ2neKJ2pVXWn8MW7IOfjAodiKo= =I9Bz -----END PGP SIGNATURE----- --lk26t3gkhksnuu3p--