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

drogon: add recipe #10848

Merged
merged 11 commits into from
May 28, 2022
Merged

drogon: add recipe #10848

merged 11 commits into from
May 28, 2022

Conversation

toge
Copy link
Contributor

@toge toge commented May 18, 2022

Specify library name and version: drogon/1.7.5


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

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

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

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

@github-actions
Copy link
Contributor

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

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.

Nice recipe. Only few points to be cleared.

recipes/drogon/all/conanfile.py Show resolved Hide resolved
def configure(self):
if self.options.shared:
del self.options.fPIC
self.options["trantor"].shared = True
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.options["trantor"].shared = True
self.options["trantor"].shared = True

Any error which enforces trantor as shared?

Copy link
Contributor Author

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.

Good catch!

self.requires("coz/cci.20210322")
if self.options.with_brotli:
self.requires("brotli/1.0.9")
if self.options.with_postgres:
Copy link
Member

Choose a reason for hiding this comment

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

Don't forget to use self.options.get_safe instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you!
I fixed those.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

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

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

def configure(self):
if self.options.shared:
del self.options.fPIC
self.options["trantor"].shared = True
Copy link
Contributor

Choose a reason for hiding this comment

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

might be better to reject invalid shared/static combinations in validate

Copy link
Member

Choose a reason for hiding this comment

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

The problem we require only static libs by default. If we only validate, this package would break for any configuration.

if(NEED_BOOST_FS)
- find_package(Boost 1.49.0 COMPONENTS filesystem system REQUIRED)
+ # TODO: component specified find_package is always failed. Need to fix it.
+ find_package(Boost 1.49.0 REQUIRED)
Copy link
Contributor

Choose a reason for hiding this comment

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

interesting. might be a conan generator bug?

@SSE4 SSE4 closed this May 27, 2022
@SSE4 SSE4 reopened this May 27, 2022
@SSE4 SSE4 closed this May 27, 2022
@SSE4 SSE4 reopened this May 27, 2022
@conan-center-bot
Copy link
Collaborator

All green in build 14 (ce771ed3caa7691071be1ce4d015e69d49c337a8):

  • drogon/1.7.5@:
    All packages built successfully! (All logs)

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.

4 participants