From b674736ae20c61089cf580db2fe96ffc52d96bfa Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Mon, 2 Jun 2025 16:57:33 +0200 Subject: [PATCH] package/unzip: fix cmake 4 compatibility unzip fails on hosts with CMake 4, such as Arch Linux: 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. Fix by updating the cmake_minimum_required to 3.5. Fixes: https://autobuild.buildroot.org/results/211379177fbc293bcae3a16d951d263035a1d8a3/ https://autobuild.buildroot.org/results/5701aae037df6997724765cac53c3247c367508a/ https://autobuild.buildroot.org/results/d1d48040e7db67a54dc5ce24d19d97084407a401/ and other similar failures Signed-off-by: Luca Ceresoli Signed-off-by: Peter Korsgaard --- .../0001-Add-a-CMakeFile.txt-to-ease-cross-compilation.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/unzip/0001-Add-a-CMakeFile.txt-to-ease-cross-compilation.patch b/package/unzip/0001-Add-a-CMakeFile.txt-to-ease-cross-compilation.patch index cbc58e484b..bdb3eae6af 100644 --- a/package/unzip/0001-Add-a-CMakeFile.txt-to-ease-cross-compilation.patch +++ b/package/unzip/0001-Add-a-CMakeFile.txt-to-ease-cross-compilation.patch @@ -31,7 +31,7 @@ index 0000000..27951b4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,17 @@ -+cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.5) +INCLUDE(CheckFunctionExists) + +project(unzip C)