unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#73794] [PATCH staging 0/2] Upgrade json-c to v0.18
@ 2024-10-13 15:38 Aaron Covrig via Guix-patches via
  2024-10-13 15:43 ` [bug#73794] [PATCH staging 1/2] gnu: json-c: Update " Aaron Covrig via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: Aaron Covrig via Guix-patches via @ 2024-10-13 15:38 UTC (permalink / raw)
  To: 73794; +Cc: Aaron Covrig

This upgrades json-c to v0.18 and adds json-c-0.15 incase someone needs
to depend on the older version. I have not built all the json-c
dependent packages (`guix refresh --list-dependent json-c`); but had no
issues building the packages found within the repo using `rg ' json-c
'`. Additionally, this upgrades the json-c dependency for hubbub to the
latest version (build succeeded with json-c v0.18). I believe this
removes all the json-c@0.12 dependents so that this library can now be
removed as was mentioned in the web.scm file.

Hubbub README on json-c inclusion can be found here:
https://github.com/servo/libhubbub/blob/6d09893991dedc616b264058442a304c03842213/README#L27

I have not attempted to replace json-c@v0.13; doing so looks like it
will require several other packages to be upgraded first.

Aaron Covrig (2):
  gnu: json-c: Update to v0.18
  gnu: hubbub: Remove dependency on json-c v0.12

 gnu/packages/web.scm | 38 +++++++++++++++++++++++++++-----------
 1 file changed, 27 insertions(+), 11 deletions(-)


base-commit: e032a0f38ff3394816fdc29554933ce77c545eff
-- 
2.46.0





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

* [bug#73794] [PATCH staging 1/2] gnu: json-c: Update to v0.18
  2024-10-13 15:38 [bug#73794] [PATCH staging 0/2] Upgrade json-c to v0.18 Aaron Covrig via Guix-patches via
@ 2024-10-13 15:43 ` Aaron Covrig via Guix-patches via
  2024-10-13 15:43   ` [bug#73794] [PATCH staging 2/2] gnu: hubbub: Remove dependency on json-c v0.12 Aaron Covrig via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: Aaron Covrig via Guix-patches via @ 2024-10-13 15:43 UTC (permalink / raw)
  To: 73794; +Cc: Aaron Covrig

* gnu/packages/web.scm (json-c): Update to v0.18
* gnu/packages/web.scm (json-c-0.15): New variable
---
 gnu/packages/web.scm | 36 ++++++++++++++++++++++++++----------
 1 file changed, 26 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index f1938d7b11..53238e7f16 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1269,16 +1269,17 @@ (define-public jansson
 (define-public json-c
   (package
     (name "json-c")
-    (version "0.15")
-    (source (origin
-             (method url-fetch)
-             (uri (string-append
-                   "https://s3.amazonaws.com/json-c_releases/releases/json-c-"
-                   version ".tar.gz"))
-             (sha256
-              (base32
-               "1im484iz08j3gmzpw07v16brwq46pxxj65i996kkp2vivcfhmn5q"))))
+    (version "0.18")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://s3.amazonaws.com/json-c_releases/releases/json-c-"
+             version ".tar.gz"))
+       (sha256
+        (base32 "090pn7gyicvpqq01451zhkjw1fw3h4l6v2f6mxlvhrli8x3b0sl7"))))
     (build-system cmake-build-system)
+    (native-inputs (list doxygen))
     (home-page "https://github.com/json-c/json-c/wiki")
     (synopsis "JSON implementation in C")
     (description
@@ -1288,10 +1289,25 @@ (define-public json-c
 It aims to conform to RFC 7159.")
     (license license:x11)))
 
+(define-public json-c-0.15
+  (package
+    (inherit json-c)
+    (name "json-c")
+    (version "0.15")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append
+                   "https://s3.amazonaws.com/json-c_releases/releases/json-c-"
+                   version ".tar.gz"))
+             (sha256
+              (base32
+               "1im484iz08j3gmzpw07v16brwq46pxxj65i996kkp2vivcfhmn5q"))))
+    (build-system cmake-build-system)))
+
 ;; TODO: Remove these old versions when all dependents have been updated.
 (define-public json-c-0.13
   (package
-    (inherit json-c)
+    (inherit json-c-0.15)
     (version "0.13.1")
     (source (origin
              (method url-fetch)
-- 
2.46.0





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

* [bug#73794] [PATCH staging 2/2] gnu: hubbub: Remove dependency on json-c v0.12
  2024-10-13 15:43 ` [bug#73794] [PATCH staging 1/2] gnu: json-c: Update " Aaron Covrig via Guix-patches via
@ 2024-10-13 15:43   ` Aaron Covrig via Guix-patches via
  0 siblings, 0 replies; 3+ messages in thread
From: Aaron Covrig via Guix-patches via @ 2024-10-13 15:43 UTC (permalink / raw)
  To: 73794; +Cc: Aaron Covrig

* gnu/packages/web.scm (hubbub): Update json-c dependency
---
 gnu/packages/web.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 53238e7f16..cf15e9328a 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5797,7 +5797,7 @@ (define-public hubbub
            pkg-config
            doxygen
            gperf
-           json-c-0.12 ; check whether json-c-0.12 can be removed
+           json-c
            perl))
     (propagated-inputs
      (list libparserutils)) ;for libhubbub.pc
-- 
2.46.0





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

end of thread, other threads:[~2024-10-13 15:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-13 15:38 [bug#73794] [PATCH staging 0/2] Upgrade json-c to v0.18 Aaron Covrig via Guix-patches via
2024-10-13 15:43 ` [bug#73794] [PATCH staging 1/2] gnu: json-c: Update " Aaron Covrig via Guix-patches via
2024-10-13 15:43   ` [bug#73794] [PATCH staging 2/2] gnu: hubbub: Remove dependency on json-c v0.12 Aaron Covrig via Guix-patches via

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