all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: guix-devel@gnu.org
Subject: Re: 01/01: tests: docker: Run a guest guile inside the docker container.
Date: Thu, 17 Jan 2019 17:20:00 -0500	[thread overview]
Message-ID: <87h8e72afo.fsf@netris.org> (raw)
In-Reply-To: <20190115111740.4E2CA20537@vcs0.savannah.gnu.org> (guix-commits's message of "Tue, 15 Jan 2019 06:17:40 -0500 (EST)")

Hi Danny,

guix-commits@gnu.org writes:

> dannym pushed a commit to branch master
> in repository guix.
>
> commit 49ec5d88c5770ae49b45849cb691c8921ecf4ca7
> Author: Danny Milosavljevic <dannym@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	other threads:[~2019-01-17 22:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190115111739.3607.13533@vcs0.savannah.gnu.org>
     [not found] ` <20190115111740.4E2CA20537@vcs0.savannah.gnu.org>
2019-01-17 22:20   ` Mark H Weaver [this message]
2019-01-18 21:24     ` 01/01: tests: docker: Run a guest guile inside the docker container Danny Milosavljevic
2019-01-19 23:04     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h8e72afo.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.