diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-09-22 09:24:10 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-26 10:35:27 +0100 |
commit | 02b4104c1428b9d4768f64f548961098f74e86f6 (patch) | |
tree | 944d88da71751bb586d68aa5892a17a8e7a35d84 | |
parent | 16bf2e4da5b45dfc00e637e8f33df7aa5224ce33 (diff) | |
download | poky-02b4104c1428b9d4768f64f548961098f74e86f6.tar.gz |
json-c: upgrade 0.16 -> 0.17
Fix run-ptest to append to log instead of overwriting it with every test invocation.
(From OE-Core rev: cae5ef60e96f19a656b4bd5e32fcc446450e675c)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/json-c/json-c/0001-Fix-build-with-clang-15.patch | 34 | ||||
-rw-r--r-- | meta/recipes-devtools/json-c/json-c/run-ptest | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/json-c/json-c_0.17.bb (renamed from meta/recipes-devtools/json-c/json-c_0.16.bb) | 12 |
3 files changed, 6 insertions, 42 deletions
diff --git a/meta/recipes-devtools/json-c/json-c/0001-Fix-build-with-clang-15.patch b/meta/recipes-devtools/json-c/json-c/0001-Fix-build-with-clang-15.patch deleted file mode 100644 index 215f4d829a..0000000000 --- a/meta/recipes-devtools/json-c/json-c/0001-Fix-build-with-clang-15.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 0145b575ac1fe6a77e00d639864f26fc91ceb12f Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 13 Aug 2022 20:37:03 -0700 | ||
4 | Subject: [PATCH] Fix build with clang-15+ | ||
5 | |||
6 | Fixes | ||
7 | json_util.c:63:35: error: a function declaration without a prototype is deprecated in all versions of C [-We | ||
8 | rror,-Wstrict-prototypes] | ||
9 | const char *json_util_get_last_err() | ||
10 | ^ | ||
11 | void | ||
12 | |||
13 | Upstream-Status: Backport [https://github.com/json-c/json-c/pull/783] | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | json_util.c | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/json_util.c b/json_util.c | ||
20 | index 952770a..83d9c68 100644 | ||
21 | --- a/json_util.c | ||
22 | +++ b/json_util.c | ||
23 | @@ -60,7 +60,7 @@ static int _json_object_to_fd(int fd, struct json_object *obj, int flags, const | ||
24 | |||
25 | static char _last_err[256] = ""; | ||
26 | |||
27 | -const char *json_util_get_last_err() | ||
28 | +const char *json_util_get_last_err(void) | ||
29 | { | ||
30 | if (_last_err[0] == '\0') | ||
31 | return NULL; | ||
32 | -- | ||
33 | 2.37.2 | ||
34 | |||
diff --git a/meta/recipes-devtools/json-c/json-c/run-ptest b/meta/recipes-devtools/json-c/json-c/run-ptest index 9ee6095ea2..2d0e94cd3a 100644 --- a/meta/recipes-devtools/json-c/json-c/run-ptest +++ b/meta/recipes-devtools/json-c/json-c/run-ptest | |||
@@ -8,7 +8,7 @@ for i in test*.test; do | |||
8 | # test_basic is not an own testcase, just | 8 | # test_basic is not an own testcase, just |
9 | # contains common code of other tests | 9 | # contains common code of other tests |
10 | if [ "$i" != "test_basic.test" ]; then | 10 | if [ "$i" != "test_basic.test" ]; then |
11 | if ./$i > json-c_test.log 2>&1 ; then | 11 | if ./$i >> json-c_test.log 2>&1 ; then |
12 | echo PASS: $i | 12 | echo PASS: $i |
13 | else | 13 | else |
14 | ret_val=1 | 14 | ret_val=1 |
diff --git a/meta/recipes-devtools/json-c/json-c_0.16.bb b/meta/recipes-devtools/json-c/json-c_0.17.bb index 3aba41dfcf..b7b596212f 100644 --- a/meta/recipes-devtools/json-c/json-c_0.16.bb +++ b/meta/recipes-devtools/json-c/json-c_0.17.bb | |||
@@ -4,12 +4,10 @@ HOMEPAGE = "https://github.com/json-c/json-c/wiki" | |||
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=de54b60fbbc35123ba193fea8ee216f2" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=de54b60fbbc35123ba193fea8ee216f2" |
6 | 6 | ||
7 | SRC_URI = " \ | 7 | SRC_URI = "https://s3.amazonaws.com/json-c_releases/releases/${BP}.tar.gz \ |
8 | https://s3.amazonaws.com/json-c_releases/releases/${BP}.tar.gz \ | 8 | file://run-ptest \ |
9 | file://0001-Fix-build-with-clang-15.patch \ | 9 | " |
10 | file://run-ptest \ | 10 | SRC_URI[sha256sum] = "7550914d58fb63b2c3546f3ccfbe11f1c094147bd31a69dcd23714d7956159e6" |
11 | " | ||
12 | SRC_URI[sha256sum] = "8e45ac8f96ec7791eaf3bb7ee50e9c2100bbbc87b8d0f1d030c5ba8a0288d96b" | ||
13 | 11 | ||
14 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags" | 12 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags" |
15 | UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+" | 13 | UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+" |
@@ -24,7 +22,7 @@ do_install_ptest() { | |||
24 | install ${S}/tests/*.test ${D}/${PTEST_PATH}/tests | 22 | install ${S}/tests/*.test ${D}/${PTEST_PATH}/tests |
25 | install ${S}/tests/*.expected ${D}/${PTEST_PATH}/tests | 23 | install ${S}/tests/*.expected ${D}/${PTEST_PATH}/tests |
26 | install ${S}/tests/test-defs.sh ${D}/${PTEST_PATH}/tests | 24 | install ${S}/tests/test-defs.sh ${D}/${PTEST_PATH}/tests |
27 | install ${S}/tests/valid*json ${D}/${PTEST_PATH}/tests | 25 | install ${S}/tests/*json ${D}/${PTEST_PATH}/tests |
28 | } | 26 | } |
29 | 27 | ||
30 | BBCLASSEXTEND = "native nativesdk" | 28 | BBCLASSEXTEND = "native nativesdk" |