Hi Danny,

guix-comm...@gnu.org writes:

> dannym pushed a commit to branch master
> in repository guix.
>
> commit 49ec5d88c5770ae49b45849cb691c8921ecf4ca7
> Author: Danny Milosavljevic <dan...@scratchpost.org>
> Date:   Mon Jan 14 15:44:16 2019 +0100
>
>     tests: docker: Run a guest guile inside the docker container.
>     
>     * gnu/tests/docker.scm (run-docker-test): Add parameters.  Load and run
>     docker container.  Check response of guest guile.
>     (build-tarball&run-docker-test): New procedure.
>     (%test-docker): Use it.
>     [description]: Modify.

[...]

> +(define (build-tarball&run-docker-test)
> +  (mlet* %store-monad
> +      ((_ (set-grafting #f))
> +       (guile (set-guile-for-build (default-guile)))
> +       (guest-script-package ->
> +        (dummy-package "guest-script"
> +                       (build-system trivial-build-system)

This introduces a duplicate field initializer in the expanded 'package'
object, because the 'dummy-package' macro introduces its own
'build-system' field initializer.  From (guix tests):

  (define-syntax-rule (dummy-package name* extra-fields ...)
    "Return a \"dummy\" package called NAME*, with all its compulsory fields
  initialized with default values, and with EXTRA-FIELDS set as specified."
    (package extra-fields ...
             (name name*) (version "0") (source #f)
             (build-system gnu-build-system)
             (synopsis #f) (description #f)
             (home-page #f) (license #f)))

If you need to use trivial-build-system, then I think you can't use the
'dummy-package' macro as it's currently implemented.

      Regards,
        Mark

Reply via email to