Explorar o código

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 <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.

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 <luca.ceresoli@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Luca Ceresoli hai 2 meses
pai
achega
b674736ae2

+ 1 - 1
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)