diff --git a/packages/addons/service/mariadb/patches/mariadb-246-build-with-cmake-4.0.0.patch b/packages/addons/service/mariadb/patches/mariadb-246-build-with-cmake-4.0.0.patch new file mode 100644 index 0000000000..0ce3498129 --- /dev/null +++ b/packages/addons/service/mariadb/patches/mariadb-246-build-with-cmake-4.0.0.patch @@ -0,0 +1,22 @@ +From 2abb5e794fdaf6114d4691f7921ec7bda2902603 Mon Sep 17 00:00:00 2001 +From: fundawang +Date: Sat, 22 Mar 2025 23:08:46 +0800 +Subject: [PATCH] Update cmake minimum version range + +--- + wsrep-lib/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/wsrep-lib/CMakeLists.txt b/wsrep-lib/CMakeLists.txt +index ef2f4c8b..b6dd69f1 100644 +--- a/wsrep-lib/CMakeLists.txt ++++ b/wsrep-lib/CMakeLists.txt +@@ -2,7 +2,7 @@ + # Copyright (C) 2021 Codership Oy + # + +-cmake_minimum_required (VERSION 2.8) ++cmake_minimum_required (VERSION 2.8...4.0) + + # Parse version from version header file and store it into + # WSREP_LIB_VERSION.