diff options
| author | Alper Ak <alperyasinak1@gmail.com> | 2025-07-08 22:56:36 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-07-09 09:16:08 -0700 |
| commit | a2f6dfd32131e3c5b84e5f4e7a4bab5fbc67658d (patch) | |
| tree | 91829eb71397d26f1dd6a513d9d4000f17477b25 /meta-oe/recipes-connectivity | |
| parent | 2297a31eb432c36e91892dc3da9a8412c1867344 (diff) | |
| download | meta-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.patch | 43 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/gammu/gammu_1.42.0.bb | 1 |
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 @@ | |||
| 1 | From ea068ac152b9b375be51611ca04d0f833e2f6856 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alper Ak <alperyasinak1@gmail.com> | ||
| 3 | Date: Tue, 8 Jul 2025 22:52:11 +0300 | ||
| 4 | Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+ | ||
| 5 | compatibility | ||
| 6 | |||
| 7 | Fix: | ||
| 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 | |||
| 21 | Upstream-Status: Pending | ||
| 22 | |||
| 23 | Signed-off-by: Alper Ak <alperyasinak1@gmail.com> | ||
| 24 | --- | ||
| 25 | CMakeLists.txt | 2 +- | ||
| 26 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 27 | |||
| 28 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 29 | index 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 | -- | ||
| 42 | 2.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/" | |||
| 7 | SRC_URI = "https://dl.cihar.com/${BPN}/releases/${BP}.tar.xz \ | 7 | SRC_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 | ||
| 12 | SRC_URI[sha256sum] = "d8f152314d7e4d3d643610d742845e0a016ce97c234ad4b1151574e1b09651ee" | 13 | SRC_URI[sha256sum] = "d8f152314d7e4d3d643610d742845e0a016ce97c234ad4b1151574e1b09651ee" |
