unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* ./pre-inst-env guix build dangerous inside an environment?
@ 2019-09-10 13:58 Wiktor Żelazny
  2019-09-10 14:37 ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Wiktor Żelazny @ 2019-09-10 13:58 UTC (permalink / raw)
  To: help-guix

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-09-12 15:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-10 13:58 ./pre-inst-env guix build dangerous inside an environment? Wiktor Żelazny
2019-09-10 14:37 ` Ricardo Wurmus
2019-09-11 16:18   ` Wiktor Żelazny
2019-09-11 19:40     ` Ricardo Wurmus
2019-09-12 15:45       ` Wiktor Żelazny

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).