From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wiktor =?utf-8?Q?=C5=BBelazny?= Subject: ./pre-inst-env guix build dangerous inside an environment? Date: Tue, 10 Sep 2019 15:58:02 +0200 Message-ID: <20190910135802.lorsnzuaofjxifwy@wz.localdomain> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="g2hakoz4d6qi2fkf" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45963) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7gh0-0007A7-Kl for help-guix@gnu.org; Tue, 10 Sep 2019 10:00:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7ggy-0000Lj-HJ for help-guix@gnu.org; Tue, 10 Sep 2019 10:00:26 -0400 Received: from freeshell.de ([2a01:360:106::2]:52319) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i7ggw-0000JK-1I for help-guix@gnu.org; Tue, 10 Sep 2019 10:00:23 -0400 Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --g2hakoz4d6qi2fkf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable While developing my first package definition to be contributed to GNU Guix, I followed 14.1 (=E2=80=9EBuilding from Git=E2=80=9D) and 14.2 (=E2= =80=9ERunning Guix Before It Is Installed=E2=80=9D) 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=3Dguixbuild 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=E2=80=A6, began. After a while, =E2=80=9Csed not found=E2=80=9D and other =E2=80=9Cno= t founds=E2=80=9D 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=E2=80=99s 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=E2=80=99t 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=C5=BB --g2hakoz4d6qi2fkf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAl13q+lfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg edURxxAAgIuXWhYkjQXVPWk8ScsbL4/QOKntkafqo1SzMtDu6HCRAoz60fZMtwNA Es8ptNZdOu1bHM6aP11DH3RO573uy2cA1W2oYZOGYCMTGlkkJCs4wMxiJSGH79t3 uxQCBiL21ocJknu8JkBB+RP5qhorsConTQN70gUd1bH8XkDrKBT212eV6A4I/QbM Ly0Sq538/iHPbvImJ0blfUB7nH9+/a+IrvSxHidQckzouGriuIeNz/4pC6Ko2+DV vgUS7gQpOOV5Rhj6uCo4O5BhGBiH1VJgxl4mKEVXJQnpgRjdiIpTs8VS34DTWuO1 hrCNgWpM4Qeaa0nY75hn2vJWp7mcvH2WI5zThJRXroynK7weeVNkJL7WyEot/rsA Z0ejcAgb6VFXH7DN2CfS5kd8g+vGr69us7ERBEDqcmpGxiEHrJuKfu6q+Becpydc Lt17pWIKz2idN1MN0c2OpEDuumiufahQetoWrvHjh7CAfnz00XibfQUnkaJMFsxg 2tqqdau92r8W4Re8KYHH5dzsYPBF82IuLINewlFvklpNLXpRlufA0EdztIqgIBhK 8KPDXU5/7IiQNzBgNZAb+ZaSHPeWRutJruQcMIo6qgXr9MFRLTiH7Mfv9GyMYB69 qrAVF5fct4fpubYqQMDDIIjtBEVz9iKNeh8hKjWFPtF+oyYydB8= =zbGG -----END PGP SIGNATURE----- --g2hakoz4d6qi2fkf--