Skip to contentSkip to conversation

cirrus-ci: add json-c for libxl dependency

PATCH In review Roger Pau Monne 3 participants 4 messages Oct 7, 2025 – Oct 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cirrus-ci: add json-c for libxl dependency

Add json-c package for libxl usage. At the same time drop YAJL.

---
Would be nice to have for 4.21, so that we test with json-c instead of YAJL. I plan to switch the FreeBSD Xen port use json-c for 4.21.

All seems fine:

https://cirrus-ci.com/build/5366905441091584

---
 .cirrus.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.cirrus.yml +1 -1
index 7df7ff552222..0de1012d8c60 100644
@@ -50,7 +50,7 @@ task:
 
   install_script: pkg install -y seabios gmake ninja bash
                                  pkgconf bison perl5
-                                 yajl lzo2 pixman argp-standalone
+                                 json-c lzo2 pixman argp-standalone
                                  libxml2 glib git python3 libinotify
 
   configure_script:
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Roger Pau Monne

Add json-c package for libxl usage. At the same time drop YAJL.

---
Would be nice to have for 4.21, so that we test with json-c instead of YAJL. I plan to switch the FreeBSD Xen port use json-c for 4.21.

All seems fine:

https://cirrus-ci.com/build/5366905441091584

---
 .cirrus.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.cirrus.yml +0 -0
index 7df7ff552222..0de1012d8c60 100644

.cirrus.yml task: · line 56

Quoted 8 lines
.cirrus.yml +1 -1
@@ -50,7 +50,7 @@ task:
 
   install_script: pkg install -y seabios gmake ninja bash
                                  pkgconf bison perl5
-                                 yajl lzo2 pixman argp-standalone
+                                 json-c lzo2 pixman argp-standalone
                                  libxml2 glib git python3 libinotify
 
   configure_script:

Comparing before and after, we've got:

- yajl: 2.1.0

- Number of packages to be installed: 27
+ Number of packages to be installed: 26

So, json-c seems to be in the base image, but even that points to it being a more popular library and the right way for Xen to be moving.

#2 lore raw
Quoted 32 lines · Andrew Cooper
Quoted 19 lines · Roger Pau Monne

Add json-c package for libxl usage. At the same time drop YAJL.

---
Would be nice to have for 4.21, so that we test with json-c instead of YAJL. I plan to switch the FreeBSD Xen port use json-c for 4.21.

All seems fine:

https://cirrus-ci.com/build/5366905441091584

---
 .cirrus.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.cirrus.yml +0 -0
index 7df7ff552222..0de1012d8c60 100644

.cirrus.yml task: · line 56

Quoted 8 lines
.cirrus.yml +1 -1
@@ -50,7 +50,7 @@ task:
 
   install_script: pkg install -y seabios gmake ninja bash
                                  pkgconf bison perl5
-                                 yajl lzo2 pixman argp-standalone
+                                 json-c lzo2 pixman argp-standalone
                                  libxml2 glib git python3 libinotify
 
   configure_script:

Comparing before and after, we've got:

Quoted 7 lines

- yajl: 2.1.0

- Number of packages to be installed: 27
+ Number of packages to be installed: 26

So, json-c seems to be in the base image, but even that points to it being a more popular library and the right way for Xen to be moving.

My bet (I haven't checked) is that it's also used by the cloud init scripts that are packed in gcloud images used by Cirrus-CI. It's not part of the base (non-cloud) images AFAICT.

Quoted 1 line

Thanks, Roger.

#3 lore raw
In reply to Roger Pau Monne
Quoted 6 lines · Roger Pau Monne

Add json-c package for libxl usage. At the same time drop YAJL.

---
Would be nice to have for 4.21, so that we test with json-c instead of YAJL. I plan to switch the FreeBSD Xen port use json-c for 4.21.

Thanks.

~ Oleksii

Quoted 21 lines

All seems fine:

https://cirrus-ci.com/build/5366905441091584

---
  .cirrus.yml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
.cirrus.yml +1 -1
index 7df7ff552222..0de1012d8c60 100644
@@ -50,7 +50,7 @@ task:
 
    install_script: pkg install -y seabios gmake ninja bash
                                   pkgconf bison perl5
-                                 yajl lzo2 pixman argp-standalone
+                                 json-c lzo2 pixman argp-standalone
                                   libxml2 glib git python3 libinotify
 
    configure_script: