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

bzip3: add recipe #11612

Merged
merged 8 commits into from
Jul 13, 2022
Merged

bzip3: add recipe #11612

merged 8 commits into from
Jul 13, 2022

Conversation

toge
Copy link
Contributor

@toge toge commented Jul 9, 2022

Specify library name and version: bzip3/1.1.4

Bzip3 is a compression library.


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

@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: SSE4 <tomskside@gmail.com>
@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2022

Hooks produced the following warnings for commit b23484d
bzip3/1.1.4
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libbzip3.so' links to system library 'm' but it is not in cpp_info.system_libs.

danimtb
danimtb previously approved these changes Jul 11, 2022
recipes/bzip3/all/CMakeLists.txt Outdated Show resolved Hide resolved
recipes/bzip3/all/test_package/test_package.c Outdated Show resolved Hide resolved
jwillikers
jwillikers previously approved these changes Jul 11, 2022
Copy link
Contributor

@jwillikers jwillikers left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks!

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit ffd8b97
bzip3/1.1.4
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libbzip3.so' links to system library 'm' but it is not in cpp_info.system_libs.

SSE4
SSE4 previously approved these changes Jul 11, 2022
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.

Maybe we can sneak in the missing system lib?

Hooks produced the following warnings for commit ffd8b97
bzip3/1.1.4

post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libbzip3.so' links to system library 'm' but it is not in cpp_info.system_libs.

recipes/bzip3/all/conanfile.py Outdated Show resolved Hide resolved
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
@conan-center-bot
Copy link
Collaborator

All green in build 6 (650e049568aec7e2396d65bc261bdbf11e873ef1):

  • bzip3/1.1.4@:
    All packages built successfully! (All logs)

    🔸 Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work.
    See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-11612/recipes/bzip3/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-11612/recipes/bzip3/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-11612/recipes/bzip3/all/conanfile.py", line 2, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    

@conan-center-bot conan-center-bot merged commit 6253a3c into conan-io:master Jul 13, 2022
C_EXTENSIONS OFF
)
if (with_thread)
target_compile_definitions(bzip3 PRIVATE "PTHREAD")
Copy link
Contributor

Choose a reason for hiding this comment

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

you should add:

find_package(Threads REQUIRED)
target_link_libraries(bzip3 PRIVATE Threads::Threads)

if (WITH_UTIL)
install(
TARGETS bzip3_cmd
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
Copy link
Contributor

Choose a reason for hiding this comment

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

breaks iOS

should be:

DESTINATION ${CMAKE_INSTALL_BINDIR}

Comment on lines +46 to +47
if self.settings.os not in ["Linux", "FreeBSD"]:
del self.options.with_thread
Copy link
Contributor

Choose a reason for hiding this comment

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

  • should be in config_options()
  • why only Linux & FreeBSD? Should be deleted for Windows only (and actually it should work for MinGW with pthread)

cmake = self._configure_cmake()
cmake.install()

def package_info(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

you should add:

        self.cpp_info.set_property("pkg_config_name", "bzip3")

see https://github.com/kspalaiologos/bzip3/blob/1.1.4/bzip3.pc.in

AndreyMlashkin pushed a commit to AndreyMlashkin/conan-center-index that referenced this pull request Jul 29, 2022
* bzip3: add recipe

* set c_std_99 features for `restrict` keyword

* make restrict macro

* update cmake required version

Co-authored-by: SSE4 <tomskside@gmail.com>

* add const

* modernize CMakeLists.txt

* link pthread only on with_thread=True

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>

Co-authored-by: SSE4 <tomskside@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
datalogics-robb pushed a commit to datalogics-robb/conan-center-index that referenced this pull request Mar 6, 2023
…update-from-conan-io

* 'master' of github.com:conan-io/conan-center-index: (1322 commits)
  (conan-io#11692) [bot] Add Access Request users (2022-07-14)
  (conan-io#11691) gettext: update dependencies
  (conan-io#11685) libcurl: update openssl
  (conan-io#11688) s2n: update openssl
  (conan-io#11687) sqlite3: add version 3.39.1
  (conan-io#11683) docs: add a link the list of reviewers
  (conan-io#11682) certify - bump deps
  (conan-io#11673) amqp-cpp - bump deps
  (conan-io#11672) msix - bump deps
  (conan-io#11580) wayland: Switch to MesonToolchain generator to allow cross-compiling
  (conan-io#11557) spirv-tools package 1.3.216 has the wrong git hash
  (conan-io#11439) openssl: Fix option no_md2
  (conan-io#11680) cassandra-cpp-driver - bump deps
  (conan-io#11671) arrow: update dependencies
  (conan-io#11675) aws-c-cal - bump deps
  (conan-io#11677) brynet - bump deps
  (conan-io#11662) doc: link to cci-pending-review github page
  (conan-io#11612) bzip3: add recipe
  (conan-io#11071) [libjpeg] Use SPDX license identifer
  (conan-io#11478) libcurl: add version 7.84.0
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants