all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cuirass hello-singleton.scm example issue
@ 2018-11-01 21:33 Christopher Baines
  2018-11-02 12:03 ` Clément Lassieur
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Baines @ 2018-11-01 21:33 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]

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

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?

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cuirass hello-singleton.scm example issue
  2018-11-01 21:33 Cuirass hello-singleton.scm example issue Christopher Baines
@ 2018-11-02 12:03 ` Clément Lassieur
  0 siblings, 0 replies; 2+ messages in thread
From: Clément Lassieur @ 2018-11-02 12:03 UTC (permalink / raw)
  To: Christopher Baines; +Cc: Guix-devel

Hey Christopher,

Christopher Baines <mail@cbaines.net> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-02 12:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-01 21:33 Cuirass hello-singleton.scm example issue Christopher Baines
2018-11-02 12:03 ` Clément Lassieur

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.