mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-05 05:04:44 +02:00

Skip -Werror to make it possible to compile this recipe with ICECC else all fallthrough comments will be removed since we pre-process the files on the host before sending them to the compile nodes which then cause errors because of default -Werror switch. Fixes: caf64f85b5c5 ("json-c: update 0.13.1 - > 0.14") (From OE-Core rev: 915f8307b063e17ddadd5dface83578b8ad254e2) Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
35 lines
1.2 KiB
BlitzBasic
35 lines
1.2 KiB
BlitzBasic
SUMMARY = "C bindings for apps which will manipulate JSON data"
|
|
DESCRIPTION = "JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C."
|
|
HOMEPAGE = "https://github.com/json-c/json-c/wiki"
|
|
LICENSE = "MIT"
|
|
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] = "7550914d58fb63b2c3546f3ccfbe11f1c094147bd31a69dcd23714d7956159e6"
|
|
|
|
# NVD uses full tag name including date
|
|
CVE_VERSION = "0.17-20230812"
|
|
|
|
UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags"
|
|
UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+"
|
|
|
|
RPROVIDES:${PN} = "libjson"
|
|
|
|
# Required for ICECC builds
|
|
EXTRA_OECMAKE = "-DDISABLE_WERROR=ON"
|
|
|
|
inherit cmake ptest
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}/${PTEST_PATH}/tests
|
|
install ${B}/tests/test* ${D}/${PTEST_PATH}/tests
|
|
install ${S}/tests/*.test ${D}/${PTEST_PATH}/tests
|
|
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
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|