Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minizip-ng: Add 3.0.0 #4394

Closed

Conversation

intelligide
Copy link
Contributor

Specify library name and version: minizip-ng/3.0.0

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

Closes #4386.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Co-authored-by: Marian Klymov <nekto1989@gmail.com>
@conan-center-bot

This comment has been minimized.

recipes/minizip-ng/all/conanfile.py Outdated Show resolved Hide resolved
recipes/minizip-ng/all/conanfile.py Outdated Show resolved Hide resolved
recipes/minizip-ng/all/conanfile.py Outdated Show resolved Hide resolved
self._cmake.definitions["MZ_LZMA"] = self.options.with_lzma
self._cmake.definitions["MZ_ZSTD"] = self.options.with_zstd
self._cmake.definitions["MZ_OPENSSL"] = self.options.with_openssl
self._cmake.definitions["MZ_LIBCOMP"] = tools.is_apple_os(self.settings.os) and self.options.with_libcomp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self._cmake.definitions["MZ_LIBCOMP"] = tools.is_apple_os(self.settings.os) and self.options.with_libcomp
self._cmake.definitions["MZ_LIBCOMP"] = tools.is_apple_os(self.settings.os) and self.options.with_libcomp

Does make sense keep with_libcomp for all configurations, if it is only used for iOS?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it can be remove from package ID for other OSs, it's one item less to be computed on package ID.

recipes/minizip-ng/all/conanfile.py Show resolved Hide resolved
@conan-center-bot

This comment has been minimized.

Copy link
Contributor

@prince-chrismc prince-chrismc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +69 to +70
elif self.options.with_libcomp:
del self.options.with_zlib
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self._cmake.definitions["MZ_LZMA"] = self.options.with_lzma
self._cmake.definitions["MZ_ZSTD"] = self.options.with_zstd
self._cmake.definitions["MZ_OPENSSL"] = self.options.with_openssl
self._cmake.definitions["MZ_LIBCOMP"] = tools.is_apple_os(self.settings.os) and self.options.with_libcomp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

All green in build 13 (9d9ee403eaca58336fc27aa7fb5b7de40c4f6850)! 😊

if self.options.shared:
del self.options.fPIC
del self.settings.compiler.cppstd
del self.settings.compiler.libcxx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
del self.settings.compiler.libcxx
del self.settings.compiler.libcxx
if self.options.mz_compatibility:
self.provides = "minizip"

@Nekto89
Copy link
Contributor

Nekto89 commented Jan 29, 2021

Do these flags https://github.com/zlib-ng/minizip-ng/blob/6f17da582d2327c8cdc43622ddd31a185b6ef5fb/CMakeLists.txt#L647-L659 conflict with what conan will set?

I had to remove them for local build through CMake's ExternalProject because it was overriding /Z7 option

@conan-center-bot
Copy link
Collaborator

Failure in build 14 (9d9ee403eaca58336fc27aa7fb5b7de40c4f6850):

  • minizip-ng/3.0.0@:
    CI failed to create some packages (All logs)

    Logs for packageID 4a78c04cf082e195225965abb7af99bb914b879e:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Debug
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=12.0
    os=Macos
    os_build=Macos
    [options]
    minizip-ng:shared=False
    
    -- Found: /Users/jenkins/w/BuildSingleReference@3/.conan/data/openssl/1.1.1i/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libssl.a
    -- Library crypto found /Users/jenkins/w/BuildSingleReference@3/.conan/data/openssl/1.1.1i/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libcrypto.a
    -- Found: /Users/jenkins/w/BuildSingleReference@3/.conan/data/openssl/1.1.1i/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libcrypto.a
    -- Library crypto found /Users/jenkins/w/BuildSingleReference@3/.conan/data/openssl/1.1.1i/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libcrypto.a
    -- Found: /Users/jenkins/w/BuildSingleReference@3/.conan/data/openssl/1.1.1i/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libcrypto.a
    -- Library ssl found /Users/jenkins/w/BuildSingleReference@3/.conan/data/openssl/1.1.1i/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libssl.a
    -- Found: /Users/jenkins/w/BuildSingleReference@3/.conan/data/openssl/1.1.1i/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libssl.a
    -- Conan: Using autogenerated FindIconv.cmake
    -- Found Iconv: 1.16 (found version "1.16") 
    -- Library iconv found /Users/jenkins/w/BuildSingleReference@3/.conan/data/libiconv/1.16/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libiconv.a
    -- Found: /Users/jenkins/w/BuildSingleReference@3/.conan/data/libiconv/1.16/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libiconv.a
    -- Library charset found /Users/jenkins/w/BuildSingleReference@3/.conan/data/libiconv/1.16/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libcharset.a
    -- Found: /Users/jenkins/w/BuildSingleReference@3/.conan/data/libiconv/1.16/_/_/package/d98fae1010d1fb9e7f79a1e8a72bbf129d8660a2/lib/libcharset.a
    -- Library minizip found /Users/jenkins/w/BuildSingleReference@3/.conan/data/minizip-ng/3.0.0/_/_/package/4a78c04cf082e195225965abb7af99bb914b879e/lib/libminizip.a
    -- Found: /Users/jenkins/w/BuildSingleReference@3/.conan/data/minizip-ng/3.0.0/_/_/package/4a78c04cf082e195225965abb7af99bb914b879e/lib/libminizip.a
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/jenkins/w/BuildSingleReference@3/conan-center-index/recipes/minizip-ng/all/test_package/build/65d5e15cd00ee711cf9c113ff4f3397fea568884
    
    ----Running------
    > cmake --build '/Users/jenkins/w/BuildSingleReference@3/conan-center-index/recipes/minizip-ng/all/test_package/build/65d5e15cd00ee711cf9c113ff4f3397fea568884' '--' '-j8'
    -----------------
    Scanning dependencies of target test_package
    [ 50%] Building C object CMakeFiles/test_package.dir/test_package.c.o
    [HOOK - conan-center.py] post_package_info(): WARN: [LIBRARY DOES NOT EXIST (KB-H054)] Component openssl::openssl libdir "lib" does not contain any declared library
    [HOOK - conan-center.py] post_package_info(): WARN: [LIBRARY DOES NOT EXIST (KB-H054)] Component zstd::zstd libdir "lib" does not contain any declared library
    [HOOK - conan-center.py] post_package_info(): WARN: [LIBRARY DOES NOT EXIST (KB-H054)] Component minizip-ng::minizip-ng libdir "lib" does not contain any declared library
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CMAKE_EXPORT_NO_PACKAGE_REGISTRY
        CMAKE_INSTALL_BINDIR
        CMAKE_INSTALL_DATAROOTDIR
        CMAKE_INSTALL_INCLUDEDIR
        CMAKE_INSTALL_LIBDIR
        CMAKE_INSTALL_LIBEXECDIR
        CMAKE_INSTALL_OLDINCLUDEDIR
        CMAKE_INSTALL_SBINDIR
    
    
    /Users/jenkins/w/BuildSingleReference@3/conan-center-index/recipes/minizip-ng/all/test_package/test_package.c:7:19: error: implicit declaration of function 'mz_path_resolve' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        int32_t err = mz_path_resolve("c:\\test\\.", output, sizeof(output));
                      ^
    1 error generated.
    make[2]: *** [CMakeFiles/test_package.dir/test_package.c.o] Error 1
    make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
    make: *** [all] Error 2
    ERROR: minizip-ng/3.0.0 (test package): Error in build() method, line 12
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build '/Users/jenkins/w/BuildSingleReference@3/conan-center-index/recipes/minizip-ng/all/test_package/build/65d5e15cd00ee711cf9c113ff4f3397fea568884' '--' '-j8'
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@stale
Copy link

stale bot commented Apr 6, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 6, 2021
@uilianries uilianries mentioned this pull request Apr 9, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[request] minizip-ng/3.0.0
5 participants