summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlper Ak <alperyasinak1@gmail.com>2025-07-08 22:56:18 +0300
committerKhem Raj <raj.khem@gmail.com>2025-07-09 09:16:05 -0700
commit2147652aba4da37147b142944e959ec1e2966281 (patch)
treeb13f0bf364e80872b3e427b37194a6929650f142
parent47563aee3af8a4b93ac16aaae98f0daf313e1713 (diff)
downloadmeta-openembedded-2147652aba4da37147b142944e959ec1e2966281.tar.gz
jansson: Add patch for CMake 4+ compatibility
Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/jansson/jansson/0002-allow-build-with-cmake-4.patch38
-rw-r--r--meta-oe/recipes-extended/jansson/jansson_2.14.1.bb1
2 files changed, 39 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/jansson/jansson/0002-allow-build-with-cmake-4.patch b/meta-oe/recipes-extended/jansson/jansson/0002-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..5264f26f81
--- /dev/null
+++ b/meta-oe/recipes-extended/jansson/jansson/0002-allow-build-with-cmake-4.patch
@@ -0,0 +1,38 @@
1From 5d7b2ced666b4fbccd0da6e06d504ae2960575c8 Mon Sep 17 00:00:00 2001
2From: Alper Ak <alperyasinak1@gmail.com>
3Date: Tue, 8 Jul 2025 14:54:08 +0300
4Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
5 compatibility
6
7| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
8| Compatibility with CMake < 3.5 has been removed from CMake.
9|
10| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
11| to tell CMake that the project requires at least <min> but has been updated
12| to work with policies introduced by <max> or earlier.
13|
14| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
15|
16|
17| -- Configuring incomplete, errors occurred!
18
19Upstream-Status: Backport [https://github.com/akheron/jansson/commit/96d160df90016066d04d493d1d69639474ba4f20]
20
21Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
22---
23 CMakeLists.txt | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26diff --git a/CMakeLists.txt b/CMakeLists.txt
27index 72f9762..d07412e 100644
28--- a/CMakeLists.txt
29+++ b/CMakeLists.txt
30@@ -1,4 +1,4 @@
31-cmake_minimum_required (VERSION 3.1)
32+cmake_minimum_required (VERSION 3.5)
33 project(jansson C)
34
35 # Options
36--
372.43.0
38
diff --git a/meta-oe/recipes-extended/jansson/jansson_2.14.1.bb b/meta-oe/recipes-extended/jansson/jansson_2.14.1.bb
index 715b1af5c5..e0916759c6 100644
--- a/meta-oe/recipes-extended/jansson/jansson_2.14.1.bb
+++ b/meta-oe/recipes-extended/jansson/jansson_2.14.1.bb
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d9911525d4128bee234ee2d3ccaa2537"
7SRC_URI = "https://github.com/akheron/${BPN}/releases/download/v${PV}/${BP}.tar.bz2 \ 7SRC_URI = "https://github.com/akheron/${BPN}/releases/download/v${PV}/${BP}.tar.bz2 \
8 file://0001-Honour-multilib-paths.patch \ 8 file://0001-Honour-multilib-paths.patch \
9 file://0001-Only-export-symbols-starting-with-json_-and-jansson_.patch \ 9 file://0001-Only-export-symbols-starting-with-json_-and-jansson_.patch \
10 file://0002-allow-build-with-cmake-4.patch \
10 " 11 "
11SRC_URI[sha256sum] = "6bd82d3043dadbcd58daaf903d974891128d22aab7dada5d399cb39094af49ce" 12SRC_URI[sha256sum] = "6bd82d3043dadbcd58daaf903d974891128d22aab7dada5d399cb39094af49ce"
12 13