diff mbox series

[1/1] package/easydbus: fix cmake 4 compatibility

Message ID 20260118100955.628730-1-bernd@kuhls.net
State Handled Elsewhere
Headers show
Series [1/1] package/easydbus: fix cmake 4 compatibility | expand

Commit Message

Bernd Kuhls Jan. 18, 2026, 10:09 a.m. UTC
Fixes:
https://autobuild.buildroot.net/results/5e5/5e5c468c657a402befec13e3b7abf6423ccfeb37/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 ...m-required-version-to-3.5-for-CMake-.patch | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 package/easydbus/0001-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch
diff mbox series

Patch

diff --git a/package/easydbus/0001-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch b/package/easydbus/0001-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch
new file mode 100644
index 0000000000..cee84c21f5
--- /dev/null
+++ b/package/easydbus/0001-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch
@@ -0,0 +1,41 @@ 
+From decf167b6b840fd520aec1f2fdac68a23c2acb83 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Sun, 18 Jan 2026 10:57:58 +0100
+Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
+ compatibility
+
+Fixes:
+CMake Error at CMakeLists.txt:7 (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!
+
+Upstream: https://github.com/mniestroj/easydbus/pull/7
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 575eb24..efaf339 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -4,7 +4,7 @@
+ # SPDX-License-Identifier: MIT
+ #
+ 
+-cmake_minimum_required(VERSION 2.6)
++cmake_minimum_required(VERSION 3.5)
+ project(easydbus C)
+ 
+ add_definitions("-Wall -Wextra -Wno-unused-parameter")
+-- 
+2.47.3
+