From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#40125: Problem with guix offload: Remote channel closed Date: Mon, 23 Mar 2020 00:40:53 +0100 Message-ID: <874kug3qm2.fsf@devup.no> References: <87eetl1zce.fsf@gnu.org> <87pnd5wdyq.fsf@gnu.org> <8736a0uni2.fsf@gnu.org> <87d0943tuy.fsf@devup.no> <87a7483sk0.fsf@devup.no> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:32975) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGAEH-0006r3-88 for bug-guix@gnu.org; Sun, 22 Mar 2020 19:42:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGAEF-0007vd-M2 for bug-guix@gnu.org; Sun, 22 Mar 2020 19:42:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45205) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jGAEE-0007ur-6i for bug-guix@gnu.org; Sun, 22 Mar 2020 19:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jGAEE-0002L8-4p for bug-guix@gnu.org; Sun, 22 Mar 2020 19:42:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: 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-mx.org@gnu.org Sender: "bug-Guix" To: mikael@djurfeldt.com Cc: 40125@debbugs.gnu.org --=-=-= Content-Type: text/plain Mikael Djurfeldt writes: > Just as a test, I enabled user specified environments in sshd_config (such > that ssh reads .ssh/environment) and added the following there: > > PATH=/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/bin:/home/guix/.guix-profile/bin:/usr/local/bin:/usr/bin:/bin:/usr/games > GUILE_LOAD_COMPILED_PATH=/gnu/store/nkh7c4ygaivfxdq3zhccl4a5qxrn6s88-guix-module-union/lib/guile/3.0/site-ccache:/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/lib/guile/3.0/ccache > GUILE_LOAD_PATH=/gnu/store/nkh7c4ygaivfxdq3zhccl4a5qxrn6s88-guix-module-union/share/guile/site/3.0:/gnu/store/0awhym5h0m890n0wq87y0dxznh14rk88-guile-next-3.0.1/share/guile/3.0 > GUIX_PROFILE=/home/guix/.guix-profile > GUIX_LOCPATH=/home/guix/.guix-profile/lib/locale > > This made the offload test work. > > Crucial here is the PATH to guile 3.0.1 as well as the GUILE_LOAD_* paths. > > But how are these *supposed* to be setup on the build host??? Installing 'guile' and 'guix' (or their Guile 3.0 equivalents) into the user profile is the simplest solution. Then you can just source ~/.guix-profile/etc/profile early in .bashrc, because it will contain all the relevant variables. Otherwise manipulating PATH and GUILE_LOAD_PATH directly seems like a fine solution to me, but you should refer to ~/.config/guix/current/share/guile and friends instead of /gnu/store/...guix-module-union/share/guile because the latter is prone to being garbage collected. Does that make sense? It might be useful to create a dedicated user account for this to avoid clobbering your regular dotfiles/profiles. I don't think there is an established practice here, so your feedback on this is very valuable! Offloading to a Guix System will just work, of course. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl5394UACgkQoqBt8qM6 VPouHAf9G/2RWj2jsX+tTCZbX1gIB7TsgVsYqWS/jKWLYJYp3czTLv3ElxoiX4kj J6Yjynk8ebU5YqrDLCSGkhzUGQS+WIPrlhs2JYPySzo9Snrujergx/cmYITB/dKO YgNdMF005lMbsBYBl0TFGQqfi+KkQtvAcCKgCFTOWu89+fWTA6+f8mfOwsuKWukC JCN4itFeGEbLRucwrR9frtE17Mcd6uGBnpzEqGfJuZQul0MlxOMkO4xuSTMge/OI BMYYpvNLfOH5vXWbt/QTPo5A7bLkFWdLsaYF4wjF6sbPfBdkPzOd875VdkJlCaUu SKbzVzze3foFu17PZcXzje6ZQFvtvA== =L/kB -----END PGP SIGNATURE----- --=-=-=--