From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur Subject: Re: Cuirass hello-singleton.scm example issue Date: Fri, 02 Nov 2018 13:03:58 +0100 Message-ID: <871s83r8i9.fsf@lassieur.org> References: <87zhus32kd.fsf@cbaines.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIYBQ-0007nP-11 for guix-devel@gnu.org; Fri, 02 Nov 2018 08:04:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIYBJ-0004ha-Rq for guix-devel@gnu.org; Fri, 02 Nov 2018 08:04:11 -0400 Received: from mail.lassieur.org ([83.152.10.219]:41736) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gIYBH-0004ev-Uy for guix-devel@gnu.org; Fri, 02 Nov 2018 08:04:05 -0400 In-reply-to: <87zhus32kd.fsf@cbaines.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Christopher Baines Cc: Guix-devel Hey Christopher, Christopher Baines writes: > Hey, > > I tried out the example in the Cuirass README [1], but I don't think it > worked. > > 1: http://git.savannah.nongnu.org/cgit/guix/guix-cuirass.git/tree/README#= n46 Note that the official URL is: https://git.savannah.gnu.org/cgit/guix/guix-cuirass.git/. > I see the following in the standard output: > > > 2018-11-01T20:55:43 evaluating spec 'guix-master' > Backtrace: > 5 (primitive-load-path "gnu/system/examples/bare-bones.tmpl") > In ice-9/eval.scm: > 293:34 4 (_ #(#(#(#(#(#(#(# = =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6= )) > 163:9 3 (_ #(#(#(#(#(#(#(# = =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6= )) > 159:9 2 (_ #(#(#(#(#(#(#(# = =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6= )) > 223:20 1 (proc #(#(#(#(#(#(#(# =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) = =E2=80=A6)) > In unknown file: > 0 (%resolve-variable (7 . dhcp-client-service-type) #) > > ERROR: In procedure %resolve-variable: > error: dhcp-client-service-type: unbound variable > 2018-11-01T20:55:44 failed to evaluate spec 'guix-master' > > > I assume something has actually gone wrong, but I have no idea where > this error is coming from, I can't even find primitive-load-path called > from anywhere in cuirass or guix. Any ideas? I believe it's because this snippet is missing from the 'eval-when' expression: --8<---------------cut here---------------start------------->8--- (set! %load-compiled-path (list (dirname (dirname (search-path (reverse %load-compiled-path) "ice-9/boot-9.go"))))) --8<---------------cut here---------------end--------------->8--- See how it's used in Guix's build-aux/hydra/gnu-system.scm. Note that you can't test it easily unless you use a local source for Cuirass as in random.scm with (#:url . ,(string-append "file://" top-srcdir)), and commit your change. That said, I don't think the above snippet is the right solution. The fundamental problem is that we are copying code from Guix, and don't maintain it. So the good solution, in my opinion, would be to use (#:proc-input . "guix") (#:proc-file . "build-aux/hydra/gnu-system.scm") and to remove the now useless Cuirass input and examples/gnu-system.scm file. And of course you can still use the random.scm example which should work well. I hope it helps! Cl=C3=A9ment