all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: "Jérémy Korwin-Zmijowski" <jeremy@korwin-zmijowski.fr>
Cc: Guix Help <help-guix@gnu.org>
Subject: Re: Advice about guile-spec package definition
Date: Thu, 1 Apr 2021 10:22:25 +0300	[thread overview]
Message-ID: <YGV0sRLPIF61gQ2m@3900XT> (raw)
In-Reply-To: <5b3fcfc965a4b8fe9cc87a362aad6e5ab63d3420.camel@korwin-zmijowski.fr>

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

On Wed, Mar 31, 2021 at 11:13:55PM +0200, Jérémy Korwin-Zmijowski wrote:
> Dear Guixters,
> 
> Hope you are doing well !
> 
> I am working on the package definition for 
> https://framagit.org/Jeko/guile-spec (file: guix.scm). It is a set of
> macro based on SRFI-64.
> 
> The definition's inputs field is filled with guile-3.0 (or the guix
> build reports an error with a stack trace I can't understand haha).
> 
> For Guix users willing to try guile-spec before installing it, I know
> guix environment can help.
> 
> But…
> 
> When I use guild (with highest warning level) to compile t.scm[1] in an
> environment based on this definition, it raises unknown warnings :
> 
> $ guix environment -l guix.scm -- guild compile -W3 /tmp/t.scm
> warning: unknown warning type `#{3}#'
> wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.2/tmp/t.scm.go'
> 
> When I call it outside of the environment, the warning is fine :
> 
> $ guild compile -W3 /tmp/t.scm
> /tmp/t.scm:3:0: warning: unused variable `name'
> wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.4/tmp/t.scm.go'
> 
> When I remove Guile from the definition's inputs fiels, the warning is
> fine :
> 
> $ guix environment -l guix.scm -- guild compile -W3 /tmp/t.scm
> /tmp/t.scm:3:0: warning: unused variable `name'
> wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.4/tmp/t.scm.go'
> 
> 
> [1] t.scm doesn't use guile-spec macro to narrow the context
> $ cat /tmp/t.scm 
> (use-modules (srfi srfi-64))
> (test-begin "group")
> (test-assert "test" #t)
> (test-end)
> 
> 
> How can I make it to work ? Maybe I misuse something here… Let me know
> !
> 

The difference could be the version of guile. What's the output of
'guile --version' and 'guix environment -l guix.scm -- guile --version'?

-- 
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 --]

  reply	other threads:[~2021-04-01  7:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-31 21:13 Advice about guile-spec package definition Jérémy Korwin-Zmijowski
2021-04-01  7:22 ` Efraim Flashner [this message]
2021-04-01  9:39   ` Jérémy Korwin-Zmijowski
2021-04-01 10:16     ` Efraim Flashner
2021-04-01 11:21       ` Jérémy Korwin-Zmijowski
2021-04-01 12:17         ` Efraim Flashner
2021-04-01 13:09           ` Jérémy Korwin-Zmijowski

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=YGV0sRLPIF61gQ2m@3900XT \
    --to=efraim@flashner.co.il \
    --cc=help-guix@gnu.org \
    --cc=jeremy@korwin-zmijowski.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.
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.