[libvirt PATCH 08/20] ci: install json-c too

Ján Tomko posted 20 patches 3 months, 1 week ago
There is a newer version of this series
[libvirt PATCH 08/20] ci: install json-c too
Posted by Ján Tomko 3 months, 1 week ago
Now that we actually have some working code using json-c, install
it in our CI to demonstrate that it works.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
---
 ci/buildenv/almalinux-9.sh                         | 1 +
 ci/buildenv/alpine-319.sh                          | 1 +
 ci/buildenv/alpine-edge.sh                         | 1 +
 ci/buildenv/centos-stream-9.sh                     | 1 +
 ci/buildenv/debian-11-cross-aarch64.sh             | 1 +
 ci/buildenv/debian-11-cross-armv6l.sh              | 1 +
 ci/buildenv/debian-11-cross-armv7l.sh              | 1 +
 ci/buildenv/debian-11-cross-i686.sh                | 1 +
 ci/buildenv/debian-11-cross-mips64el.sh            | 1 +
 ci/buildenv/debian-11-cross-mipsel.sh              | 1 +
 ci/buildenv/debian-11-cross-ppc64le.sh             | 1 +
 ci/buildenv/debian-11-cross-s390x.sh               | 1 +
 ci/buildenv/debian-11.sh                           | 1 +
 ci/buildenv/debian-12-cross-aarch64.sh             | 1 +
 ci/buildenv/debian-12-cross-armv6l.sh              | 1 +
 ci/buildenv/debian-12-cross-armv7l.sh              | 1 +
 ci/buildenv/debian-12-cross-i686.sh                | 1 +
 ci/buildenv/debian-12-cross-mips64el.sh            | 1 +
 ci/buildenv/debian-12-cross-mipsel.sh              | 1 +
 ci/buildenv/debian-12-cross-ppc64le.sh             | 1 +
 ci/buildenv/debian-12-cross-s390x.sh               | 1 +
 ci/buildenv/debian-12.sh                           | 1 +
 ci/buildenv/debian-sid-cross-aarch64.sh            | 1 +
 ci/buildenv/debian-sid-cross-armv6l.sh             | 1 +
 ci/buildenv/debian-sid-cross-armv7l.sh             | 1 +
 ci/buildenv/debian-sid-cross-i686.sh               | 1 +
 ci/buildenv/debian-sid-cross-mips64el.sh           | 1 +
 ci/buildenv/debian-sid-cross-ppc64le.sh            | 1 +
 ci/buildenv/debian-sid-cross-s390x.sh              | 1 +
 ci/buildenv/debian-sid.sh                          | 1 +
 ci/buildenv/fedora-39.sh                           | 1 +
 ci/buildenv/fedora-40.sh                           | 1 +
 ci/buildenv/fedora-rawhide.sh                      | 1 +
 ci/buildenv/opensuse-leap-15.sh                    | 1 +
 ci/buildenv/opensuse-tumbleweed.sh                 | 1 +
 ci/buildenv/ubuntu-2204.sh                         | 1 +
 ci/buildenv/ubuntu-2404.sh                         | 1 +
 ci/cirrus/freebsd-13.vars                          | 2 +-
 ci/cirrus/freebsd-14.vars                          | 2 +-
 ci/cirrus/macos-13.vars                            | 2 +-
 ci/cirrus/macos-14.vars                            | 2 +-
 ci/containers/almalinux-9.Dockerfile               | 1 +
 ci/containers/alpine-319.Dockerfile                | 1 +
 ci/containers/alpine-edge.Dockerfile               | 1 +
 ci/containers/centos-stream-9.Dockerfile           | 1 +
 ci/containers/debian-11-cross-aarch64.Dockerfile   | 1 +
 ci/containers/debian-11-cross-armv6l.Dockerfile    | 1 +
 ci/containers/debian-11-cross-armv7l.Dockerfile    | 1 +
 ci/containers/debian-11-cross-i686.Dockerfile      | 1 +
 ci/containers/debian-11-cross-mips64el.Dockerfile  | 1 +
 ci/containers/debian-11-cross-mipsel.Dockerfile    | 1 +
 ci/containers/debian-11-cross-ppc64le.Dockerfile   | 1 +
 ci/containers/debian-11-cross-s390x.Dockerfile     | 1 +
 ci/containers/debian-11.Dockerfile                 | 1 +
 ci/containers/debian-12-cross-aarch64.Dockerfile   | 1 +
 ci/containers/debian-12-cross-armv6l.Dockerfile    | 1 +
 ci/containers/debian-12-cross-armv7l.Dockerfile    | 1 +
 ci/containers/debian-12-cross-i686.Dockerfile      | 1 +
 ci/containers/debian-12-cross-mips64el.Dockerfile  | 1 +
 ci/containers/debian-12-cross-mipsel.Dockerfile    | 1 +
 ci/containers/debian-12-cross-ppc64le.Dockerfile   | 1 +
 ci/containers/debian-12-cross-s390x.Dockerfile     | 1 +
 ci/containers/debian-12.Dockerfile                 | 1 +
 ci/containers/debian-sid-cross-aarch64.Dockerfile  | 1 +
 ci/containers/debian-sid-cross-armv6l.Dockerfile   | 1 +
 ci/containers/debian-sid-cross-armv7l.Dockerfile   | 1 +
 ci/containers/debian-sid-cross-i686.Dockerfile     | 1 +
 ci/containers/debian-sid-cross-mips64el.Dockerfile | 1 +
 ci/containers/debian-sid-cross-ppc64le.Dockerfile  | 1 +
 ci/containers/debian-sid-cross-s390x.Dockerfile    | 1 +
 ci/containers/debian-sid.Dockerfile                | 1 +
 ci/containers/fedora-39.Dockerfile                 | 1 +
 ci/containers/fedora-40.Dockerfile                 | 1 +
 ci/containers/fedora-rawhide.Dockerfile            | 1 +
 ci/containers/opensuse-leap-15.Dockerfile          | 1 +
 ci/containers/opensuse-tumbleweed.Dockerfile       | 1 +
 ci/containers/ubuntu-2204.Dockerfile               | 1 +
 ci/containers/ubuntu-2404.Dockerfile               | 1 +
 ci/lcitool/projects/libvirt.yml                    | 1 +
 79 files changed, 79 insertions(+), 4 deletions(-)

diff --git a/ci/buildenv/almalinux-9.sh b/ci/buildenv/almalinux-9.sh
index 5791a73d23..6ca05b4add 100644
--- a/ci/buildenv/almalinux-9.sh
+++ b/ci/buildenv/almalinux-9.sh
@@ -37,6 +37,7 @@ function install_buildenv() {
         iproute-tc \
         iptables \
         iscsi-initiator-utils \
+        json-c-devel \
         kmod \
         libacl-devel \
         libattr-devel \
diff --git a/ci/buildenv/alpine-319.sh b/ci/buildenv/alpine-319.sh
index 43fcb38a46..fe8dcf8ab7 100644
--- a/ci/buildenv/alpine-319.sh
+++ b/ci/buildenv/alpine-319.sh
@@ -31,6 +31,7 @@ function install_buildenv() {
         grep \
         iproute2 \
         iptables \
+        json-c-dev \
         kmod \
         libcap-ng-dev \
         libnl3-dev \
diff --git a/ci/buildenv/alpine-edge.sh b/ci/buildenv/alpine-edge.sh
index 43fcb38a46..fe8dcf8ab7 100644
--- a/ci/buildenv/alpine-edge.sh
+++ b/ci/buildenv/alpine-edge.sh
@@ -31,6 +31,7 @@ function install_buildenv() {
         grep \
         iproute2 \
         iptables \
+        json-c-dev \
         kmod \
         libcap-ng-dev \
         libnl3-dev \
diff --git a/ci/buildenv/centos-stream-9.sh b/ci/buildenv/centos-stream-9.sh
index c23c60e026..ca5bce3eb9 100644
--- a/ci/buildenv/centos-stream-9.sh
+++ b/ci/buildenv/centos-stream-9.sh
@@ -38,6 +38,7 @@ function install_buildenv() {
         iproute-tc \
         iptables \
         iscsi-initiator-utils \
+        json-c-devel \
         kmod \
         libacl-devel \
         libattr-devel \
diff --git a/ci/buildenv/debian-11-cross-aarch64.sh b/ci/buildenv/debian-11-cross-aarch64.sh
index 8540fb8d74..2d9ad9064d 100644
--- a/ci/buildenv/debian-11-cross-aarch64.sh
+++ b/ci/buildenv/debian-11-cross-aarch64.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglusterfs-dev:arm64 \
             libgnutls28-dev:arm64 \
             libiscsi-dev:arm64 \
+            libjson-c-dev:arm64 \
             libnl-3-dev:arm64 \
             libnl-route-3-dev:arm64 \
             libnuma-dev:arm64 \
diff --git a/ci/buildenv/debian-11-cross-armv6l.sh b/ci/buildenv/debian-11-cross-armv6l.sh
index 131a7019c0..2be50a66c9 100644
--- a/ci/buildenv/debian-11-cross-armv6l.sh
+++ b/ci/buildenv/debian-11-cross-armv6l.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglusterfs-dev:armel \
             libgnutls28-dev:armel \
             libiscsi-dev:armel \
+            libjson-c-dev:armel \
             libnl-3-dev:armel \
             libnl-route-3-dev:armel \
             libnuma-dev:armel \
diff --git a/ci/buildenv/debian-11-cross-armv7l.sh b/ci/buildenv/debian-11-cross-armv7l.sh
index ba78ffcfac..6d6ef91868 100644
--- a/ci/buildenv/debian-11-cross-armv7l.sh
+++ b/ci/buildenv/debian-11-cross-armv7l.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglusterfs-dev:armhf \
             libgnutls28-dev:armhf \
             libiscsi-dev:armhf \
+            libjson-c-dev:armhf \
             libnl-3-dev:armhf \
             libnl-route-3-dev:armhf \
             libnuma-dev:armhf \
diff --git a/ci/buildenv/debian-11-cross-i686.sh b/ci/buildenv/debian-11-cross-i686.sh
index 104eb20805..b8bd49e3a8 100644
--- a/ci/buildenv/debian-11-cross-i686.sh
+++ b/ci/buildenv/debian-11-cross-i686.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglusterfs-dev:i386 \
             libgnutls28-dev:i386 \
             libiscsi-dev:i386 \
+            libjson-c-dev:i386 \
             libnl-3-dev:i386 \
             libnl-route-3-dev:i386 \
             libnuma-dev:i386 \
diff --git a/ci/buildenv/debian-11-cross-mips64el.sh b/ci/buildenv/debian-11-cross-mips64el.sh
index 7b1830453c..3d5b75139c 100644
--- a/ci/buildenv/debian-11-cross-mips64el.sh
+++ b/ci/buildenv/debian-11-cross-mips64el.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglusterfs-dev:mips64el \
             libgnutls28-dev:mips64el \
             libiscsi-dev:mips64el \
+            libjson-c-dev:mips64el \
             libnl-3-dev:mips64el \
             libnl-route-3-dev:mips64el \
             libnuma-dev:mips64el \
diff --git a/ci/buildenv/debian-11-cross-mipsel.sh b/ci/buildenv/debian-11-cross-mipsel.sh
index eef5cdbfab..20a97c165e 100644
--- a/ci/buildenv/debian-11-cross-mipsel.sh
+++ b/ci/buildenv/debian-11-cross-mipsel.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglusterfs-dev:mipsel \
             libgnutls28-dev:mipsel \
             libiscsi-dev:mipsel \
+            libjson-c-dev:mipsel \
             libnl-3-dev:mipsel \
             libnl-route-3-dev:mipsel \
             libnuma-dev:mipsel \
diff --git a/ci/buildenv/debian-11-cross-ppc64le.sh b/ci/buildenv/debian-11-cross-ppc64le.sh
index f2c2f60623..2b5ebf360d 100644
--- a/ci/buildenv/debian-11-cross-ppc64le.sh
+++ b/ci/buildenv/debian-11-cross-ppc64le.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglusterfs-dev:ppc64el \
             libgnutls28-dev:ppc64el \
             libiscsi-dev:ppc64el \
+            libjson-c-dev:ppc64el \
             libnl-3-dev:ppc64el \
             libnl-route-3-dev:ppc64el \
             libnuma-dev:ppc64el \
diff --git a/ci/buildenv/debian-11-cross-s390x.sh b/ci/buildenv/debian-11-cross-s390x.sh
index 519d9c8b31..1391685e46 100644
--- a/ci/buildenv/debian-11-cross-s390x.sh
+++ b/ci/buildenv/debian-11-cross-s390x.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglusterfs-dev:s390x \
             libgnutls28-dev:s390x \
             libiscsi-dev:s390x \
+            libjson-c-dev:s390x \
             libnl-3-dev:s390x \
             libnl-route-3-dev:s390x \
             libnuma-dev:s390x \
diff --git a/ci/buildenv/debian-11.sh b/ci/buildenv/debian-11.sh
index 5986682af8..e56ea3b3ec 100644
--- a/ci/buildenv/debian-11.sh
+++ b/ci/buildenv/debian-11.sh
@@ -44,6 +44,7 @@ function install_buildenv() {
             libglusterfs-dev \
             libgnutls28-dev \
             libiscsi-dev \
+            libjson-c-dev \
             libnetcf-dev \
             libnl-3-dev \
             libnl-route-3-dev \
diff --git a/ci/buildenv/debian-12-cross-aarch64.sh b/ci/buildenv/debian-12-cross-aarch64.sh
index 5fc7e8a801..4f7285e171 100644
--- a/ci/buildenv/debian-12-cross-aarch64.sh
+++ b/ci/buildenv/debian-12-cross-aarch64.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:arm64 \
             libgnutls28-dev:arm64 \
             libiscsi-dev:arm64 \
+            libjson-c-dev:arm64 \
             libnl-3-dev:arm64 \
             libnl-route-3-dev:arm64 \
             libnuma-dev:arm64 \
diff --git a/ci/buildenv/debian-12-cross-armv6l.sh b/ci/buildenv/debian-12-cross-armv6l.sh
index 24d7d80380..6d98d1deff 100644
--- a/ci/buildenv/debian-12-cross-armv6l.sh
+++ b/ci/buildenv/debian-12-cross-armv6l.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:armel \
             libgnutls28-dev:armel \
             libiscsi-dev:armel \
+            libjson-c-dev:armel \
             libnl-3-dev:armel \
             libnl-route-3-dev:armel \
             libnuma-dev:armel \
diff --git a/ci/buildenv/debian-12-cross-armv7l.sh b/ci/buildenv/debian-12-cross-armv7l.sh
index 35738e6bb2..39d064b659 100644
--- a/ci/buildenv/debian-12-cross-armv7l.sh
+++ b/ci/buildenv/debian-12-cross-armv7l.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:armhf \
             libgnutls28-dev:armhf \
             libiscsi-dev:armhf \
+            libjson-c-dev:armhf \
             libnl-3-dev:armhf \
             libnl-route-3-dev:armhf \
             libnuma-dev:armhf \
diff --git a/ci/buildenv/debian-12-cross-i686.sh b/ci/buildenv/debian-12-cross-i686.sh
index dce90645c0..aa91d6e08a 100644
--- a/ci/buildenv/debian-12-cross-i686.sh
+++ b/ci/buildenv/debian-12-cross-i686.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:i386 \
             libgnutls28-dev:i386 \
             libiscsi-dev:i386 \
+            libjson-c-dev:i386 \
             libnl-3-dev:i386 \
             libnl-route-3-dev:i386 \
             libnuma-dev:i386 \
diff --git a/ci/buildenv/debian-12-cross-mips64el.sh b/ci/buildenv/debian-12-cross-mips64el.sh
index 6d3e43aeb0..e3b92bf9db 100644
--- a/ci/buildenv/debian-12-cross-mips64el.sh
+++ b/ci/buildenv/debian-12-cross-mips64el.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:mips64el \
             libgnutls28-dev:mips64el \
             libiscsi-dev:mips64el \
+            libjson-c-dev:mips64el \
             libnl-3-dev:mips64el \
             libnl-route-3-dev:mips64el \
             libnuma-dev:mips64el \
diff --git a/ci/buildenv/debian-12-cross-mipsel.sh b/ci/buildenv/debian-12-cross-mipsel.sh
index b3a9ba1f40..7c5de342a4 100644
--- a/ci/buildenv/debian-12-cross-mipsel.sh
+++ b/ci/buildenv/debian-12-cross-mipsel.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:mipsel \
             libgnutls28-dev:mipsel \
             libiscsi-dev:mipsel \
+            libjson-c-dev:mipsel \
             libnl-3-dev:mipsel \
             libnl-route-3-dev:mipsel \
             libnuma-dev:mipsel \
diff --git a/ci/buildenv/debian-12-cross-ppc64le.sh b/ci/buildenv/debian-12-cross-ppc64le.sh
index 1cda4f7928..05f2a2bd54 100644
--- a/ci/buildenv/debian-12-cross-ppc64le.sh
+++ b/ci/buildenv/debian-12-cross-ppc64le.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:ppc64el \
             libgnutls28-dev:ppc64el \
             libiscsi-dev:ppc64el \
+            libjson-c-dev:ppc64el \
             libnl-3-dev:ppc64el \
             libnl-route-3-dev:ppc64el \
             libnuma-dev:ppc64el \
diff --git a/ci/buildenv/debian-12-cross-s390x.sh b/ci/buildenv/debian-12-cross-s390x.sh
index f0cbfad5a4..b092d59b9d 100644
--- a/ci/buildenv/debian-12-cross-s390x.sh
+++ b/ci/buildenv/debian-12-cross-s390x.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:s390x \
             libgnutls28-dev:s390x \
             libiscsi-dev:s390x \
+            libjson-c-dev:s390x \
             libnl-3-dev:s390x \
             libnl-route-3-dev:s390x \
             libnuma-dev:s390x \
diff --git a/ci/buildenv/debian-12.sh b/ci/buildenv/debian-12.sh
index 5f19ba7526..01777c2165 100644
--- a/ci/buildenv/debian-12.sh
+++ b/ci/buildenv/debian-12.sh
@@ -44,6 +44,7 @@ function install_buildenv() {
             libglusterfs-dev \
             libgnutls28-dev \
             libiscsi-dev \
+            libjson-c-dev \
             libnbd-dev \
             libnl-3-dev \
             libnl-route-3-dev \
diff --git a/ci/buildenv/debian-sid-cross-aarch64.sh b/ci/buildenv/debian-sid-cross-aarch64.sh
index 5fc7e8a801..4f7285e171 100644
--- a/ci/buildenv/debian-sid-cross-aarch64.sh
+++ b/ci/buildenv/debian-sid-cross-aarch64.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:arm64 \
             libgnutls28-dev:arm64 \
             libiscsi-dev:arm64 \
+            libjson-c-dev:arm64 \
             libnl-3-dev:arm64 \
             libnl-route-3-dev:arm64 \
             libnuma-dev:arm64 \
diff --git a/ci/buildenv/debian-sid-cross-armv6l.sh b/ci/buildenv/debian-sid-cross-armv6l.sh
index 46e374ea88..c5ced00879 100644
--- a/ci/buildenv/debian-sid-cross-armv6l.sh
+++ b/ci/buildenv/debian-sid-cross-armv6l.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglib2.0-dev:armel \
             libgnutls28-dev:armel \
             libiscsi-dev:armel \
+            libjson-c-dev:armel \
             libnl-3-dev:armel \
             libnl-route-3-dev:armel \
             libnuma-dev:armel \
diff --git a/ci/buildenv/debian-sid-cross-armv7l.sh b/ci/buildenv/debian-sid-cross-armv7l.sh
index c8bb1b9539..38c3dffe1a 100644
--- a/ci/buildenv/debian-sid-cross-armv7l.sh
+++ b/ci/buildenv/debian-sid-cross-armv7l.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglib2.0-dev:armhf \
             libgnutls28-dev:armhf \
             libiscsi-dev:armhf \
+            libjson-c-dev:armhf \
             libnl-3-dev:armhf \
             libnl-route-3-dev:armhf \
             libnuma-dev:armhf \
diff --git a/ci/buildenv/debian-sid-cross-i686.sh b/ci/buildenv/debian-sid-cross-i686.sh
index e74b2cee73..59694cca46 100644
--- a/ci/buildenv/debian-sid-cross-i686.sh
+++ b/ci/buildenv/debian-sid-cross-i686.sh
@@ -70,6 +70,7 @@ function install_buildenv() {
             libglib2.0-dev:i386 \
             libgnutls28-dev:i386 \
             libiscsi-dev:i386 \
+            libjson-c-dev:i386 \
             libnl-3-dev:i386 \
             libnl-route-3-dev:i386 \
             libnuma-dev:i386 \
diff --git a/ci/buildenv/debian-sid-cross-mips64el.sh b/ci/buildenv/debian-sid-cross-mips64el.sh
index 6d3e43aeb0..e3b92bf9db 100644
--- a/ci/buildenv/debian-sid-cross-mips64el.sh
+++ b/ci/buildenv/debian-sid-cross-mips64el.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:mips64el \
             libgnutls28-dev:mips64el \
             libiscsi-dev:mips64el \
+            libjson-c-dev:mips64el \
             libnl-3-dev:mips64el \
             libnl-route-3-dev:mips64el \
             libnuma-dev:mips64el \
diff --git a/ci/buildenv/debian-sid-cross-ppc64le.sh b/ci/buildenv/debian-sid-cross-ppc64le.sh
index 1cda4f7928..05f2a2bd54 100644
--- a/ci/buildenv/debian-sid-cross-ppc64le.sh
+++ b/ci/buildenv/debian-sid-cross-ppc64le.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:ppc64el \
             libgnutls28-dev:ppc64el \
             libiscsi-dev:ppc64el \
+            libjson-c-dev:ppc64el \
             libnl-3-dev:ppc64el \
             libnl-route-3-dev:ppc64el \
             libnuma-dev:ppc64el \
diff --git a/ci/buildenv/debian-sid-cross-s390x.sh b/ci/buildenv/debian-sid-cross-s390x.sh
index f0cbfad5a4..b092d59b9d 100644
--- a/ci/buildenv/debian-sid-cross-s390x.sh
+++ b/ci/buildenv/debian-sid-cross-s390x.sh
@@ -71,6 +71,7 @@ function install_buildenv() {
             libglusterfs-dev:s390x \
             libgnutls28-dev:s390x \
             libiscsi-dev:s390x \
+            libjson-c-dev:s390x \
             libnl-3-dev:s390x \
             libnl-route-3-dev:s390x \
             libnuma-dev:s390x \
diff --git a/ci/buildenv/debian-sid.sh b/ci/buildenv/debian-sid.sh
index 5f19ba7526..01777c2165 100644
--- a/ci/buildenv/debian-sid.sh
+++ b/ci/buildenv/debian-sid.sh
@@ -44,6 +44,7 @@ function install_buildenv() {
             libglusterfs-dev \
             libgnutls28-dev \
             libiscsi-dev \
+            libjson-c-dev \
             libnbd-dev \
             libnl-3-dev \
             libnl-route-3-dev \
diff --git a/ci/buildenv/fedora-39.sh b/ci/buildenv/fedora-39.sh
index db9d88eff4..06ae3bb62d 100644
--- a/ci/buildenv/fedora-39.sh
+++ b/ci/buildenv/fedora-39.sh
@@ -37,6 +37,7 @@ function install_buildenv() {
         iproute-tc \
         iptables \
         iscsi-initiator-utils \
+        json-c-devel \
         kmod \
         libacl-devel \
         libattr-devel \
diff --git a/ci/buildenv/fedora-40.sh b/ci/buildenv/fedora-40.sh
index db9d88eff4..06ae3bb62d 100644
--- a/ci/buildenv/fedora-40.sh
+++ b/ci/buildenv/fedora-40.sh
@@ -37,6 +37,7 @@ function install_buildenv() {
         iproute-tc \
         iptables \
         iscsi-initiator-utils \
+        json-c-devel \
         kmod \
         libacl-devel \
         libattr-devel \
diff --git a/ci/buildenv/fedora-rawhide.sh b/ci/buildenv/fedora-rawhide.sh
index f89a87ad63..aec2d87b53 100644
--- a/ci/buildenv/fedora-rawhide.sh
+++ b/ci/buildenv/fedora-rawhide.sh
@@ -38,6 +38,7 @@ function install_buildenv() {
         iproute-tc \
         iptables \
         iscsi-initiator-utils \
+        json-c-devel \
         kmod \
         libacl-devel \
         libattr-devel \
diff --git a/ci/buildenv/opensuse-leap-15.sh b/ci/buildenv/opensuse-leap-15.sh
index a59af136ca..d462e6cdce 100644
--- a/ci/buildenv/opensuse-leap-15.sh
+++ b/ci/buildenv/opensuse-leap-15.sh
@@ -43,6 +43,7 @@ function install_buildenv() {
            libcurl-devel \
            libgnutls-devel \
            libiscsi-devel \
+           libjson-c-devel \
            libnbd-devel \
            libnl3-devel \
            libnuma-devel \
diff --git a/ci/buildenv/opensuse-tumbleweed.sh b/ci/buildenv/opensuse-tumbleweed.sh
index ac566d349f..2233699719 100644
--- a/ci/buildenv/opensuse-tumbleweed.sh
+++ b/ci/buildenv/opensuse-tumbleweed.sh
@@ -43,6 +43,7 @@ function install_buildenv() {
            libcurl-devel \
            libgnutls-devel \
            libiscsi-devel \
+           libjson-c-devel \
            libnbd-devel \
            libnl3-devel \
            libnuma-devel \
diff --git a/ci/buildenv/ubuntu-2204.sh b/ci/buildenv/ubuntu-2204.sh
index c71a0b5f47..e747a6f8c2 100644
--- a/ci/buildenv/ubuntu-2204.sh
+++ b/ci/buildenv/ubuntu-2204.sh
@@ -44,6 +44,7 @@ function install_buildenv() {
             libglusterfs-dev \
             libgnutls28-dev \
             libiscsi-dev \
+            libjson-c-dev \
             libnbd-dev \
             libnl-3-dev \
             libnl-route-3-dev \
diff --git a/ci/buildenv/ubuntu-2404.sh b/ci/buildenv/ubuntu-2404.sh
index 3eacaa6cce..c26a80d06f 100644
--- a/ci/buildenv/ubuntu-2404.sh
+++ b/ci/buildenv/ubuntu-2404.sh
@@ -44,6 +44,7 @@ function install_buildenv() {
             libglusterfs-dev \
             libgnutls28-dev \
             libiscsi-dev \
+            libjson-c-dev \
             libnbd-dev \
             libnl-3-dev \
             libnl-route-3-dev \
diff --git a/ci/cirrus/freebsd-13.vars b/ci/cirrus/freebsd-13.vars
index f24b921300..bf82ac5176 100644
--- a/ci/cirrus/freebsd-13.vars
+++ b/ci/cirrus/freebsd-13.vars
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip-3.8'
-PKGS='augeas bash-completion ca_root_nss ccache codespell cppi curl cyrus-sasl diffutils fusefs-libs gettext git glib gmake gnugrep gnutls gsed libpcap libpciaccess libssh libssh2 libxml2 libxslt meson ninja perl5 pkgconf polkit py311-black py311-docutils py311-flake8 py311-pytest python3 qemu readline yajl'
+PKGS='augeas bash-completion ca_root_nss ccache codespell cppi curl cyrus-sasl diffutils fusefs-libs gettext git glib gmake gnugrep gnutls gsed json-c libpcap libpciaccess libssh libssh2 libxml2 libxslt meson ninja perl5 pkgconf polkit py311-black py311-docutils py311-flake8 py311-pytest python3 qemu readline yajl'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
diff --git a/ci/cirrus/freebsd-14.vars b/ci/cirrus/freebsd-14.vars
index f24b921300..bf82ac5176 100644
--- a/ci/cirrus/freebsd-14.vars
+++ b/ci/cirrus/freebsd-14.vars
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip-3.8'
-PKGS='augeas bash-completion ca_root_nss ccache codespell cppi curl cyrus-sasl diffutils fusefs-libs gettext git glib gmake gnugrep gnutls gsed libpcap libpciaccess libssh libssh2 libxml2 libxslt meson ninja perl5 pkgconf polkit py311-black py311-docutils py311-flake8 py311-pytest python3 qemu readline yajl'
+PKGS='augeas bash-completion ca_root_nss ccache codespell cppi curl cyrus-sasl diffutils fusefs-libs gettext git glib gmake gnugrep gnutls gsed json-c libpcap libpciaccess libssh libssh2 libxml2 libxslt meson ninja perl5 pkgconf polkit py311-black py311-docutils py311-flake8 py311-pytest python3 qemu readline yajl'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
diff --git a/ci/cirrus/macos-13.vars b/ci/cirrus/macos-13.vars
index ca4e55887c..9860033931 100644
--- a/ci/cirrus/macos-13.vars
+++ b/ci/cirrus/macos-13.vars
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake'
 NINJA='/opt/homebrew/bin/ninja'
 PACKAGING_COMMAND='brew'
 PIP3='/opt/homebrew/bin/pip3'
-PKGS='augeas bash-completion black ccache codespell cppi curl diffutils docutils flake8 gettext git glib gnu-sed gnutls grep libiscsi libpcap libssh libssh2 libxml2 libxslt make meson ninja perl pkg-config python3 qemu readline yajl'
+PKGS='augeas bash-completion black ccache codespell cppi curl diffutils docutils flake8 gettext git glib gnu-sed gnutls grep json-c libiscsi libpcap libssh libssh2 libxml2 libxslt make meson ninja perl pkg-config python3 qemu readline yajl'
 PYPI_PKGS='pytest'
 PYTHON='/opt/homebrew/bin/python3'
diff --git a/ci/cirrus/macos-14.vars b/ci/cirrus/macos-14.vars
index ca4e55887c..9860033931 100644
--- a/ci/cirrus/macos-14.vars
+++ b/ci/cirrus/macos-14.vars
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake'
 NINJA='/opt/homebrew/bin/ninja'
 PACKAGING_COMMAND='brew'
 PIP3='/opt/homebrew/bin/pip3'
-PKGS='augeas bash-completion black ccache codespell cppi curl diffutils docutils flake8 gettext git glib gnu-sed gnutls grep libiscsi libpcap libssh libssh2 libxml2 libxslt make meson ninja perl pkg-config python3 qemu readline yajl'
+PKGS='augeas bash-completion black ccache codespell cppi curl diffutils docutils flake8 gettext git glib gnu-sed gnutls grep json-c libiscsi libpcap libssh libssh2 libxml2 libxslt make meson ninja perl pkg-config python3 qemu readline yajl'
 PYPI_PKGS='pytest'
 PYTHON='/opt/homebrew/bin/python3'
diff --git a/ci/containers/almalinux-9.Dockerfile b/ci/containers/almalinux-9.Dockerfile
index 27ac990b22..0f54cb3224 100644
--- a/ci/containers/almalinux-9.Dockerfile
+++ b/ci/containers/almalinux-9.Dockerfile
@@ -38,6 +38,7 @@ RUN dnf update -y && \
         iproute-tc \
         iptables \
         iscsi-initiator-utils \
+        json-c-devel \
         kmod \
         libacl-devel \
         libattr-devel \
diff --git a/ci/containers/alpine-319.Dockerfile b/ci/containers/alpine-319.Dockerfile
index 2455184a87..cdd9845a19 100644
--- a/ci/containers/alpine-319.Dockerfile
+++ b/ci/containers/alpine-319.Dockerfile
@@ -32,6 +32,7 @@ RUN apk update && \
         grep \
         iproute2 \
         iptables \
+        json-c-dev \
         kmod \
         libcap-ng-dev \
         libnl3-dev \
diff --git a/ci/containers/alpine-edge.Dockerfile b/ci/containers/alpine-edge.Dockerfile
index b28c96692c..4790d9ae8a 100644
--- a/ci/containers/alpine-edge.Dockerfile
+++ b/ci/containers/alpine-edge.Dockerfile
@@ -32,6 +32,7 @@ RUN apk update && \
         grep \
         iproute2 \
         iptables \
+        json-c-dev \
         kmod \
         libcap-ng-dev \
         libnl3-dev \
diff --git a/ci/containers/centos-stream-9.Dockerfile b/ci/containers/centos-stream-9.Dockerfile
index 93549eefad..d83ca27b93 100644
--- a/ci/containers/centos-stream-9.Dockerfile
+++ b/ci/containers/centos-stream-9.Dockerfile
@@ -39,6 +39,7 @@ RUN dnf distro-sync -y && \
         iproute-tc \
         iptables \
         iscsi-initiator-utils \
+        json-c-devel \
         kmod \
         libacl-devel \
         libattr-devel \
diff --git a/ci/containers/debian-11-cross-aarch64.Dockerfile b/ci/containers/debian-11-cross-aarch64.Dockerfile
index 1cb573821f..7a7d22b766 100644
--- a/ci/containers/debian-11-cross-aarch64.Dockerfile
+++ b/ci/containers/debian-11-cross-aarch64.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:arm64 \
                       libgnutls28-dev:arm64 \
                       libiscsi-dev:arm64 \
+                      libjson-c-dev:arm64 \
                       libnl-3-dev:arm64 \
                       libnl-route-3-dev:arm64 \
                       libnuma-dev:arm64 \
diff --git a/ci/containers/debian-11-cross-armv6l.Dockerfile b/ci/containers/debian-11-cross-armv6l.Dockerfile
index 6989546ebf..08737bb216 100644
--- a/ci/containers/debian-11-cross-armv6l.Dockerfile
+++ b/ci/containers/debian-11-cross-armv6l.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:armel \
                       libgnutls28-dev:armel \
                       libiscsi-dev:armel \
+                      libjson-c-dev:armel \
                       libnl-3-dev:armel \
                       libnl-route-3-dev:armel \
                       libnuma-dev:armel \
diff --git a/ci/containers/debian-11-cross-armv7l.Dockerfile b/ci/containers/debian-11-cross-armv7l.Dockerfile
index fcd6a6383b..d8bb30d4a1 100644
--- a/ci/containers/debian-11-cross-armv7l.Dockerfile
+++ b/ci/containers/debian-11-cross-armv7l.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:armhf \
                       libgnutls28-dev:armhf \
                       libiscsi-dev:armhf \
+                      libjson-c-dev:armhf \
                       libnl-3-dev:armhf \
                       libnl-route-3-dev:armhf \
                       libnuma-dev:armhf \
diff --git a/ci/containers/debian-11-cross-i686.Dockerfile b/ci/containers/debian-11-cross-i686.Dockerfile
index 8d79934a52..c37a7d2bfa 100644
--- a/ci/containers/debian-11-cross-i686.Dockerfile
+++ b/ci/containers/debian-11-cross-i686.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:i386 \
                       libgnutls28-dev:i386 \
                       libiscsi-dev:i386 \
+                      libjson-c-dev:i386 \
                       libnl-3-dev:i386 \
                       libnl-route-3-dev:i386 \
                       libnuma-dev:i386 \
diff --git a/ci/containers/debian-11-cross-mips64el.Dockerfile b/ci/containers/debian-11-cross-mips64el.Dockerfile
index d80f741311..27556d7e07 100644
--- a/ci/containers/debian-11-cross-mips64el.Dockerfile
+++ b/ci/containers/debian-11-cross-mips64el.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:mips64el \
                       libgnutls28-dev:mips64el \
                       libiscsi-dev:mips64el \
+                      libjson-c-dev:mips64el \
                       libnl-3-dev:mips64el \
                       libnl-route-3-dev:mips64el \
                       libnuma-dev:mips64el \
diff --git a/ci/containers/debian-11-cross-mipsel.Dockerfile b/ci/containers/debian-11-cross-mipsel.Dockerfile
index dc674150f5..be0e9e0188 100644
--- a/ci/containers/debian-11-cross-mipsel.Dockerfile
+++ b/ci/containers/debian-11-cross-mipsel.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:mipsel \
                       libgnutls28-dev:mipsel \
                       libiscsi-dev:mipsel \
+                      libjson-c-dev:mipsel \
                       libnl-3-dev:mipsel \
                       libnl-route-3-dev:mipsel \
                       libnuma-dev:mipsel \
diff --git a/ci/containers/debian-11-cross-ppc64le.Dockerfile b/ci/containers/debian-11-cross-ppc64le.Dockerfile
index fc3a9ee157..cfbef7dcbc 100644
--- a/ci/containers/debian-11-cross-ppc64le.Dockerfile
+++ b/ci/containers/debian-11-cross-ppc64le.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:ppc64el \
                       libgnutls28-dev:ppc64el \
                       libiscsi-dev:ppc64el \
+                      libjson-c-dev:ppc64el \
                       libnl-3-dev:ppc64el \
                       libnl-route-3-dev:ppc64el \
                       libnuma-dev:ppc64el \
diff --git a/ci/containers/debian-11-cross-s390x.Dockerfile b/ci/containers/debian-11-cross-s390x.Dockerfile
index 336694b2d3..1b7cee0572 100644
--- a/ci/containers/debian-11-cross-s390x.Dockerfile
+++ b/ci/containers/debian-11-cross-s390x.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:s390x \
                       libgnutls28-dev:s390x \
                       libiscsi-dev:s390x \
+                      libjson-c-dev:s390x \
                       libnl-3-dev:s390x \
                       libnl-route-3-dev:s390x \
                       libnuma-dev:s390x \
diff --git a/ci/containers/debian-11.Dockerfile b/ci/containers/debian-11.Dockerfile
index 6f08eb7448..da72d538c0 100644
--- a/ci/containers/debian-11.Dockerfile
+++ b/ci/containers/debian-11.Dockerfile
@@ -46,6 +46,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev \
                       libgnutls28-dev \
                       libiscsi-dev \
+                      libjson-c-dev \
                       libnetcf-dev \
                       libnl-3-dev \
                       libnl-route-3-dev \
diff --git a/ci/containers/debian-12-cross-aarch64.Dockerfile b/ci/containers/debian-12-cross-aarch64.Dockerfile
index cc26cc2d11..1504ba0b72 100644
--- a/ci/containers/debian-12-cross-aarch64.Dockerfile
+++ b/ci/containers/debian-12-cross-aarch64.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:arm64 \
                       libgnutls28-dev:arm64 \
                       libiscsi-dev:arm64 \
+                      libjson-c-dev:arm64 \
                       libnl-3-dev:arm64 \
                       libnl-route-3-dev:arm64 \
                       libnuma-dev:arm64 \
diff --git a/ci/containers/debian-12-cross-armv6l.Dockerfile b/ci/containers/debian-12-cross-armv6l.Dockerfile
index 28235d9ba1..ce2c71d466 100644
--- a/ci/containers/debian-12-cross-armv6l.Dockerfile
+++ b/ci/containers/debian-12-cross-armv6l.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:armel \
                       libgnutls28-dev:armel \
                       libiscsi-dev:armel \
+                      libjson-c-dev:armel \
                       libnl-3-dev:armel \
                       libnl-route-3-dev:armel \
                       libnuma-dev:armel \
diff --git a/ci/containers/debian-12-cross-armv7l.Dockerfile b/ci/containers/debian-12-cross-armv7l.Dockerfile
index 56fbb73ebd..410f4fe15d 100644
--- a/ci/containers/debian-12-cross-armv7l.Dockerfile
+++ b/ci/containers/debian-12-cross-armv7l.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:armhf \
                       libgnutls28-dev:armhf \
                       libiscsi-dev:armhf \
+                      libjson-c-dev:armhf \
                       libnl-3-dev:armhf \
                       libnl-route-3-dev:armhf \
                       libnuma-dev:armhf \
diff --git a/ci/containers/debian-12-cross-i686.Dockerfile b/ci/containers/debian-12-cross-i686.Dockerfile
index 4601cd297f..4ae974eb16 100644
--- a/ci/containers/debian-12-cross-i686.Dockerfile
+++ b/ci/containers/debian-12-cross-i686.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:i386 \
                       libgnutls28-dev:i386 \
                       libiscsi-dev:i386 \
+                      libjson-c-dev:i386 \
                       libnl-3-dev:i386 \
                       libnl-route-3-dev:i386 \
                       libnuma-dev:i386 \
diff --git a/ci/containers/debian-12-cross-mips64el.Dockerfile b/ci/containers/debian-12-cross-mips64el.Dockerfile
index 3d3c0615fa..9664b30c14 100644
--- a/ci/containers/debian-12-cross-mips64el.Dockerfile
+++ b/ci/containers/debian-12-cross-mips64el.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:mips64el \
                       libgnutls28-dev:mips64el \
                       libiscsi-dev:mips64el \
+                      libjson-c-dev:mips64el \
                       libnl-3-dev:mips64el \
                       libnl-route-3-dev:mips64el \
                       libnuma-dev:mips64el \
diff --git a/ci/containers/debian-12-cross-mipsel.Dockerfile b/ci/containers/debian-12-cross-mipsel.Dockerfile
index a1e1167f56..4692d1ce8c 100644
--- a/ci/containers/debian-12-cross-mipsel.Dockerfile
+++ b/ci/containers/debian-12-cross-mipsel.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:mipsel \
                       libgnutls28-dev:mipsel \
                       libiscsi-dev:mipsel \
+                      libjson-c-dev:mipsel \
                       libnl-3-dev:mipsel \
                       libnl-route-3-dev:mipsel \
                       libnuma-dev:mipsel \
diff --git a/ci/containers/debian-12-cross-ppc64le.Dockerfile b/ci/containers/debian-12-cross-ppc64le.Dockerfile
index 836b1c2ec5..17beefaea6 100644
--- a/ci/containers/debian-12-cross-ppc64le.Dockerfile
+++ b/ci/containers/debian-12-cross-ppc64le.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:ppc64el \
                       libgnutls28-dev:ppc64el \
                       libiscsi-dev:ppc64el \
+                      libjson-c-dev:ppc64el \
                       libnl-3-dev:ppc64el \
                       libnl-route-3-dev:ppc64el \
                       libnuma-dev:ppc64el \
diff --git a/ci/containers/debian-12-cross-s390x.Dockerfile b/ci/containers/debian-12-cross-s390x.Dockerfile
index 000e357b97..88006f9a74 100644
--- a/ci/containers/debian-12-cross-s390x.Dockerfile
+++ b/ci/containers/debian-12-cross-s390x.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:s390x \
                       libgnutls28-dev:s390x \
                       libiscsi-dev:s390x \
+                      libjson-c-dev:s390x \
                       libnl-3-dev:s390x \
                       libnl-route-3-dev:s390x \
                       libnuma-dev:s390x \
diff --git a/ci/containers/debian-12.Dockerfile b/ci/containers/debian-12.Dockerfile
index bacfd9ada4..8b34ea98fb 100644
--- a/ci/containers/debian-12.Dockerfile
+++ b/ci/containers/debian-12.Dockerfile
@@ -46,6 +46,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev \
                       libgnutls28-dev \
                       libiscsi-dev \
+                      libjson-c-dev \
                       libnbd-dev \
                       libnl-3-dev \
                       libnl-route-3-dev \
diff --git a/ci/containers/debian-sid-cross-aarch64.Dockerfile b/ci/containers/debian-sid-cross-aarch64.Dockerfile
index 48335d5221..cbbea29d12 100644
--- a/ci/containers/debian-sid-cross-aarch64.Dockerfile
+++ b/ci/containers/debian-sid-cross-aarch64.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:arm64 \
                       libgnutls28-dev:arm64 \
                       libiscsi-dev:arm64 \
+                      libjson-c-dev:arm64 \
                       libnl-3-dev:arm64 \
                       libnl-route-3-dev:arm64 \
                       libnuma-dev:arm64 \
diff --git a/ci/containers/debian-sid-cross-armv6l.Dockerfile b/ci/containers/debian-sid-cross-armv6l.Dockerfile
index b9cdd95548..94d130baf8 100644
--- a/ci/containers/debian-sid-cross-armv6l.Dockerfile
+++ b/ci/containers/debian-sid-cross-armv6l.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglib2.0-dev:armel \
                       libgnutls28-dev:armel \
                       libiscsi-dev:armel \
+                      libjson-c-dev:armel \
                       libnl-3-dev:armel \
                       libnl-route-3-dev:armel \
                       libnuma-dev:armel \
diff --git a/ci/containers/debian-sid-cross-armv7l.Dockerfile b/ci/containers/debian-sid-cross-armv7l.Dockerfile
index 4787aea1cd..b1251ffec3 100644
--- a/ci/containers/debian-sid-cross-armv7l.Dockerfile
+++ b/ci/containers/debian-sid-cross-armv7l.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglib2.0-dev:armhf \
                       libgnutls28-dev:armhf \
                       libiscsi-dev:armhf \
+                      libjson-c-dev:armhf \
                       libnl-3-dev:armhf \
                       libnl-route-3-dev:armhf \
                       libnuma-dev:armhf \
diff --git a/ci/containers/debian-sid-cross-i686.Dockerfile b/ci/containers/debian-sid-cross-i686.Dockerfile
index 66d84474dc..30b1c268a2 100644
--- a/ci/containers/debian-sid-cross-i686.Dockerfile
+++ b/ci/containers/debian-sid-cross-i686.Dockerfile
@@ -81,6 +81,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglib2.0-dev:i386 \
                       libgnutls28-dev:i386 \
                       libiscsi-dev:i386 \
+                      libjson-c-dev:i386 \
                       libnl-3-dev:i386 \
                       libnl-route-3-dev:i386 \
                       libnuma-dev:i386 \
diff --git a/ci/containers/debian-sid-cross-mips64el.Dockerfile b/ci/containers/debian-sid-cross-mips64el.Dockerfile
index 4e325bf076..216dbacfa1 100644
--- a/ci/containers/debian-sid-cross-mips64el.Dockerfile
+++ b/ci/containers/debian-sid-cross-mips64el.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:mips64el \
                       libgnutls28-dev:mips64el \
                       libiscsi-dev:mips64el \
+                      libjson-c-dev:mips64el \
                       libnl-3-dev:mips64el \
                       libnl-route-3-dev:mips64el \
                       libnuma-dev:mips64el \
diff --git a/ci/containers/debian-sid-cross-ppc64le.Dockerfile b/ci/containers/debian-sid-cross-ppc64le.Dockerfile
index 8a53dd73bd..2e93762cbf 100644
--- a/ci/containers/debian-sid-cross-ppc64le.Dockerfile
+++ b/ci/containers/debian-sid-cross-ppc64le.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:ppc64el \
                       libgnutls28-dev:ppc64el \
                       libiscsi-dev:ppc64el \
+                      libjson-c-dev:ppc64el \
                       libnl-3-dev:ppc64el \
                       libnl-route-3-dev:ppc64el \
                       libnuma-dev:ppc64el \
diff --git a/ci/containers/debian-sid-cross-s390x.Dockerfile b/ci/containers/debian-sid-cross-s390x.Dockerfile
index f9c91d56de..e106382a21 100644
--- a/ci/containers/debian-sid-cross-s390x.Dockerfile
+++ b/ci/containers/debian-sid-cross-s390x.Dockerfile
@@ -82,6 +82,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev:s390x \
                       libgnutls28-dev:s390x \
                       libiscsi-dev:s390x \
+                      libjson-c-dev:s390x \
                       libnl-3-dev:s390x \
                       libnl-route-3-dev:s390x \
                       libnuma-dev:s390x \
diff --git a/ci/containers/debian-sid.Dockerfile b/ci/containers/debian-sid.Dockerfile
index 0084e418d3..1bf2fa5a00 100644
--- a/ci/containers/debian-sid.Dockerfile
+++ b/ci/containers/debian-sid.Dockerfile
@@ -46,6 +46,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev \
                       libgnutls28-dev \
                       libiscsi-dev \
+                      libjson-c-dev \
                       libnbd-dev \
                       libnl-3-dev \
                       libnl-route-3-dev \
diff --git a/ci/containers/fedora-39.Dockerfile b/ci/containers/fedora-39.Dockerfile
index 91135bf15f..6a528ba71b 100644
--- a/ci/containers/fedora-39.Dockerfile
+++ b/ci/containers/fedora-39.Dockerfile
@@ -48,6 +48,7 @@ exec "$@"\n' > /usr/bin/nosync && \
                iproute-tc \
                iptables \
                iscsi-initiator-utils \
+               json-c-devel \
                kmod \
                libacl-devel \
                libattr-devel \
diff --git a/ci/containers/fedora-40.Dockerfile b/ci/containers/fedora-40.Dockerfile
index 97e1858473..4f22956c3c 100644
--- a/ci/containers/fedora-40.Dockerfile
+++ b/ci/containers/fedora-40.Dockerfile
@@ -48,6 +48,7 @@ exec "$@"\n' > /usr/bin/nosync && \
                iproute-tc \
                iptables \
                iscsi-initiator-utils \
+               json-c-devel \
                kmod \
                libacl-devel \
                libattr-devel \
diff --git a/ci/containers/fedora-rawhide.Dockerfile b/ci/containers/fedora-rawhide.Dockerfile
index 6f06843985..5d1cc5961c 100644
--- a/ci/containers/fedora-rawhide.Dockerfile
+++ b/ci/containers/fedora-rawhide.Dockerfile
@@ -49,6 +49,7 @@ exec "$@"\n' > /usr/bin/nosync && \
                iproute-tc \
                iptables \
                iscsi-initiator-utils \
+               json-c-devel \
                kmod \
                libacl-devel \
                libattr-devel \
diff --git a/ci/containers/opensuse-leap-15.Dockerfile b/ci/containers/opensuse-leap-15.Dockerfile
index b152528378..614af86f2c 100644
--- a/ci/containers/opensuse-leap-15.Dockerfile
+++ b/ci/containers/opensuse-leap-15.Dockerfile
@@ -44,6 +44,7 @@ RUN zypper update -y && \
            libcurl-devel \
            libgnutls-devel \
            libiscsi-devel \
+           libjson-c-devel \
            libnbd-devel \
            libnl3-devel \
            libnuma-devel \
diff --git a/ci/containers/opensuse-tumbleweed.Dockerfile b/ci/containers/opensuse-tumbleweed.Dockerfile
index 2b7cdb4af5..bf47571338 100644
--- a/ci/containers/opensuse-tumbleweed.Dockerfile
+++ b/ci/containers/opensuse-tumbleweed.Dockerfile
@@ -44,6 +44,7 @@ RUN zypper dist-upgrade -y && \
            libcurl-devel \
            libgnutls-devel \
            libiscsi-devel \
+           libjson-c-devel \
            libnbd-devel \
            libnl3-devel \
            libnuma-devel \
diff --git a/ci/containers/ubuntu-2204.Dockerfile b/ci/containers/ubuntu-2204.Dockerfile
index 5e8829bc2b..5de2ac6801 100644
--- a/ci/containers/ubuntu-2204.Dockerfile
+++ b/ci/containers/ubuntu-2204.Dockerfile
@@ -46,6 +46,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev \
                       libgnutls28-dev \
                       libiscsi-dev \
+                      libjson-c-dev \
                       libnbd-dev \
                       libnl-3-dev \
                       libnl-route-3-dev \
diff --git a/ci/containers/ubuntu-2404.Dockerfile b/ci/containers/ubuntu-2404.Dockerfile
index 4a6c63b5a4..86bab63fc9 100644
--- a/ci/containers/ubuntu-2404.Dockerfile
+++ b/ci/containers/ubuntu-2404.Dockerfile
@@ -46,6 +46,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libglusterfs-dev \
                       libgnutls28-dev \
                       libiscsi-dev \
+                      libjson-c-dev \
                       libnbd-dev \
                       libnl-3-dev \
                       libnl-route-3-dev \
diff --git a/ci/lcitool/projects/libvirt.yml b/ci/lcitool/projects/libvirt.yml
index 5e0bd66958..a02fe9b8bf 100644
--- a/ci/lcitool/projects/libvirt.yml
+++ b/ci/lcitool/projects/libvirt.yml
@@ -30,6 +30,7 @@ packages:
   - ip
   - iptables
   - iscsiadm
+  - json-c
   - libacl
   - libattr
   - libaudit
-- 
2.45.2
Re: [libvirt PATCH 08/20] ci: install json-c too
Posted by Peter Krempa 3 months, 1 week ago
On Wed, Aug 14, 2024 at 23:40:23 +0200, Ján Tomko wrote:
> Now that we actually have some working code using json-c, install
> it in our CI to demonstrate that it works.
> 
> Signed-off-by: Ján Tomko <jtomko@redhat.com>
> ---

As this is a ci refresh I'd refrain from saying that this demonstrates
the usage.

The usage should be demonstrated by enabling it explicitly as I've
requested explicit disabling at least in the .spec file.

Regardless:

Reviewed-by: Peter Krempa <pkrempa@redhat.com>