From: "Wiktor Żelazny" <wz@freeshell.de>
To: help-guix@gnu.org
Subject: ./pre-inst-env guix build dangerous inside an environment?
Date: Tue, 10 Sep 2019 15:58:02 +0200 [thread overview]
Message-ID: <20190910135802.lorsnzuaofjxifwy@wz.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 1652 bytes --]
While developing my first package definition to be contributed to GNU
Guix, I followed 14.1 („Building from Git”) and 14.2 („Running
Guix Before It Is Installed”) of the manual.
14.1 suggests using a Guix environment via `guix environment guix`. I
thought it would be even better to do `guix environment --pure guix`,
and thus obtain some higher level of isolation.
I decided to continue with the environment in 14.2. Issuing
sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild
resulted in some error related to UID/GID. Outside the environment, it
worked, though. Inside the environment, I issued the next line from the
manual:
./pre-inst-env guix build hello
A massive build of various packages, including gcc, linux-libre…,
began. After a while, “sed not found” and other “not founds”
started to appear in other terminal windows (tmux panels in my case),
unrelated to the described process, and the system got impossible to
work with. After a reset, instead of the OS, I got landed in the Guile
interpreter (in kind of a debug mode, as far as I could say). It looks
like the build wiped out the store, and tomorrow’s going to be a
re-installation and reconfiguration day.
Could somebody, please, help me understand what kind of mistake I made
and what actually happened? Don’t you think it would be desirable
to mark with `[env]` the commands that should be issued inside an
environment in the manual? I find 14.2 rather confusing in this regard.
Perhaps, it would be also worthwhile to include a warning in order to
spare other newcomers a similar experience.
WŻ
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
next reply other threads:[~2019-09-10 14:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-10 13:58 Wiktor Żelazny [this message]
2019-09-10 14:37 ` ./pre-inst-env guix build dangerous inside an environment? Ricardo Wurmus
2019-09-11 16:18 ` Wiktor Żelazny
2019-09-11 19:40 ` Ricardo Wurmus
2019-09-12 15:45 ` Wiktor Żelazny
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=20190910135802.lorsnzuaofjxifwy@wz.localdomain \
--to=wz@freeshell.de \
--cc=help-guix@gnu.org \
/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.
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).