From: Simon Tournier <zimon.toutoune@gmail.com>
To: 61665@debbugs.gnu.org
Cc: Simon Tournier <zimon.toutoune@gmail.com>, liliana.prikler@gmail.com
Subject: [bug#61665] [PATCH] gnu: python-clingo: Fix invalid G-expression input.
Date: Tue, 21 Feb 2023 02:00:18 +0100 [thread overview]
Message-ID: <20230221010018.2689405-1-zimon.toutoune@gmail.com> (raw)
* gnu/packages/maths.scm (python-clingo)[arguments]: Add 'imported-modules'
and 'modules' in order to access to 'python:site-packages'.
[version]: Explicitly reuse from the package 'clingo'.
---
Hi,
This package seems broken:
--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=e8fcf1e424 -- build python-clingo
guix build: erreur : #<procedure version ()> : entrée G-expression invalide
--8<---------------cut here---------------end--------------->8---
The issue seems coming from the field 'version'. Then, commit
8285093cee000d6e28c040f721ddf0be18d32c42 introduces #$version which introduces
the failure.
Well, I have not found the correct G-exp syntax for #:imported-modules.
Cheers,
simon
gnu/packages/maths.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 1e40be8722..67634990ae 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2703,12 +2703,20 @@ (define-public python-clingo
(package
(inherit clingo)
(name "python-clingo")
+ (version (package-version clingo)) ;Fix error: invalid G-expression #$version
(arguments
(substitute-keyword-arguments (package-arguments clingo)
((#:configure-flags flags #~'())
#~(cons* "-DCLINGO_BUILD_WITH_PYTHON=pip"
"-DCLINGO_USE_LIB=yes"
#$flags))
+ ((#:imported-modules _ '())
+ `(,@%cmake-build-system-modules
+ (guix build python-build-system)))
+ ((#:modules _ '())
+ '((guix build cmake-build-system)
+ ((guix build python-build-system) #:prefix python:)
+ (guix build utils)))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(add-after 'unpack 'fix-failing-tests
base-commit: e8fcf1e42438113d7e4be82dc5a06de45eaceb76
--
2.38.1
next reply other threads:[~2023-02-21 1:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 1:00 Simon Tournier [this message]
2023-02-21 5:31 ` [bug#61665] [PATCH] gnu: python-clingo: Fix invalid G-expression input Liliana Marie Prikler
2023-02-21 12:52 ` Christopher Baines
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=20230221010018.2689405-1-zimon.toutoune@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=61665@debbugs.gnu.org \
--cc=liliana.prikler@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).