diff options
| author | Alper Ak <alperyasinak1@gmail.com> | 2025-07-08 22:56:33 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-07-09 09:16:08 -0700 |
| commit | 74acd7224860825261c8b73c934006575133db58 (patch) | |
| tree | d3dc1aa5b98515483b9f837059cab375d45afaad /meta-networking | |
| parent | 922215ac29c883a47180cdd134ec4aa61a6167d7 (diff) | |
| download | meta-openembedded-74acd7224860825261c8b73c934006575133db58.tar.gz | |
freediameter: Add patch for CMake 4+ compatibility
Fix:
| CMake Error at CMakeLists.txt:24 (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-networking')
| -rw-r--r-- | meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch | 81 | ||||
| -rw-r--r-- | meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb | 2 |
2 files changed, 82 insertions, 1 deletions
diff --git a/meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch b/meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch new file mode 100644 index 0000000000..89a215d975 --- /dev/null +++ b/meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | From a96a8f8debb457fd5bdcd34f005670678870ec70 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alper Ak <alperyasinak1@gmail.com> | ||
| 3 | Date: Tue, 8 Jul 2025 20:58:10 +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:24 (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: Backport [https://github.com/freeDiameter/freeDiameter/commit/45106adf3bf4192b274ef6c5536200a0e19c84f2] | ||
| 22 | |||
| 23 | Signed-off-by: Alper Ak <alperyasinak1@gmail.com> | ||
| 24 | --- | ||
| 25 | CMakeLists.txt | 6 +++--- | ||
| 26 | libfdcore/CMakeLists.txt | 2 +- | ||
| 27 | libfdproto/CMakeLists.txt | 2 +- | ||
| 28 | 3 files changed, 5 insertions(+), 5 deletions(-) | ||
| 29 | |||
| 30 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 31 | index 870e1ef..f1e6dc5 100644 | ||
| 32 | --- a/CMakeLists.txt | ||
| 33 | +++ b/CMakeLists.txt | ||
| 34 | @@ -1,5 +1,8 @@ | ||
| 35 | # This file is the source for generating the Makefile for the project, using cmake tool (cmake.org) | ||
| 36 | |||
| 37 | +# CMake version | ||
| 38 | +CMAKE_MINIMUM_REQUIRED(VERSION 3.10) | ||
| 39 | + | ||
| 40 | # Name of the project | ||
| 41 | PROJECT("freeDiameter") | ||
| 42 | |||
| 43 | @@ -20,9 +23,6 @@ SET(FD_PROJECT_VERSION_API 7) | ||
| 44 | # The test framework, using CTest and CDash. | ||
| 45 | INCLUDE(CTest) | ||
| 46 | |||
| 47 | -# CMake version | ||
| 48 | -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12) | ||
| 49 | - | ||
| 50 | # Location of additional CMake modules | ||
| 51 | SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") | ||
| 52 | |||
| 53 | diff --git a/libfdcore/CMakeLists.txt b/libfdcore/CMakeLists.txt | ||
| 54 | index b1bc0f1..4fefcb7 100644 | ||
| 55 | --- a/libfdcore/CMakeLists.txt | ||
| 56 | +++ b/libfdcore/CMakeLists.txt | ||
| 57 | @@ -2,7 +2,7 @@ | ||
| 58 | Project("freeDiameter core library" C) | ||
| 59 | |||
| 60 | # Configuration for newer cmake | ||
| 61 | -cmake_policy(VERSION 2.8.12) | ||
| 62 | +cmake_policy(VERSION 3.10) | ||
| 63 | |||
| 64 | # Configuration parser | ||
| 65 | BISON_FILE(fdd.y) | ||
| 66 | diff --git a/libfdproto/CMakeLists.txt b/libfdproto/CMakeLists.txt | ||
| 67 | index c7164fb..4cedf65 100644 | ||
| 68 | --- a/libfdproto/CMakeLists.txt | ||
| 69 | +++ b/libfdproto/CMakeLists.txt | ||
| 70 | @@ -2,7 +2,7 @@ | ||
| 71 | Project("libfdproto" C) | ||
| 72 | |||
| 73 | # Configuration for newer cmake | ||
| 74 | -cmake_policy(VERSION 2.8.12) | ||
| 75 | +cmake_policy(VERSION 3.10) | ||
| 76 | |||
| 77 | # List of source files for the library | ||
| 78 | SET(LFDPROTO_SRC | ||
| 79 | -- | ||
| 80 | 2.43.0 | ||
| 81 | |||
diff --git a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb b/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb index 89b2572c04..31ac1fb9b7 100644 --- a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb +++ b/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb | |||
| @@ -25,9 +25,9 @@ SRC_URI = "git://github.com/freeDiameter/freeDiameter;protocol=https;branch=mast | |||
| 25 | file://0001-tests-use-EXTENSIONS_DIR.patch \ | 25 | file://0001-tests-use-EXTENSIONS_DIR.patch \ |
| 26 | file://0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch \ | 26 | file://0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch \ |
| 27 | file://0001-fixes-for-gcc-15.patch \ | 27 | file://0001-fixes-for-gcc-15.patch \ |
| 28 | file://0002-allow-build-with-cmake-4.patch \ | ||
| 28 | " | 29 | " |
| 29 | 30 | ||
| 30 | |||
| 31 | LICENSE = "BSD-3-Clause" | 31 | LICENSE = "BSD-3-Clause" |
| 32 | LIC_FILES_CHKSUM = "file://LICENSE;md5=868c059b6147748b1d621e500feeac4f" | 32 | LIC_FILES_CHKSUM = "file://LICENSE;md5=868c059b6147748b1d621e500feeac4f" |
| 33 | 33 | ||
