unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#61665] [PATCH] gnu: python-clingo: Fix invalid G-expression input.
@ 2023-02-21  1:00 Simon Tournier
  2023-02-21  5:31 ` Liliana Marie Prikler
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Tournier @ 2023-02-21  1:00 UTC (permalink / raw)
  To: 61665; +Cc: Simon Tournier, liliana.prikler

* 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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#61665] [PATCH] gnu: python-clingo: Fix invalid G-expression input.
  2023-02-21  1:00 [bug#61665] [PATCH] gnu: python-clingo: Fix invalid G-expression input Simon Tournier
@ 2023-02-21  5:31 ` Liliana Marie Prikler
  2023-02-21 12:52   ` Christopher Baines
  0 siblings, 1 reply; 3+ messages in thread
From: Liliana Marie Prikler @ 2023-02-21  5:31 UTC (permalink / raw)
  To: Simon Tournier, 61665

Am Dienstag, dem 21.02.2023 um 02:00 +0100 schrieb Simon Tournier:
> * 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.
Thanks.

> Well, I have not found the correct G-exp syntax for #:imported-
> modules.
Quoting works fine.

> 
>  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
Reworded slightly and pushed (it's a hotfix and CI succeeds).

Cheers




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#61665] [PATCH] gnu: python-clingo: Fix invalid G-expression input.
  2023-02-21  5:31 ` Liliana Marie Prikler
@ 2023-02-21 12:52   ` Christopher Baines
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2023-02-21 12:52 UTC (permalink / raw)
  To: 61665-done, 61665

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


Liliana Marie Prikler <liliana.prikler@gmail.com> writes:

>>  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
> Reworded slightly and pushed (it's a hotfix and CI succeeds).

Closing accordingly.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-21 12:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21  1:00 [bug#61665] [PATCH] gnu: python-clingo: Fix invalid G-expression input Simon Tournier
2023-02-21  5:31 ` Liliana Marie Prikler
2023-02-21 12:52   ` Christopher Baines

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).