all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Aleix Conchillo Flaqué" <aconchillo@gmail.com>
To: bug-guix@gnu.org
Subject: Re: starting using guix
Date: Sat, 19 Jan 2013 21:53:08 -0800	[thread overview]
Message-ID: <CA+XASoVRo8BH-6HNSkFRi9c9kEGCjLe6FgVjYOtDj7OEdrrRkA@mail.gmail.com> (raw)
In-Reply-To: <CA+XASoUzG0R+2iwAxNCF9Oa2U7Jf7qNGn5mGfWEuSMUM35thdw@mail.gmail.com>

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

  reply	other threads:[~2013-01-20  5:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-19 23:11 starting using guix Aleix Conchillo Flaqué
2013-01-20  5:53 ` Aleix Conchillo Flaqué [this message]
2013-01-20 14:47   ` Ludovic Courtès

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=CA+XASoVRo8BH-6HNSkFRi9c9kEGCjLe6FgVjYOtDj7OEdrrRkA@mail.gmail.com \
    --to=aconchillo@gmail.com \
    --cc=bug-guix@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.