diff options
| author | Moritz Haase <Moritz.Haase@bmw.de> | 2025-06-23 11:56:01 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-26 11:02:34 +0100 |
| commit | 22f513741db0ff258fe3ec02f5edbc8809aa0d26 (patch) | |
| tree | 0fbc43e821dbc7f8a0ce4407feeab383d553ab1f | |
| parent | 2768d6f6768c0792fa5347bf12b4a5088b3a6530 (diff) | |
| download | poky-22f513741db0ff258fe3ec02f5edbc8809aa0d26.tar.gz | |
json-c: Don't build unneeded apps to unblock builds with CMake 4+
Disable build of the apps, as we don't seem to package them (upstream says they
aren't ready, see [0]). They are the only part of the code that doesn't build
yet with CMake 4+. One alternative would be to apply [1], but the PR hasn't been
merged yet by upstream, so we keep it simple.
[0]: https://github.com/json-c/json-c/blob/7cee5237dc6c0831e3f9dc490394eaea44636861/apps/CMakeLists.txt#L119-L121
[1]: https://github.com/json-c/json-c/pull/888
(From OE-Core rev: cb5234acdab200bd43b89416d8d7e9df91af58cc)
Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/json-c/json-c_0.18.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-devtools/json-c/json-c_0.18.bb b/meta/recipes-devtools/json-c/json-c_0.18.bb index 2fd1897ba8..ece320d66c 100644 --- a/meta/recipes-devtools/json-c/json-c_0.18.bb +++ b/meta/recipes-devtools/json-c/json-c_0.18.bb | |||
| @@ -19,8 +19,11 @@ UPSTREAM_CHECK_REGEX = "json-c-(?P<pver>\d+(\.\d+)+)-\d+" | |||
| 19 | 19 | ||
| 20 | RPROVIDES:${PN} = "libjson" | 20 | RPROVIDES:${PN} = "libjson" |
| 21 | 21 | ||
| 22 | # Required for ICECC builds | 22 | # - '-Werror' must be disabled for ICECC builds |
| 23 | EXTRA_OECMAKE = "-DDISABLE_WERROR=ON" | 23 | # - Apps aren't needed/packaged and their CMakeLists.txt is incompatible with CMake 4+. |
| 24 | EXTRA_OECMAKE = "-DDISABLE_WERROR=ON \ | ||
| 25 | -DBUILD_APPS=OFF \ | ||
| 26 | " | ||
| 24 | 27 | ||
| 25 | inherit cmake ptest | 28 | inherit cmake ptest |
| 26 | 29 | ||
