Ultimaker / cura-build-environment

CMake project to build dependencies for Cura
GNU Affero General Public License v3.0
24 stars 55 forks source link

zlib/1.2.12 missing patch files #148

Closed daniel-starke closed 2 years ago

daniel-starke commented 2 years ago

The zlib source does not contain any patch file but conandata.yml refers to

Please include the missing files or remove their reference if unnecessary.

Built on Windows with Python 3.8.10, Conan 1.48.1, GCC 9.2.0, CMake 3.23.1.

See error log below.

zlib/1.2.12: Configuring sources in %USERPROFILE%\.conan\data\zlib\1.2.12\_\_\source

zlib/1.2.12: Copying sources to build folder
zlib/1.2.12: Building your package in %USERPROFILE%\.conan\data\zlib\1.2.12\_\_\build\b099ebc583380bf1c0a5415768be1c61f35137f4
zlib/1.2.12: Generator cmake created conanbuildinfo.cmake
zlib/1.2.12: Aggregating env generators
zlib/1.2.12: Calling build()
zlib/1.2.12:
zlib/1.2.12: ERROR: Package 'b099ebc583380bf1c0a5415768be1c61f35137f4' build failed
zlib/1.2.12: WARN: Build folder %USERPROFILE%\.conan\data\zlib\1.2.12\_\_\build\b099ebc583380bf1c0a5415768be1c61f35137f4
ERROR: zlib/1.2.12: Error in build() method, line 89
        self._patch_sources()
while calling '_patch_sources', line 63
        tools.patch(**patch)
        FileNotFoundError: [Errno 2] No such file or directory: 'patches/0001-fix-cmake.patch'
CMake Error at build/conan.cmake:540 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  build/conan.cmake:877 (old_conan_cmake_install)
  cmake/conan.cmake:15 (conan_cmake_run)
  CMakeLists.txt:17 (include)

conandata.yml:

patches:
  1.2.12:
  - base_path: source_subfolder
    patch_file: patches/0001-fix-cmake.patch
  - base_path: source_subfolder
    patch_file: patches/0002-gzguts-xcode12-compile-fix.patch
sources:
  1.2.12:
    sha256: 91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9
    url: https://zlib.net/fossils/zlib-1.2.12.tar.gz
daniel-starke commented 2 years ago

P.S.: Just removing the patch reference does not work as zlib does not ship a CMake file but Conan expects one to build it using CMake.