From: c4t0 <c4t0@riseup.net>
To: guix-devel@gnu.org
Subject: guix environment guix -pure can't locate lesspipe
Date: Tue, 23 Mar 2021 19:25:38 -0300 [thread overview]
Message-ID: <87r1k57bj1.fsf@riseup.net> (raw)
Hi,
I'm having trouble importing a package from hackage, so I tried to debug
the import source code. After cloning guix I found that I can't start a pure environment:
guix environment guix --pure --ad-hoc help2man git strace
Command 'lesspipe' is available in the following places
* /bin/lesspipe
* /usr/bin/lesspipe
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
lesspipe: command not found
If I use --container it works:
$guix environment guix --pure --ad-hoc help2man git strace lesspipe --container
me@mypc ~/guix/git/guix [env]$
but then I have problems connecting with the daemond:
./pre-inst-env guix build hello
guix build: error: failed to connect to`/usr/local/var/guix/daemon-socket/socket': No such file or directory
(also there isn't any file in my user environment with that name)
So I have to run guix environment with --network and start one:
$guix environment guix --pure --ad-hoc help2man git strace lesspipe --container
me@mypc ~/guix/git/guix [env]$
and then
./pre-inst-env guix-daemon &
and
./pre-inst-env guix build hello
it appears to work, but really I don't know if i'm making a mess at
this point... I can't pass --build-users-group=guixbuild because it
doesn't exist inside the container.
And besides more that one daemon in the same store shurely produces
nasty race conditions.
I think that running inside a container should be the way
to do it but using the store in read-only mode to avoid installing stuff
(or maybe that is not a problem since it can be GC later?) or providing
a way to connect with the running daemon.
So i'm asking if the last things that I do are safe, and should be
included in the manual, because it take me a while to figure it out.
or we have a problem with non containerized environment for guix
development. Any ideas what might be the problem?
or there isn't any need even to start a guix environment... (do not
think so)
COD
next reply other threads:[~2021-03-23 22:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-23 22:25 c4t0 [this message]
2021-03-24 0:04 ` guix environment guix -pure can't locate lesspipe Julien Lepiller
2021-03-24 14:41 ` c4t0
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r1k57bj1.fsf@riseup.net \
--to=c4t0@riseup.net \
--cc=guix-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.