guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cuirass hello-singleton.scm example issue


From: Clément Lassieur
Subject: Re: Cuirass hello-singleton.scm example issue
Date: Fri, 02 Nov 2018 13:03:58 +0100
User-agent: mu4e 1.0; emacs 26.1

Hey Christopher,

Christopher Baines <address@hidden> 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 (_ #(#(#(#(#(#(#(#<directory (gnu system install) 36443c0> …) …) 
> …) …) …) …) …))
>     163:9  3 (_ #(#(#(#(#(#(#(#<directory (gnu system install) 36443c0> …) …) 
> …) …) …) …) …))
>     159:9  2 (_ #(#(#(#(#(#(#(#<directory (gnu system install) 36443c0> …) …) 
> …) …) …) …) …))
>    223:20  1 (proc #(#(#(#(#(#(#(#<directory (gnu system install) 364…> …) …) 
> …) …) …) …) …))
> In unknown file:
>            0 (%resolve-variable (7 . dhcp-client-service-type) #<directory 
> (gnu system ins…>)
>
> 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ément



reply via email to

[Prev in Thread] Current Thread [Next in Thread]