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

adding spdlog/1.7.0 + add header only component + fixing hooks #2174

Merged
merged 5 commits into from
Jul 21, 2020

Conversation

prince-chrismc
Copy link
Contributor

@prince-chrismc prince-chrismc commented Jul 9, 2020

Specify library name and version: spdlog/1.7.0

fixes #2228

  • 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
Copy link
Collaborator

Some configurations of 'spdlog/1.4.2' failed in build 1 (3ccf311c2b2731589c380ac56c9d6318ca3c1090):

@conan-center-bot
Copy link
Collaborator

An unexpected error happened and has been reported. Help is on its way! 🏇

@ytimenkov
Copy link
Contributor

Ooc: what is the reason for having a header-only component and how it can be used?
Do cmakefiles exported by spdlog natively have same set of components?

@prince-chrismc
Copy link
Contributor Author

@ytimenkov

Ooc: what is the reason for having a header-only component and how it can be used?

It's a design choice of the maintainer, it shows there are two different and distinct modes of working with a library

Do cmakefiles exported by spdlog natively have same set of components?

💯 That's what we are trying to recreate, so whether you use Conan or not it should be a seamless integration

@ytimenkov
Copy link
Contributor

Do cmakefiles exported by spdlog natively have same set of components?

💯 That's what we are trying to recreate, so whether you use Conan or not it should be a seamless integration

I see 👍. Can't tell now but have strange feeling about having deferent components (doing almost the same) depending on option.

@conan-center-bot
Copy link
Collaborator

Some configurations of 'spdlog/1.4.2' failed in build 3 (8641f35307bbc3307b765b91bc414a104d779b19):

@prince-chrismc
Copy link
Contributor Author

I see . Can't tell now but have strange feeling about having diferent components (doing almost the same) depending on option.

Personally I agree, however that it was what the project maintainer has decide to do. It's our responsibility its seamless offer via conan. there are other conan generators to simplify your work flow at the cost of being conan specific.

@conan-center-bot
Copy link
Collaborator

Some configurations of 'spdlog/1.4.2' failed in build 4 (ce1342507e94d1e11e2e7b8d2bd9a4096290c393):

@conan-center-bot
Copy link
Collaborator

Some configurations of 'spdlog/1.7.0' failed in build 5 (758972d0a04630b8867bbc1e5cfd3b97d9e127a2):

@prince-chrismc prince-chrismc mentioned this pull request Jul 11, 2020
3 tasks
@conan-center-bot
Copy link
Collaborator

An unexpected error happened and has been reported. Help is on its way! 🏇

@uilianries uilianries closed this Jul 13, 2020
@uilianries uilianries reopened this Jul 13, 2020
only use one cpp_info global versus components
refactor package_info
missed a cpp_info global
adding component requirements
danimtb
danimtb previously approved these changes Jul 20, 2020
@conan-center-bot
Copy link
Collaborator

An unexpected error happened and has been reported. Help is on its way! 🏇

@conan-center-bot
Copy link
Collaborator

All green in build 8 (793cc487ff9a54eebbf6f4f66640f91013a18be2)! 😊

recipes/spdlog/all/conanfile.py Outdated Show resolved Hide resolved
@prince-chrismc
Copy link
Contributor Author

prince-chrismc commented Jul 20, 2020

Should we add the fix for #2228 from 2233 ?

A: #2233 (comment)

@conan-center-bot
Copy link
Collaborator

config.yml syntax error in build 10:

Only one library can be changed in the same PR: [entt/3.x.x, spdlog/all]|

@prince-chrismc
Copy link
Contributor Author

the Bot is having problems with this PR 🤕

@conan-center-bot
Copy link
Collaborator

All green in build 11 (499147399979c83e45d29c9efb1b5bec5a6166ad)! 😊

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

LGTM

@uilianries uilianries requested a review from danimtb July 20, 2020 20:27
@danimtb danimtb merged commit b1d8a1d into conan-io:master Jul 21, 2020
self.cpp_info.components["libspdlog"].defines.append("SPDLOG_COMPILED_LIB")

self.cpp_info.components[component_name].defines.append("SPDLOG_FMT_EXTERNAL")
if self.options["fmt"].header_only:
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be other way around? I get

Component 'fmt::fmt-header-only' not found in 'fmt' package requirement
ERROR: Component 'fmt::fmt-header-only' not found in 'fmt' package requirement

Copy link
Member

Choose a reason for hiding this comment

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

Your fmt package should be outdated. You can run conan install -U , or remove remove from cache and install again.

Copy link
Contributor

@ytimenkov ytimenkov Jul 21, 2020

Choose a reason for hiding this comment

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

This didn't go away even after bumping fmt from 6.2.1 to the latest (7.somthing, this triggered pulling a new recipe).
I think it's being addressed in #2243

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.

[package] spdlog/1.6.1: embedded fmt conflicts with conan fmt
7 participants