Source: libzip
Version: 1.11.4-1
Severity: serious
Tags: patch

https://ci.debian.net/packages/libz/libzip/testing/amd64/67800512/

...
 37s CMake Error in CMakeLists.txt:
 37s   No cmake_minimum_required command is present.  A line of code such as
 37s 
 37s     cmake_minimum_required(VERSION 4.2)
 37s 
 37s   should be added at the top of the file.  The version specified may be 
lower
 37s   if you wish to support older CMake versions for this project.  For more
 37s   information run "cmake --help-policy CMP0000".
 37s 
 37s 
 37s -- Configuring incomplete, errors occurred!
 37s autopkgtest [03:46:48]: test upstream: -----------------------]
 37s autopkgtest [03:46:48]: test upstream:  - - - - - - - - - - results - - - 
- - - - - - -
 37s upstream             FAIL non-zero exit status 1
...



A fix is attached.
Description: Fix the autopkgtest with CMake 4
Author: Adrian Bunk <[email protected]>

--- libzip-1.11.4.orig/examples/CMakeLists.txt
+++ libzip-1.11.4/examples/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required(VERSION 3.5)
 foreach(PROGRAM add-compressed-data autoclose-archive in-memory)
     add_executable(${PROGRAM} ${PROGRAM}.c)
     target_link_libraries(${PROGRAM} zip)

Reply via email to