summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlper Ak <alperyasinak1@gmail.com>2025-07-10 00:16:59 +0300
committerKhem Raj <raj.khem@gmail.com>2025-07-09 19:36:11 -0700
commit1758d5589ffb8be4c33fa5a3be801f0c798d8071 (patch)
treed60b637846667793c49952178179aa58ad141753
parent40dd3e9cc14432632f48f00ba687cd485a82b0e5 (diff)
downloadmeta-openembedded-1758d5589ffb8be4c33fa5a3be801f0c798d8071.tar.gz
uchardet: Add patch for CMake 4+ compatibility
Fix: | CMake Error at CMakeLists.txt:2 (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-support/uchardet/uchardet/0001-allow-build-with-cmake-4.patch41
-rw-r--r--meta-oe/recipes-support/uchardet/uchardet_0.0.8.bb3
2 files changed, 43 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/uchardet/uchardet/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-support/uchardet/uchardet/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..348209f3ff
--- /dev/null
+++ b/meta-oe/recipes-support/uchardet/uchardet/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,41 @@
1From b650c4c3385f7afeb70231cdbcad888d23cb0a5a Mon Sep 17 00:00:00 2001
2From: Alper Ak <alperyasinak1@gmail.com>
3Date: Tue, 8 Jul 2025 19:59:23 +0300
4Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
5 compatibility
6
7Fix:
8
9| CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
10| Compatibility with CMake < 3.5 has been removed from CMake.
11|
12| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
13| to tell CMake that the project requires at least <min> but has been updated
14| to work with policies introduced by <max> or earlier.
15|
16| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
17|
18|
19| -- Configuring incomplete, errors occurred!
20
21Upstream-Status: Backport [https://gitlab.freedesktop.org/uchardet/uchardet/-/commit/6e163c978a7c13a6d3ff64a1e3dd4ba81d2d9e09]
22
23Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
24---
25 CMakeLists.txt | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
28diff --git a/CMakeLists.txt b/CMakeLists.txt
29index a570264..5a6281c 100644
30--- a/CMakeLists.txt
31+++ b/CMakeLists.txt
32@@ -1,5 +1,5 @@
33 ######## Project settings
34-cmake_minimum_required(VERSION 3.1)
35+cmake_minimum_required(VERSION 3.5)
36 include(CheckCCompilerFlag)
37 set (PACKAGE_NAME uchardet)
38 project (${PACKAGE_NAME} CXX C)
39--
402.43.0
41
diff --git a/meta-oe/recipes-support/uchardet/uchardet_0.0.8.bb b/meta-oe/recipes-support/uchardet/uchardet_0.0.8.bb
index 3e164cc26f..75a04e6f80 100644
--- a/meta-oe/recipes-support/uchardet/uchardet_0.0.8.bb
+++ b/meta-oe/recipes-support/uchardet/uchardet_0.0.8.bb
@@ -4,5 +4,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6ecda54f6f525388d71d6b3cd92f7474"
4 4
5inherit cmake 5inherit cmake
6 6
7SRC_URI = "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz" 7SRC_URI = "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz \
8 file://0001-allow-build-with-cmake-4.patch"
8SRC_URI[sha256sum] = "e97a60cfc00a1c147a674b097bb1422abd9fa78a2d9ce3f3fdcc2e78a34ac5f0" 9SRC_URI[sha256sum] = "e97a60cfc00a1c147a674b097bb1422abd9fa78a2d9ce3f3fdcc2e78a34ac5f0"