From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#29519: ./pre-inst-env: substitute: Failed to autoload make-session in (gnutls) Date: Tue, 16 Jan 2018 12:44:30 -0800 Message-ID: <20180116204430.GB18014@jasmine.lan> References: <878ten4h8j.fsf@hyperbola.info> <87d13urhcz.fsf@gnu.org> <87vag1ve8x.fsf@hyperbola.info> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XOIedfhf+7KOe/yw" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebY6e-0004F5-JA for bug-guix@gnu.org; Tue, 16 Jan 2018 15:45:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebY6Q-0003E5-Qh for bug-guix@gnu.org; Tue, 16 Jan 2018 15:45:16 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51234) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebY6Q-0003Dq-IE for bug-guix@gnu.org; Tue, 16 Jan 2018 15:45:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ebY6Q-0007RL-AB for bug-guix@gnu.org; Tue, 16 Jan 2018 15:45:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87vag1ve8x.fsf@hyperbola.info> 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: Adonay Felipe Nogueira Cc: 29519@debbugs.gnu.org --XOIedfhf+7KOe/yw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 16, 2018 at 04:40:30PM -0200, Adonay Felipe Nogueira wrote: > I didn't test this yet, but I was wondering about `sudo' > "-E"/"--preserve-env" option, wasn't it dropped because it would > conflict with other variables that the user has? Or better yet, because > it would take package definitions from other places? >=20 > 2017-12-04T10:07:40+0100 Ludovic Court=C3=A8s wrote: > > Hello, > > > > The problem is that the (gnutls) module is not in the search path of > > =E2=80=98guix substitute=E2=80=99. > > > > Usually the solution is to start the daemon using something like: > > > > sudo -E ./pre-inst-env guix-daemon =E2=80=A6 > > > > so that =E2=80=98guix-daemon=E2=80=99 inherits the correct values for = =E2=80=98GUILE_LOAD_PATH=E2=80=99, > > etc. > > > > Does that work for you? > > > > We used to have this suggestion in the doc, but it was reverted in > > commit 73a203450d21241eca50375aeb26fb418b287414. Leo, do you think we > > can reinstate it? I=E2=80=99m not sure why it was reverted in the firs= t place. I missed this request previously :/ Originally, I reverted the suggestion because it was causing problems for some users on #guix, and I thought it was risky to propagate the user's environment into a privileged context. But perhaps it's not any more risky than using sudo, in general. Ludo, please let me know if you'd still like me to reinstate the advice to use `sudo -E`. --XOIedfhf+7KOe/yw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlpeZC4ACgkQJkb6MLrK fwhQow//UTCYofNUV/fjmOuA+POiAvg8F6+ZaQkvFBuD3avt8C6VWnoyeC+XnZ5o c+VALephCqwVj7/9UeTqEtprFEMxzyF9rhSu1ucpQJyEivrTqhVr91yvAm1lojmn 3kzVCtZhFL+czcNmNUrIxtrx4UFCKvOtKPunPmJjkCZcVt+XOBTEJ/ZqkGg2v6Uj 9MjMdtZfXJ0yWIwwrJF0BupIzYd2T7pZFFwf/kKkt1zH50aDC8i3FuP3aipBgJV2 EBChLsOZb/+nSQtbbGX+mRgIZYZmeUUE0fFHnidULH6TfJMuG4B+N2BAwgCU7T2T eq3d0r8Isjk9syBiU0zLA8n/iI801am3LlX+Z8kv4zTfIAyjGMtThe1522a5Njs8 tDaypmKinNC/ker1PW8f+xgqSNxPSwKutDgcWQWSO1TwvM1ZYihHW0B15sUlzJpx a3RA6jcY0DVfWph3fessz2y4f7yDz2DSgiAUDtHyizLH0EX4FB8o9JKTzQs1xjbu gndFqqJ06yUwpkDQhb9ij9XtxhqsOHIpX8RtfafSIr6j5E+mTSWoeFmoyWI4xX/I dj7gJ7MQ0X2NoQ2GnMTwG4FWh/4SL3quQ4KXl94d97Sm8ONCBO0hJnqq7qSyVXhH BWa6mJ6cHCR+iLMyCocBUlWZhDO5uNd9IspDCgj35aHewRS6ssI= =0csK -----END PGP SIGNATURE----- --XOIedfhf+7KOe/yw--