diff --git a/packages/addons/addon-depends/docker/tini/patches/tini-233-build-with-cmake-4.0.0.patch b/packages/addons/addon-depends/docker/tini/patches/tini-233-build-with-cmake-4.0.0.patch new file mode 100644 index 0000000000..db8617ce3d --- /dev/null +++ b/packages/addons/addon-depends/docker/tini/patches/tini-233-build-with-cmake-4.0.0.patch @@ -0,0 +1,33 @@ +From 3fa740494edfd11fa84bf714a6ffa14c910b6385 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum +Date: Fri, 28 Mar 2025 19:10:02 +1100 +Subject: [PATCH] chore: allow CMake though to 3.10 + +This is allows the build with cmake-4.0.0 without deprecation warnings. + +use min...max syntax to allow build with newer cmake. +ref: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html + +Fixes: +CMake Error at CMakeLists.txt:1 (cmake_minimum_required): + Compatibility with CMake < 3.5 has been removed from CMake. + + Update the VERSION argument value. Or, use the ... syntax + to tell CMake that the project requires at least but has been updated + to work with policies introduced by or earlier. + + Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ca0209b..16d693d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 2.8.0) ++cmake_minimum_required (VERSION 2.8.12...3.10) + project (tini C) + + # Config