diff options
author | Alper Ak <alperyasinak1@gmail.com> | 2025-07-10 20:38:24 +0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-07-10 10:46:23 -0700 |
commit | 119bab03d399490b12213aed9c6ad214fce29cde (patch) | |
tree | 79103e51828afc08b243363dd6a9064f3d425f57 | |
parent | 202e26057387ff0d19847989afb08760134c989e (diff) | |
download | meta-openembedded-119bab03d399490b12213aed9c6ad214fce29cde.tar.gz |
srt: Add patch for CMake 4+ compatibility
Fix:
| CMake Error at CMakeLists.txt:10 (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-multimedia/recipes-support/srt/srt/0002-allow-build-with-cmake-4.patch | 43 | ||||
-rw-r--r-- | meta-multimedia/recipes-support/srt/srt_1.4.4.bb | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-support/srt/srt/0002-allow-build-with-cmake-4.patch b/meta-multimedia/recipes-support/srt/srt/0002-allow-build-with-cmake-4.patch new file mode 100644 index 0000000000..ba281a3a53 --- /dev/null +++ b/meta-multimedia/recipes-support/srt/srt/0002-allow-build-with-cmake-4.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 5a71ca427a10fe89ad48e9dbb6641e4403d81fa7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alper Ak <alperyasinak1@gmail.com> | ||
3 | Date: Thu, 10 Jul 2025 13:30:25 +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:10 (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/Haivision/srt/commit/0def1b1a1094fc57752f241250e9a1aed71bbffd] | ||
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 328a433f..448d6254 100644 | ||
30 | --- a/CMakeLists.txt | ||
31 | +++ b/CMakeLists.txt | ||
32 | @@ -7,7 +7,7 @@ | ||
33 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
34 | # | ||
35 | |||
36 | -cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR) | ||
37 | +cmake_minimum_required (VERSION 3.5 FATAL_ERROR) | ||
38 | set (SRT_VERSION 1.4.4) | ||
39 | |||
40 | set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/scripts") | ||
41 | -- | ||
42 | 2.43.0 | ||
43 | |||
diff --git a/meta-multimedia/recipes-support/srt/srt_1.4.4.bb b/meta-multimedia/recipes-support/srt/srt_1.4.4.bb index 91651fda8e..e72a36f657 100644 --- a/meta-multimedia/recipes-support/srt/srt_1.4.4.bb +++ b/meta-multimedia/recipes-support/srt/srt_1.4.4.bb | |||
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad" | |||
9 | SRCREV = "8b32f3734ff6af7cc7b0fef272591cb80a2d1aae" | 9 | SRCREV = "8b32f3734ff6af7cc7b0fef272591cb80a2d1aae" |
10 | SRC_URI = "git://github.com/Haivision/srt;protocol=https;branch=master \ | 10 | SRC_URI = "git://github.com/Haivision/srt;protocol=https;branch=master \ |
11 | file://0001-don-t-install-srt-ffplay.patch \ | 11 | file://0001-don-t-install-srt-ffplay.patch \ |
12 | file://0002-allow-build-with-cmake-4.patch \ | ||
12 | " | 13 | " |
13 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" | 14 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" |
14 | 15 | ||