From: ludo@gnu.org (Ludovic Courtès)
To: myglc2@gmail.com
Cc: 31841@debbugs.gnu.org, Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Subject: bug#31841: ./pre-inst-env guix system no longer works without ~/.config/guix
Date: Sat, 16 Jun 2018 10:25:00 +0200 [thread overview]
Message-ID: <87sh5nqgtf.fsf@gnu.org> (raw)
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")
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]
Hello,
myglc2@gmail.com skribis:
> Based on this thread I am now making guix like this ...
>
> guix environment guix --ad-hoc guile-sqlite3 --root=build-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, “Building from Git” mentions
‘guix environment guix’, but “Running Guix Before It Is Installed”
doesn’t. How about this:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 817 bytes --]
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
[-- Attachment #3: Type: text/plain, Size: 372 bytes --]
Note that I purposely did not mention “--ad-hoc guile-sqlite3” because
it has become unnecessary with commit
c5a2e1ffcb029f50c4c18352cf378b61c41c625e.
Likewise, I did not mention “source build-env/etc/profile” because
“Building from Git” suggests using ‘guix environment guix’, which sets
up the right environment variables.
WDYT?
Ludo’.
next prev parent reply other threads:[~2018-06-16 8:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-15 2:24 bug#31841: ./pre-inst-env guix system no longer works without ~/.config/guix Mark H Weaver
2018-06-15 6:56 ` Rutger Helling
2018-06-15 10:56 ` myglc2
2018-06-15 11:24 ` Ricardo Wurmus
2018-06-15 11:45 ` Ludovic Courtès
2018-06-15 12:04 ` Ricardo Wurmus
2018-06-15 13:08 ` Mark H Weaver
2018-06-15 13:40 ` Mark H Weaver
2018-06-15 16:51 ` Ludovic Courtès
2018-06-15 22:56 ` myglc2
2018-06-16 8:06 ` Mark H Weaver
2018-06-16 8:25 ` Ludovic Courtès [this message]
2018-06-16 9:50 ` Mark H Weaver
2018-06-16 14:31 ` George Clemmer
2018-06-17 20:53 ` Ludovic Courtès
2018-06-19 17:08 ` myglc2
2018-06-20 14:06 ` Ludovic Courtès
2018-06-16 7:51 ` Mark H Weaver
2018-06-17 12:54 ` bug#31841: Status: Guix requires guile-sqlite3 Maxim Cournoyer
2018-06-17 21:19 ` Ludovic Courtès
2018-06-18 1:34 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sh5nqgtf.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=31841@debbugs.gnu.org \
--cc=myglc2@gmail.com \
--cc=ricardo.wurmus@mdc-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).