]> xenbits.xensource.com Git - libvirt.git/commit
Switch from yajl to Jansson
authorJán Tomko <jtomko@redhat.com>
Wed, 2 May 2018 15:17:01 +0000 (17:17 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 18 Jul 2018 15:54:18 +0000 (17:54 +0200)
commit9cf38263d05ca7f27dbbd9b1a0b48d338d9280e2
tree4876a9af5fed05b6dd47495b978769252144755e
parent93fdc9e0b0cbb2eec32745a868ac4633f0912ad5
Switch from yajl to Jansson

Yajl has not seen much activity upstream recently.
Switch to using Jansson >= 2.5.

All the platforms we target on https://libvirt.org/platforms.html
have a version >= 2.7 listed on the sites below:
https://repology.org/metapackage/jansson/versions
https://build.opensuse.org/package/show/devel:libraries:c_c++/libjansson

Additionally, Ubuntu 14.04 on Travis-CI has 2.5. Set the requirement
to 2.5 since we don't use anything from newer versions.

Implement virJSONValue{From,To}String using Jansson, delete the yajl
code (and the related virJSONParser structure) and report an error
if someone explicitly specifies --with-yajl.

Also adjust the test data to account for Jansson's different whitespace
usage for empty arrays and tune up the specfile to keep 'make rpm'
working when bisecting.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
24 files changed:
libvirt.spec.in
m4/virt-nss.m4
m4/virt-yajl.m4
src/Makefile.am
src/qemu/qemu_driver.c
src/util/Makefile.inc.am
src/util/virjson.c
tests/Makefile.am
tests/cputest.c
tests/libxlxml2domconfigtest.c
tests/qemuagenttest.c
tests/qemublocktest.c
tests/qemucapabilitiestest.c
tests/qemucaps2xmltest.c
tests/qemucommandutiltest.c
tests/qemuhotplugtest.c
tests/qemumigparamsdata/empty.json
tests/qemumigparamsdata/unsupported.json
tests/qemumigparamstest.c
tests/qemumonitorjsontest.c
tests/virmacmaptestdata/empty.json
tests/virmocklibxl.c
tests/virnetdaemontest.c
tests/virstoragetest.c