* starting using guix
@ 2013-01-19 23:11 Aleix Conchillo Flaqué
2013-01-20 5:53 ` Aleix Conchillo Flaqué
0 siblings, 1 reply; 3+ messages in thread
From: Aleix Conchillo Flaqué @ 2013-01-19 23:11 UTC (permalink / raw)
To: bug-guix
Hi,
just started using guix yesterday by following "info guix". I found a
couple of problems:
1. After adding guix build groupd and users, as suggested:
# groupadd guix-builder
# for i in `seq 1 10`;
do
useradd -g guix-builder -d /var/empty -s `which nologin` \
-c "Guix build user $i" guix-builder$i;
done
I get this error when trying to build a package "guix-package -i guile":
error: build failed: the build users group `guix-builder' has no members
To solved this I have manually added guild-builder users in
guix-builder group in /etc/group:
guix-builder:x:1001:guix-builder1
I am not sure why the former doesn't work by default.
2. Once this was solved I ran into:
error: build failed: builder does not have write permission to
`/nix/store'; try `chgrp 1001 /nix/store; chmod 1775 /nix/store'
Which is solved by the recommendation in the message.
After that, I've been able to continue the process.
I am not sure if I missed to do something before starting using guix,
or these errors are common and have to be fixed manually.
Thanks,
Aleix
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: starting using guix
2013-01-19 23:11 starting using guix Aleix Conchillo Flaqué
@ 2013-01-20 5:53 ` Aleix Conchillo Flaqué
2013-01-20 14:47 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Aleix Conchillo Flaqué @ 2013-01-20 5:53 UTC (permalink / raw)
To: bug-guix
On Sat, Jan 19, 2013 at 3:11 PM, Aleix Conchillo Flaqué
<aconchillo@gmail.com> wrote:
> # groupadd guix-builder
> # for i in `seq 1 10`;
> do
> useradd -g guix-builder -d /var/empty -s `which nologin` \
> -c "Guix build user $i" guix-builder$i;
> done
>
> I get this error when trying to build a package "guix-package -i guile":
>
> error: build failed: the build users group `guix-builder' has no members
>
I think this is because nix uses "getgrnam"
(nix/libstore/build.cc:472) which returns information only from
/etc/group not from /etc/passwd where the main group is stored. By
default, if you specify -g in useradd that would be the primary group
and is only stored in /etc/passwd.
So, the solution is:
useradd -g guix-builder -G guix-builder ....
This will set the primary group in /etc/passwd and will also add the
user in guix-builder group in /etc/group. You might not specify -g
guix-builder which is OK, but it will generate an additional group for
each user.
Aleix
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: starting using guix
2013-01-20 5:53 ` Aleix Conchillo Flaqué
@ 2013-01-20 14:47 ` Ludovic Courtès
0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2013-01-20 14:47 UTC (permalink / raw)
To: Aleix Conchillo Flaqué; +Cc: bug-guix
Hi,
Aleix Conchillo Flaqué <aconchillo@gmail.com> skribis:
> So, the solution is:
>
> useradd -g guix-builder -G guix-builder ....
>
> This will set the primary group in /etc/passwd and will also add the
> user in guix-builder group in /etc/group. You might not specify -g
> guix-builder which is OK, but it will generate an additional group for
> each user.
Oh, good catch. Commit 091196b updates the manual accordingly.
Thanks!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-20 14:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-19 23:11 starting using guix Aleix Conchillo Flaqué
2013-01-20 5:53 ` Aleix Conchillo Flaqué
2013-01-20 14:47 ` Ludovic Courtès
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.