From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#31841: ./pre-inst-env guix system no longer works without ~/.config/guix Date: Sat, 16 Jun 2018 10:25:00 +0200 Message-ID: <87sh5nqgtf.fsf@gnu.org> References: <8736xopz0q.fsf@netris.org> <87bmccuwbu.fsf@mdc-berlin.de> <87o9gctgrm.fsf@gnu.org> <87po0snp5g.fsf@netris.org> <87602kro0h.fsf@gnu.org> <874li31wx7.fsf@g1.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fU6X5-0002Kk-Eb for bug-guix@gnu.org; Sat, 16 Jun 2018 04:26:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fU6X4-0002IR-Ct for bug-guix@gnu.org; Sat, 16 Jun 2018 04:26:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43060) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fU6X4-0002Hh-82 for bug-guix@gnu.org; Sat, 16 Jun 2018 04:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fU6X4-0005ZB-1r for bug-guix@gnu.org; Sat, 16 Jun 2018 04:26:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <874li31wx7.fsf@g1.i-did-not-set--mail-host-address--so-tickle-me> (myglc2's message of "Fri, 15 Jun 2018 18:56:20 -0400") 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: myglc2@gmail.com Cc: 31841@debbugs.gnu.org, Ricardo Wurmus --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, myglc2@gmail.com skribis: > Based on this thread I am now making guix like this ... > > guix environment guix --ad-hoc guile-sqlite3 --root=3Dbuild-env -- make [= MAKECMDGOALS] > > ... and using it like this ... > > source build-env/etc/profile > ./pre-inst-env guix COMMAND ARGS... Yeah we can improve the doc. Currently, =E2=80=9CBuilding from Git=E2=80= =9D mentions =E2=80=98guix environment guix=E2=80=99, but =E2=80=9CRunning Guix Before I= t Is Installed=E2=80=9D doesn=E2=80=99t. How about this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/doc/contributing.texi b/doc/contributing.texi index 205c972ae..3f82f4bc2 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi @@ -108,7 +108,9 @@ actually installing them. So that you can distinguish between your ``end-user'' hat and your ``motley'' costume. To that end, all the command-line tools can be used even if you have not -run @code{make install}. To do that, prefix each command with +run @code{make install}. To do that, you first need to have an environment +with all the dependencies available (@pxref{Building from Git}), and then +simply prefix each command with @command{./pre-inst-env} (the @file{pre-inst-env} script lives in the top build tree of Guix), as in@footnote{The @option{-E} flag to @command{sudo} guarantees that @code{GUILE_LOAD_PATH} is correctly set --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Note that I purposely did not mention =E2=80=9C--ad-hoc guile-sqlite3=E2=80= =9D because it has become unnecessary with commit c5a2e1ffcb029f50c4c18352cf378b61c41c625e. Likewise, I did not mention =E2=80=9Csource build-env/etc/profile=E2=80=9D = because =E2=80=9CBuilding from Git=E2=80=9D suggests using =E2=80=98guix environmen= t guix=E2=80=99, which sets up the right environment variables. WDYT? Ludo=E2=80=99. --=-=-=--