summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlper Ak <alperyasinak1@gmail.com>2025-07-10 20:38:24 +0300
committerKhem Raj <raj.khem@gmail.com>2025-07-10 10:46:23 -0700
commit119bab03d399490b12213aed9c6ad214fce29cde (patch)
tree79103e51828afc08b243363dd6a9064f3d425f57
parent202e26057387ff0d19847989afb08760134c989e (diff)
downloadmeta-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.patch43
-rw-r--r--meta-multimedia/recipes-support/srt/srt_1.4.4.bb1
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 @@
1From 5a71ca427a10fe89ad48e9dbb6641e4403d81fa7 Mon Sep 17 00:00:00 2001
2From: Alper Ak <alperyasinak1@gmail.com>
3Date: Thu, 10 Jul 2025 13:30:25 +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: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
21Upstream-Status: Backport [https://github.com/Haivision/srt/commit/0def1b1a1094fc57752f241250e9a1aed71bbffd]
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 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--
422.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"
9SRCREV = "8b32f3734ff6af7cc7b0fef272591cb80a2d1aae" 9SRCREV = "8b32f3734ff6af7cc7b0fef272591cb80a2d1aae"
10SRC_URI = "git://github.com/Haivision/srt;protocol=https;branch=master \ 10SRC_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 "
13UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" 14UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
14 15