v4l2tools: add pending patch for CMake >= 4.0 support
authorChristian Marangi <[email protected]>
Mon, 24 Nov 2025 23:52:32 +0000 (00:52 +0100)
committerChristian Marangi <[email protected]>
Mon, 24 Nov 2025 23:57:10 +0000 (00:57 +0100)
Add pending patch for v4l2tools for CMake >= 4.0 support.

Also backport a patch for the v4l2wrapper library.

Signed-off-by: Christian Marangi <[email protected]>
multimedia/v4l2tools/patches/001-update-cmake-version-min.patch [new file with mode: 0644]
multimedia/v4l2tools/patches/002-CMakeLists-update-min-version-to-3.10-for-CMake-4.0-.patch [new file with mode: 0644]
multimedia/v4l2tools/patches/100-CMakeLists-update-min-version-to-3.10-for-CMake-4.0-.patch [new file with mode: 0644]

diff --git a/multimedia/v4l2tools/patches/001-update-cmake-version-min.patch b/multimedia/v4l2tools/patches/001-update-cmake-version-min.patch
new file mode 100644 (file)
index 0000000..104ea77
--- /dev/null
@@ -0,0 +1,17 @@
+From 8e13b8df40af5d48a05775f851b7900b5f87e9ad Mon Sep 17 00:00:00 2001
+From: Michel Promonet <[email protected]>
+Date: Sun, 29 Dec 2024 15:20:34 +0100
+Subject: [PATCH] update cmake version min
+
+---
+ v4l2wrapper/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/v4l2wrapper/CMakeLists.txt
++++ b/v4l2wrapper/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ # set project name from current directory
+ get_filename_component(BASENAME ${CMAKE_CURRENT_LIST_DIR} NAME)
diff --git a/multimedia/v4l2tools/patches/002-CMakeLists-update-min-version-to-3.10-for-CMake-4.0-.patch b/multimedia/v4l2tools/patches/002-CMakeLists-update-min-version-to-3.10-for-CMake-4.0-.patch
new file mode 100644 (file)
index 0000000..0eb21f8
--- /dev/null
@@ -0,0 +1,28 @@
+From f8c109f7156418abcc964a0df1ea2f5642c49077 Mon Sep 17 00:00:00 2001
+From: Christian Marangi <[email protected]>
+Date: Tue, 25 Nov 2025 00:38:51 +0100
+Subject: [PATCH] CMakeLists: update min version to 3.10 for CMake >= 4.0
+ support
+
+Update minimum version of CMake to 3.10 for CMake >= 4.0 version
+support.
+
+New CMake require 3.5 as the minimum version with that increased to 3.10
+in the next CMake release.
+
+Signed-off-by: Christian Marangi <[email protected]>
+---
+ libyuv/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/libyuv/CMakeLists.txt
++++ b/libyuv/CMakeLists.txt
+@@ -3,7 +3,7 @@
+ # Run with -DTEST=ON to build unit tests
+ PROJECT ( YUV C CXX ) # "C" is required even for C++ projects
+-CMAKE_MINIMUM_REQUIRED( VERSION 2.8.12 )
++CMAKE_MINIMUM_REQUIRED( VERSION 3.10 )
+ OPTION( TEST "Built unit tests" OFF )
+ SET ( ly_base_dir     ${PROJECT_SOURCE_DIR} )
diff --git a/multimedia/v4l2tools/patches/100-CMakeLists-update-min-version-to-3.10-for-CMake-4.0-.patch b/multimedia/v4l2tools/patches/100-CMakeLists-update-min-version-to-3.10-for-CMake-4.0-.patch
new file mode 100644 (file)
index 0000000..846e2c9
--- /dev/null
@@ -0,0 +1,25 @@
+From 8c515a3e00fb062c1aa860a26314a49eb08d8658 Mon Sep 17 00:00:00 2001
+From: Christian Marangi <[email protected]>
+Date: Tue, 25 Nov 2025 00:23:42 +0100
+Subject: [PATCH] CMakeLists: update min version to 3.10 for CMake >= 4.0
+ support
+
+Update minimum version of CMake to 3.10 for CMake >= 4.0 version
+support.
+
+New CMake require 3.5 as the minimum version with that increased to 3.10
+in the next CMake release.
+
+Signed-off-by: Christian Marangi <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.10)
+ # set project name from current directory
+ get_filename_component(BASENAME ${CMAKE_SOURCE_DIR} NAME)