From: Moritz Haase Date: Mon, 6 Jul 2026 10:45:39 +0000 (+0200) Subject: json-c: upgrade 0.18 -> 0.19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef0178f1265cfd911df10a96cf8ca9ea0683173d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git json-c: upgrade 0.18 -> 0.19 Release notes are available at [0]. Newly added tests (see [1]) require the 'json_parse' app at (test) runtime. Thus, apps are now being built and the 'json_parse' app is deployed in the 'ptest' package. We do not package the apps separately as upstream doesn't consider them to be ready for that (see [2]). This approach is based on the discussion in [3]. [0]: https://github.com/json-c/json-c/blob/json-c-0.19/ChangeLog [1]: https://github.com/json-c/json-c/blob/d9d8cab82291637671f6c90cf06e578750a08718/tests/test_json_parse_cli.test#L18 [2]: https://github.com/json-c/json-c/blob/d9d8cab82291637671f6c90cf06e578750a08718/apps/CMakeLists.txt#L122-L124 [3]: https://lists.openembedded.org/g/openembedded-core/topic/120026557# Signed-off-by: Moritz Haase CC: alex.kanavin@gmail.com CC: mathieu.dubois-briand@bootlin.com CC: Ross.Burton@arm.com Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/json-c/json-c_0.18.bb b/meta/recipes-devtools/json-c/json-c_0.19.bb similarity index 70% rename from meta/recipes-devtools/json-c/json-c_0.18.bb rename to meta/recipes-devtools/json-c/json-c_0.19.bb index c112aacf4bc..e42d4f6f567 100644 --- a/meta/recipes-devtools/json-c/json-c_0.18.bb +++ b/meta/recipes-devtools/json-c/json-c_0.19.bb @@ -9,20 +9,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=de54b60fbbc35123ba193fea8ee216f2" SRC_URI = "https://s3.amazonaws.com/json-c_releases/releases/${BP}.tar.gz \ file://run-ptest \ " -SRC_URI[sha256sum] = "876ab046479166b869afc6896d288183bbc0e5843f141200c677b3e8dfb11724" +SRC_URI[sha256sum] = "37ad0249902e301bd9052bf712e511fcc6acff4ecaad4b5900aad9ce564e26de" # NVD uses full tag name including date -CVE_VERSION = "0.18-20240915" +CVE_VERSION = "0.19-20260627" UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags" UPSTREAM_CHECK_REGEX = "json-c-(?P\d+(\.\d+)+)-\d+" RPROVIDES:${PN} = "libjson" -# Apps aren't needed/packaged and their CMakeLists.txt is incompatible with CMake 4+. -EXTRA_OECMAKE = "-DDISABLE_WERROR=ON \ - -DBUILD_APPS=OFF \ -" +EXTRA_OECMAKE = "-DDISABLE_WERROR=ON" inherit cmake ptest @@ -33,6 +30,13 @@ do_install_ptest() { install ${S}/tests/*.expected ${D}/${PTEST_PATH}/tests install ${S}/tests/test-defs.sh ${D}/${PTEST_PATH}/tests install ${S}/tests/*json ${D}/${PTEST_PATH}/tests + + # The 'json_parse_cli' test executes the 'json_parse' app via + # '../apps/json_parse' so we package it accordingly. + # + # Note that the test also depends on xxd, which is provided via busybox and + # thus not listed as an explicit RDEPENDS. + install -D -t ${D}/${PTEST_PATH}/apps/ ${B}/apps/json_parse } BBCLASSEXTEND = "native nativesdk"