From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 22 19:41:09 2020 Received: (at 40125) by debbugs.gnu.org; 22 Mar 2020 23:41:09 +0000 Received: from localhost ([127.0.0.1]:51178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGADM-0002Je-Lr for submit@debbugs.gnu.org; Sun, 22 Mar 2020 19:41:08 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGADK-0002Iy-25 for 40125@debbugs.gnu.org; Sun, 22 Mar 2020 19:41:07 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id DE1C75C01EB; Sun, 22 Mar 2020 19:41:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 22 Mar 2020 19:41:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=ltXYuUdXS4utmTFiuC7m/xP68L XrqZreV2j451UwC4A=; b=RSkJvVY9PVjLZZtlQxl/+kHZGp64jYMeicVz/it2hh 4QwF54/iX3aB1Gd4cyznKncf1x7WqVPf6PbyYAMv2yxO19+ophlID8FNHU+Yk8VR fyAh3rnmeoRYETE1A9KtunWHFWnNKum93ZkBl5Vu45/OFx/A9aNORWdbbfc5bE9v orNjae7Q8yKU/jxW3yqc+SifGRN+wUMGaVO796nPnNUQ9vxKBgPKmsQuTM9O/quA +XpgBIQSSltV1UCdMNxhhKwW/W3jiz470O1MG5TERaVD/I0Atli4jmRGvrt2iB5V ixZnPm7BqjLgZleum4/E2UyGqNnRnuJ7qktliNI/iyrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ltXYuU dXS4utmTFiuC7m/xP68LXrqZreV2j451UwC4A=; b=GrsAlPJ91c/B9Iu0tnAC6K AHsHCT7OzOowgQOC6SgPP8FKs810QE2VK/WNLZvj8O8lkp6GABp6f7p6zxdAxGjP BzLx3T+y4Hp2SLEM1WQ0MV5RTBhzA3YNUXctvakmpYyNH4fD1nkbzo/LlnF2waaI c4sJ4NhdWBuDkw6uLBu9zPBKpkx79NEJz1cxIWtDI6jaJfqCjtWIoRm4xPUNaYwn nNOiuTWP9savg6P67blg+UlCBwQcHwb1ZXWBtLwHaAs23NEzSu7f3P7hJxtjpL4+ XOg6fVQxydk6CJ0jQOusYKz8QwMd3X0Jf+rNM6SFeUgkZm+68lgM1hBKK/x+IaJg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudegjedgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehgtderredtredtnecuhfhrohhmpeforghrihhu shcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhmqeenucfkphepke egrddvtddvrdeikedrjeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 1A7503061856; Sun, 22 Mar 2020 19:40:59 -0400 (EDT) From: Marius Bakke To: mikael@djurfeldt.com Subject: Re: bug#40125: Problem with guix offload: Remote channel closed In-Reply-To: References: <87eetl1zce.fsf@gnu.org> <87pnd5wdyq.fsf@gnu.org> <8736a0uni2.fsf@gnu.org> <87d0943tuy.fsf@devup.no> <87a7483sk0.fsf@devup.no> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Mon, 23 Mar 2020 00:40:53 +0100 Message-ID: <874kug3qm2.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40125 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , 40125@debbugs.gnu.org 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: -1.7 (-) --=-=-= 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----- --=-=-=--