From: Efraim Flashner <efraim@flashner.co.il>
To: Philippe SWARTVAGHER <philippe.swartvagher@inria.fr>
Cc: help-guix@gnu.org
Subject: Re: Package variant defined in manifest not visible by Guix
Date: Mon, 16 Aug 2021 15:04:38 +0300 [thread overview]
Message-ID: <YRpUVk+WxKS8Ur86@3900XT> (raw)
In-Reply-To: <12b2c37e-7389-d46a-8938-51b3285fd97c@inria.fr>
[-- Attachment #1: Type: text/plain, Size: 1954 bytes --]
On Mon, Aug 16, 2021 at 10:08:34AM +0200, Philippe SWARTVAGHER wrote:
> Hello,
>
> I'm trying to use a manifest file to define a package variant which adds
> an option to the configure phase:
>
> ```
>
> (use-modules (inria storm))
>
> (define starpu-maxnodes1
> (package
> (inherit starpu)
> (arguments
> (substitute-keyword-arguments (package-arguments starpu)
> ((#:configure-flags flags '())
> `(cons "--enable-maxnodes=1"
> ,flags))))))
>
> ```
>
> When I'm trying to build this variant, guix can't find it:
>
> ```
>
> % guix build -c 2 -m starpu-maxnodes1.scm starpu-maxnodes1
> guix build: erreur : starpu-maxnodes1 : paquet inconnu
>
> ```
>
> I don't see what I'm doing wrong. Any idea ?
>
> Just if you want to try these exact commands, StarPU is a package
> defined in this channel:
Inherit inherits everything except for what you override, so your
package can be refered to as starpu-maxnodes1 when using it as an input
for another package (for example), but to build it from the command line
it still has the original name of "starpu".
Also, I haven't tried running 'guix build -m manifest.scm
package-in-manifest', so I don't know if that works or not.
> ```
>
> (channel
> (name 'guix-hpc)
> (url "https://gitlab.inria.fr/guix-hpc/guix-hpc.git")
> (commit
> "fa8cc70bc428c08a625a533f778537314be64ce7"))
>
> ```
>
> (I didn't subscribe to help-guix mailing list, so please keep me as
> recipient of your answers.)
>
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-08-16 12:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-16 8:08 Package variant defined in manifest not visible by Guix Philippe SWARTVAGHER
2021-08-16 12:04 ` Efraim Flashner [this message]
2021-08-16 14:34 ` Ricardo Wurmus
2021-08-17 7:17 ` zimoun
2021-08-18 8:57 ` Philippe SWARTVAGHER
2021-08-18 13:21 ` zimoun
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YRpUVk+WxKS8Ur86@3900XT \
--to=efraim@flashner.co.il \
--cc=help-guix@gnu.org \
--cc=philippe.swartvagher@inria.fr \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).