[PATCH] gnu: sbcl-njson: Update to 0.2.1.

  • Done
  • quality assurance status badge
Details
2 participants
  • Guillaume Le Vaillant
  • Artyom Bologov
Owner
unassigned
Submitted by
Artyom Bologov
Severity
normal

Debbugs page

Artyom Bologov wrote 2 years ago
(address . guix-patches@gnu.org)
87mt8xpsb3.fsf@aartaka.me
Hello Guix,

This updates sbcl-njson to the current latest 0.2.1.
From 9de165a20da14c46e344722760c832685cd2f73c Mon Sep 17 00:00:00 2001
From: Artyom Bologov <mail@aartaka.me>
Date: Fri, 11 Nov 2022 16:45:41 +0400
Subject: [PATCH] gnu: sbcl-njson: Update to 0.2.1.

* gnu/packages/lisp-xyz.scm (sbcl-njson): Update to 0.2.1.
---
gnu/packages/lisp-xyz.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

Toggle diff (35 lines)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index b3c5eec050..0ef0d11603 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -22540,7 +22540,7 @@ (define-public ecl-nkeymaps
(define-public sbcl-njson
(package
(name "sbcl-njson")
- (version "0.1.0")
+ (version "0.2.1")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -22549,7 +22549,7 @@ (define-public sbcl-njson
(file-name (git-file-name "cl-njson" version))
(sha256
(base32
- "0lv3q1841s4avii1jp89r91jq21sids2ycpy2id0kzhrljzhmy6j"))))
+ "0ax3l53rizqlfyazqa899mplr2snmwgv873z9lbjjplm6brld0hf"))))
(build-system asdf-build-system/sbcl)
(inputs (list sbcl-cl-json))
(native-inputs (list sbcl-lisp-unit2))
@@ -22576,6 +22576,10 @@ (define-public sbcl-njson
@item @code{jif}, @code{jwhen}, @code{jor}, @code{jand}, and other macros
mimicking Lisp ones, while using truth values of JSON-decoded data.
+@item @code{njson/aliases} package to nickname to @code{j} for all the
+forms conveniently accessible as @code{j:rem}, @code{j:get},
+@code{j:if} etc.
+
@end itemize\n")
(license license:bsd-3)))
--
2.37.1
Thanks,
--
Artyom Bologov.
Guillaume Le Vaillant wrote 2 years ago
(name . Artyom Bologov)(address . mail@aartaka.me)(address . 59193@debbugs.gnu.org)
87pmdozgf6.fsf@kitej
Artyom Bologov <mail@aartaka.me> skribis:

Toggle quote (4 lines)
> Hello Guix,
>
> This updates sbcl-njson to the current latest 0.2.1.

The sbcl-nactivitypub package fails to build with sbcl-njson 0.2.1.
Could you take a look at it?
-----BEGIN PGP SIGNATURE-----

iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCY3NjHQ8cZ2x2QHBvc3Rl
by5uZXQACgkQa+ggit8h/j/5qAD+IeDQa9X/TjjW/U3ntcsNVajnVn/Qhmxe+XKm
j5VGMdcA/R9lk+fPtMTajKylF/kGDIlNibtD6hmRxchHwTcjoXG/
=QFZZ
-----END PGP SIGNATURE-----

Artyom Bologov wrote 2 years ago
(name . Guillaume Le Vaillant)(address . glv@posteo.net)
87cz9k1omt.fsf@aartaka.me
Hello Guillaume,

Toggle quote (3 lines)
> The sbcl-nactivitypub package fails to build with sbcl-njson 0.2.1.
> Could you take a look at it?

Yes, see the attached patch updating sbcl-nactivitypub too!
From cdb35daac895239ae6a7ec3d6bad5472f078630c Mon Sep 17 00:00:00 2001
From: Artyom Bologov <mail@aartaka.me>
Date: Fri, 18 Nov 2022 15:32:41 +0400
Subject: [PATCH] gnu: Update cl-nactivitypub to 0.0.3.

* gnu/packages/lisp-xyz.scm (sbcl-nactivitypub): Update to 0.0.3.
---
gnu/packages/lisp-xyz.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 360196bc49..b52bea9811 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -22588,7 +22588,7 @@ (define-public ecl-njson
(define-public sbcl-nactivitypub
(package
(name "sbcl-nactivitypub")
- (version "0.0.1")
+ (version "0.0.3")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -22597,7 +22597,7 @@ (define-public sbcl-nactivitypub
(file-name (git-file-name "cl-nactivitypub" version))
(sha256
(base32
- "07n8a9cfzc96kwsb6z4v5ns09ad2qyq45bjb779azcs7ds144a6r"))))
+ "0iyspb0nvqhqpzygj2fw85p0ya9gaz85q9vhdrvvrqzaxakp0dhz"))))
(build-system asdf-build-system/sbcl)
(inputs (list sbcl-cl-str
sbcl-dexador
--
2.37.1
Thanks,
--
Artyom.
Guillaume Le Vaillant wrote 2 years ago
(name . Artyom Bologov)(address . mail@aartaka.me)(address . 59193@debbugs.gnu.org)
87a64oct0l.fsf@kitej
Artyom Bologov <mail@aartaka.me> skribis:

Toggle quote (12 lines)
> Hello Guillaume,
>
>> The sbcl-nactivitypub package fails to build with sbcl-njson 0.2.1.
>> Could you take a look at it?
>
> Yes, see the attached patch updating sbcl-nactivitypub too!
>
> [2. Update cl-nactivitypub. --- text/x-patch; 0001-gnu-Update-cl-nactivitypub-to-0.0.3.patch]...
>
>
> Thanks,

Hi,

The sbcl-nactivitypub-0.0.3 package still fails to build.

The first error I got was: "The name NJSON/ALIASES does not designate
any package." I was able to get a bit further by applying the attached
patch to build the missing njson/aliases subsystem and adding it to
the 'depends-on' field in "nactivitypub.asd".

I then hit another error: "nactivitypub.lisp" is trying to use
a njson/aliases:truep symbol that doesn't exist. I took a look at
exported symbols of njson and njson/aliases, and I think nactivitypub
should use either njson:jtruep or njson/aliases:true.
From 1896223a12fb5713a12b81fb683232ddc8a06b61 Mon Sep 17 00:00:00 2001
From: Guillaume Le Vaillant <glv@posteo.net>
Date: Fri, 18 Nov 2022 13:34:32 +0100
Subject: [PATCH] gnu: cl-njson: Build extra systems.

* gnu/packages/lisp-xyz.scm (sbcl-njson)[arguments]: Add "njson/aliases" and
"njson/cl-json" to 'asd-systems'.
---
gnu/packages/lisp-xyz.scm | 2 ++
1 file changed, 2 insertions(+)

Toggle diff (15 lines)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 1c0100bbe4..b3abe264f0 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -22804,6 +22804,8 @@ (define-public sbcl-njson
(build-system asdf-build-system/sbcl)
(inputs (list sbcl-cl-json))
(native-inputs (list sbcl-lisp-unit2))
+ (arguments
+ '(#:asd-systems '("njson" "njson/aliases" "njson/cl-json")))
(home-page "https://github.com/atlas-engineer/njson")
(synopsis "JSON handling framework for Common Lisp")
(description
--
2.38.1
-----BEGIN PGP SIGNATURE-----

iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCY3eDGg8cZ2x2QHBvc3Rl
by5uZXQACgkQa+ggit8h/j/kiAD/YUx0hvSNsuR8Yh2p1iKsNNaRgGKbv3dJ/LB3
A4TyAKQA/jv+NK2wxsmHoeMNHg9WDioCMNm7Y6kgsimhST/OE4OH
=cetP
-----END PGP SIGNATURE-----

Artyom Bologov wrote 2 years ago
(name . Guillaume Le Vaillant)(address . glv@posteo.net)
8735ag6qza.fsf@aartaka.me
Hi,

Toggle quote (12 lines)
> The sbcl-nactivitypub-0.0.3 package still fails to build.
>
> The first error I got was: "The name NJSON/ALIASES does not designate
> any package." I was able to get a bit further by applying the attached
> patch to build the missing njson/aliases subsystem and adding it to
> the 'depends-on' field in "nactivitypub.asd".
>
> I then hit another error: "nactivitypub.lisp" is trying to use
> a njson/aliases:truep symbol that doesn't exist. I took a look at
> exported symbols of njson and njson/aliases, and I think nactivitypub
> should use either njson:jtruep or njson/aliases:true.

Indeed! Thanks for taking the look at it and pointing me in the right
direction! I've updated both njson and nactivitypub and now they should
be mutually compatible, see the attached patches.
From 26bda1e9fef83142b53a29c8168fb548dbc68594 Mon Sep 17 00:00:00 2001
From: Artyom Bologov <mail@aartaka.me>
Date: Fri, 18 Nov 2022 22:41:09 +0400
Subject: [PATCH] gnu: Update cl-njson to 0.2.3.

* gnu/package/lisp-xyz.scm (sbcl-njson): Update to 0.2.3.
---
gnu/packages/lisp-xyz.scm | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

Toggle diff (40 lines)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 360196bc49..cc5e8085ae 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -22540,7 +22540,7 @@ (define-public ecl-nkeymaps
(define-public sbcl-njson
(package
(name "sbcl-njson")
- (version "0.1.0")
+ (version "0.2.3")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -22549,10 +22549,12 @@ (define-public sbcl-njson
(file-name (git-file-name "cl-njson" version))
(sha256
(base32
- "0lv3q1841s4avii1jp89r91jq21sids2ycpy2id0kzhrljzhmy6j"))))
+ "11s6qq719zlrpy0kb1id9qnrm73yrc3xi560k4s8cj79fy4nj0ib"))))
(build-system asdf-build-system/sbcl)
(inputs (list sbcl-cl-json))
(native-inputs (list sbcl-lisp-unit2))
+ (arguments
+ '(#:asd-systems '("njson" "njson/aliases" "njson/cl-json")))
(home-page "https://github.com/atlas-engineer/njson")
(synopsis "JSON handling framework for Common Lisp")
(description
@@ -22576,6 +22578,10 @@ (define-public sbcl-njson
@item @code{jif}, @code{jwhen}, @code{jor}, @code{jand}, and other macros
mimicking Lisp ones, while using truth values of JSON-decoded data.
+@item @code{njson/aliases} package to nickname to @code{j} for all the
+forms conveniently accessible as @code{j:rem}, @code{j:get},
+@code{j:if} etc.
+
@end itemize\n")
(license license:bsd-3)))
--
2.37.1
From 11e0197f8c708addb422597d9ef86f5c4942135d Mon Sep 17 00:00:00 2001
From: Artyom Bologov <mail@aartaka.me>
Date: Fri, 18 Nov 2022 22:36:55 +0400
Subject: [PATCH] gnu: Update cl-nactivitypub to 0.0.4

* gnu/packages/lisp-xyz.scm (sbcl-nactivitypub): Update to 0.0.4.
---
gnu/packages/lisp-xyz.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 360196bc49..4ec0871f88 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -22588,7 +22588,7 @@ (define-public ecl-njson
(define-public sbcl-nactivitypub
(package
(name "sbcl-nactivitypub")
- (version "0.0.1")
+ (version "0.0.4")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -22597,7 +22597,7 @@ (define-public sbcl-nactivitypub
(file-name (git-file-name "cl-nactivitypub" version))
(sha256
(base32
- "07n8a9cfzc96kwsb6z4v5ns09ad2qyq45bjb779azcs7ds144a6r"))))
+ "06vzaqwwc9j8r89ld3fd6bbbfd5bl0jh132rlf9wxmr0xcaqwkrl"))))
(build-system asdf-build-system/sbcl)
(inputs (list sbcl-cl-str
sbcl-dexador
--
2.37.1
Thanks,
--
Artyom.
Guillaume Le Vaillant wrote 2 years ago
(name . Artyom Bologov)(address . mail@aartaka.me)(address . 59193-done@debbugs.gnu.org)
87pmdj6tnq.fsf@kitej
Patches pushed as 337fe45544c2e89127d79557f9a05a0fa237c779 and
following.
Thanks.
-----BEGIN PGP SIGNATURE-----

iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCY3jFWQ8cZ2x2QHBvc3Rl
by5uZXQACgkQa+ggit8h/j+QagD+ID+ofdZOXNr9myRoOSXd6Lh98uSqdrJ6Sm32
iFnZ+kMA/22RIL0ACWxgYITFklmNzlshWMIj/90PQPN+qTs5tqeV
=3n7X
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 59193@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 59193
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help