GNU bug report logs - #37347
'guix environment' fails after trying to follow the steps from "Running Guix Before It Is Installed" page

Previous Next

Package: guix;

Reported by: Jan <tona_kosmicznego_smiecia <at> interia.pl>

Date: Mon, 9 Sep 2019 00:50:02 UTC

Severity: normal

Done: Gábor Boskovits <boskovits <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Gábor Boskovits <boskovits <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#37347: closed ('guix environment' fails after trying to
 follow the steps from "Running Guix Before It Is Installed" page)
Date: Thu, 24 Oct 2019 20:17:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 24 Oct 2019 20:16:26 +0000
with message-id <CAE4v=pjLkaVQRYzZzudUqcVKNObqNitvKCKuiUoNFC7=e9mtug <at> mail.gmail.com>
and subject line 'guix environment' fails after trying to follow the steps from "Running Guix Before It Is Installed" page
has caused the debbugs.gnu.org bug report #37347,
regarding 'guix environment' fails after trying to follow the steps from "Running Guix Before It Is Installed" page
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
37347: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37347
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jan <tona_kosmicznego_smiecia <at> interia.pl>
To: bug-guix <at> gnu.org
Subject: 'guix environment' fails after trying to follow the steps from
 "Running Guix Before It Is Installed" page
Date: Mon, 9 Sep 2019 02:49:17 +0200
Hi, I'm a new Guix user and I wanted to hack on Guix and update a
package, I hadn't known exactly how to do this, so I started following
instructions from
https://guix.gnu.org/manual/en/html_node/Running-Guix-Before-It-Is-Installed.html#Running-Guix-Before-It-Is-Installed
and
https://guix.gnu.org/blog/2018/a-packaging-tutorial-for-guix/

The situation started to be interesting, when the tutorial told me to
run "cd $GUIX_CHECKOUT" and "./pre-inst-env guix package
--list-available=ruby"
I was confused, because I couldn't find any "./pre-inst-env" file, so I
used 'find' to search for it and there were one file with a similar name
in $GUIX_CHECKOUT/build-aux - ./pre-inst-env.in (as I'm composing this
email now I see that's stupid, but I tried using this file, as I don't
know what I was doing (still don't know))
So I started running the following stupid commands:

----------------
user <at> machine ~/Prog/repo/guix [env]$ sudo -E ./pre-inst-env.in
guix-daemon --build-users-group=guixbuild

sudo: /gnu/store/z26h622slm8p61myhk45v3jjg8p7qm8z-profile/bin/sudo must
be owned by uid 0 and have the setuid bit set 

user <at> machine ~/Prog/repo/guix [env]$ ./pre-inst-env.in
bash: ./pre-inst-env.in: No such file or directory 
user <at> machine ~/Prog/repo/guix [env]$ cd build-aux/ 
user <at> machine ~/Prog/repo/guix/build-aux [env]$ sudo
-E ./pre-inst-env.in guix-daemon --build-users-group=guixbuild
sudo: /gnu/store/z26h622slm8p61myhk45v3jjg8p7qm8z-profile/bin/sudo must
be owned by uid 0 and have the setuid bit set 
user <at> machine ~/Prog/repo/guix/build-aux [env]$ exit
---------------

And then:

------------------
user <at> machine ~/Prog/repo/guix/build-aux$ chmod +x ./pre-inst-env.in 
user <at> machine ~/Prog/repo/guix/build-aux$ sudo -E ./pre-inst-env.in
guix-daemon --build-users-group=guixbuild Password: 
./pre-inst-env.in: line 33: cd: @abs_top_srcdir@:
there is no such file or directory 
./pre-inst-env.in: line 34: cd:
@abs_top_builddir@: there is no such file or directory
--------------------

And after that I couldn't run "guix
environment" anymore, it threw an error:

guix environment: error: failed to connect to
`/var/guix/daemon-socket/socket': Connection refused

Restarting the computer helps, but doing the same stuff breaks it
again, so guess it's reproducible.

After doing it I ran the "history" command so you can know what I did
exactly (some commands were unfortunately run in an environment and I
can't provide them), here it is:

  371  git clone --recurse-submodules
  git://git.savannah.gnu.org/guix.git 
  372  guix environment guix --pure
  373  sudo -E
  374  sudo --help
  375  guix environment guix --pure
  376  guix environment guix --pure --ad-hoc sudo 
  377  ls
  378  cd guix/
  379  ls
  380  cd build-aux/
  381  ls
  382  .
  383  guix environment guix --pure
  384  chmod +x ./pre-inst-env.in 
  385  sudo -E ./pre-inst-env.in guix-daemon
  --build-users-group=guixbuild 
  386  ls
  387  cd ..
  388  ./configure 
  389  guix environment guix --pure
  390  history

As stupid and complicated as it is, something is definitely broken
here.

Sincerely,
Jan Wielkiewicz


[Message part 3 (message/rfc822, inline)]
From: Gábor Boskovits <boskovits <at> gmail.com>
To: 37347-done <at> debbugs.gnu.org
Subject: 'guix environment' fails after trying to follow the steps from
 "Running Guix Before It Is Installed" page
Date: Thu, 24 Oct 2019 20:16:26 +0000
[Message part 4 (text/plain, inline)]
The submitter solved the problem, and requested to close. Closing.

-- 
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21
[Message part 5 (text/html, inline)]

This bug report was last modified 5 years and 209 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.