From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 17 05:57:22 2014 Received: (at 17786) by debbugs.gnu.org; 17 Jun 2014 09:57:23 +0000 Received: from localhost ([127.0.0.1]:49972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wwq8o-0001A2-Bl for submit@debbugs.gnu.org; Tue, 17 Jun 2014 05:57:22 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:55213) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wwq8k-00019r-Us for 17786@debbugs.gnu.org; Tue, 17 Jun 2014 05:57:20 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1061D2DD2; Tue, 17 Jun 2014 11:57:17 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RV72UI9LOviB; Tue, 17 Jun 2014 11:57:16 +0200 (CEST) Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57]) by hera.aquilenet.fr (Postfix) with ESMTPSA id CB98E2D83; Tue, 17 Jun 2014 11:57:16 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Tomas Cech Subject: Re: bug#17786: group specified in `build-users-group' does not exist References: <20140615170229.GD5647@venom> <87d2e9fg6g.fsf@gnu.org> <20140616084220.GE5647@venom> <87ha3lcbqz.fsf@gnu.org> <20140616204238.GG5647@venom> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 Prairial an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Tue, 17 Jun 2014 11:57:16 +0200 In-Reply-To: <20140616204238.GG5647@venom> (Tomas Cech's message of "Mon, 16 Jun 2014 22:42:38 +0200") Message-ID: <87mwdbg8oz.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17786 Cc: 17786@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hello, Please keep 17786@debbugs.gnu.org Cc=E2=80=99d. Tomas Cech skribis: > On Mon, Jun 16, 2014 at 01:52:36PM +0200, Ludovic Court=C3=A8s wrote: >>Tomas Cech skribis: >> >>> On Mon, Jun 16, 2014 at 09:48:39AM +0200, Ludovic Court=C3=A8s wrote: >>>>Hello, >>>> >>>>Tomas Cech skribis: >>>> >>>>> guix package: error: build failed: the group `"guix-builders"' specif= ied in >>>>> `build-users-group' does not exist >>>>> >>>>> # grep guix /etc/passwd >>>>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin >>>>> guix-builder2:x:62:479:Guix builder 2:/var/empty:/sbin/nologin >>>>> guix-builder3:x:63:479:Guix builder 3:/var/empty:/sbin/nologin >>>>> guix-builder4:x:64:479:Guix builder 4:/var/empty:/sbin/nologin >>>>> guix-builder5:x:65:479:Guix builder 5:/var/empty:/sbin/nologin >>>>> # grep guix /etc/group >>>>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-bu= ilder4,guix-builder5 >>>>> >>>>> Nothing seems to be obviously wrong, but guix ends with this error. >>>> >>>>Hmm, what does =E2=80=9Cgetent group guix-builders=E2=80=9D return? >>>>And =E2=80=9Cgetent passwd guix-builder1=E2=80=9D? >>> >>> # getent group guix-builders >>> guix-builders:x:479:guix-builder1,guix-builder2,guix-builder3,guix-buil= der4,guix-builder5 >>> # getent passwd guix-builder1 >>> guix-builder1:x:61:479:Guix builder 1:/var/empty:/sbin/nologin >> >>So that=E2=80=99s all good. >> >>The daemon simply does that (build.cc): >> >>--8<---------------cut here---------------start------------->8--- >> /* Get the members of the build-users-group. */ >> struct group * gr =3D getgrnam(settings.buildUsersGroup.c_str()); >> if (!gr) >> throw Error(format("the group `%1%' specified in `build-users-gro= up' does not exist") >> % settings.buildUsersGroup); >>--8<---------------cut here---------------end--------------->8--- >> >>Can you try getgrnam("guix-builders") in C or some other language (from >>Guile: (getgrnam "guix-builders")) ? > > scheme@(guile-user)> (getgrnam "guix-builders") > $2 =3D #("guix-builders" "x" 479 ("guix-builder1" "guix-builder2" "guix-b= uilder3" "guix-builder4" "guix-builder5")) Then there=E2=80=99s something weird: Guile=E2=80=99s getgrnam directly cor= responds to libc=E2=80=99s getgrnam(3), which is what guix-daemon uses in the snippet a= bove. Oh, I see the error message you gave above reads: the group `"guix-builders"' Note the extra double quotes. Could it be that the script that launches guix-daemon does something that amounts to: guix-daemon '--build-users-group=3D"guix-builders"' That is, it leaves the double quotes as is in the argument? Thanks, Ludo=E2=80=99.