summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity
diff options
context:
space:
mode:
authorAlper Ak <alperyasinak1@gmail.com>2025-07-08 22:56:36 +0300
committerKhem Raj <raj.khem@gmail.com>2025-07-09 09:16:08 -0700
commita2f6dfd32131e3c5b84e5f4e7a4bab5fbc67658d (patch)
tree91829eb71397d26f1dd6a513d9d4000f17477b25 /meta-oe/recipes-connectivity
parent2297a31eb432c36e91892dc3da9a8412c1867344 (diff)
downloadmeta-openembedded-a2f6dfd32131e3c5b84e5f4e7a4bab5fbc67658d.tar.gz
gammu: Add patch for CMake 4+ compatibility
Fix: | CMake Error at CMakeLists.txt:5 (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>
Diffstat (limited to 'meta-oe/recipes-connectivity')
-rw-r--r--meta-oe/recipes-connectivity/gammu/gammu/0001-allow-build-with-cmake-4.patch43
-rw-r--r--meta-oe/recipes-connectivity/gammu/gammu_1.42.0.bb1
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/gammu/gammu/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-connectivity/gammu/gammu/0001-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..5ab63b809f
--- /dev/null
+++ b/meta-oe/recipes-connectivity/gammu/gammu/0001-allow-build-with-cmake-4.patch
@@ -0,0 +1,43 @@
1From ea068ac152b9b375be51611ca04d0f833e2f6856 Mon Sep 17 00:00:00 2001
2From: Alper Ak <alperyasinak1@gmail.com>
3Date: Tue, 8 Jul 2025 22:52:11 +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:5 (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: Pending
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 d0a79b3..23dba35 100644
30--- a/CMakeLists.txt
31+++ b/CMakeLists.txt
32@@ -2,7 +2,7 @@
33 # Copyright (c) 2007 - 2018 Michal Cihar
34 # vim: expandtab sw=4 ts=4 sts=4:
35
36-cmake_minimum_required (VERSION 3.0)
37+cmake_minimum_required (VERSION 3.5)
38 INCLUDE (CMakeForceCompiler)
39
40 project (Gammu C)
41--
422.43.0
43
diff --git a/meta-oe/recipes-connectivity/gammu/gammu_1.42.0.bb b/meta-oe/recipes-connectivity/gammu/gammu_1.42.0.bb
index e6ec9c3573..353ee37f46 100644
--- a/meta-oe/recipes-connectivity/gammu/gammu_1.42.0.bb
+++ b/meta-oe/recipes-connectivity/gammu/gammu_1.42.0.bb
@@ -7,6 +7,7 @@ HOMEPAGE = "https://wammu.eu/"
7SRC_URI = "https://dl.cihar.com/${BPN}/releases/${BP}.tar.xz \ 7SRC_URI = "https://dl.cihar.com/${BPN}/releases/${BP}.tar.xz \
8 file://gammurc \ 8 file://gammurc \
9 file://gammu-smsdrc \ 9 file://gammu-smsdrc \
10 file://0001-allow-build-with-cmake-4.patch \
10" 11"
11 12
12SRC_URI[sha256sum] = "d8f152314d7e4d3d643610d742845e0a016ce97c234ad4b1151574e1b09651ee" 13SRC_URI[sha256sum] = "d8f152314d7e4d3d643610d742845e0a016ce97c234ad4b1151574e1b09651ee"