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

async_simple: add 1.3, reinstate msvc, add compiled version #22614

Merged
merged 12 commits into from
May 20, 2024

Conversation

RazielXYZ
Copy link
Contributor

Specify library name and version: async_simple/1.3

This quite heavily modifies the recipe to support non-header-only-mode (only on not windows, since the only reason to compile it is for uthread, which only works on linux and osx)
It also removes the invalid throw on msvc - not sure why it was there in the first place, even 1.0 appears to work fine in msvc.
And finally, it adds the latest just released version, 1.3


@ghost
Copy link

ghost commented Feb 1, 2024

I detected other pull requests that are modifying async_simple/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@conan-center-bot

This comment has been minimized.

Don't rename if .a name is already libasync_simple.a (like it is in 1.0)
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Feb 1, 2024

Hooks produced the following warnings for commit cc284b9
async_simple/1.3@#c91de1eca5d26289d77ed9fbe171b397
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libasync_simple.so' links to system library 'pthread' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libasync_simple.so' links to system library 'm' but it is not in cpp_info.system_libs.
async_simple/1.0.0@#52ea8dcc1ca7602e0a2760c88e1fa7c5
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libasync_simple.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libasync_simple.so' links to system library 'pthread' but it is not in cpp_info.system_libs.

danimtb
danimtb previously approved these changes Apr 10, 2024
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link
Contributor

Hooks produced the following warnings for commit ad94d03
async_simple/1.2@#75ebce7082b57891db6bc2422606453e
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libasync_simple.so' links to system library 'pthread' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libasync_simple.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.

Copy link
Contributor

Hooks produced the following warnings for commit da3834c
async_simple/1.0.0@#a0bc3185256a1484deeec098f0994a52
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libasync_simple.so' links to system library 'pthread' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libasync_simple.so' links to system library 'm' but it is not in cpp_info.system_libs.

@conan-center-bot

This comment has been minimized.

Copy link
Member

@danimtb danimtb left a comment

Choose a reason for hiding this comment

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

Waiting for answer and requested changes at #22614 (comment)

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

if not self.options.header_only:
hCopyExcludes = ("test", "executors")
if self.options.shared:
copy(self, pattern="*.so*",
Copy link
Member

Choose a reason for hiding this comment

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

Mac generates .dylib, not .so. The current validate supports mac as well.

@conan-center-bot

This comment has been minimized.

danimtb
danimtb previously approved these changes Apr 30, 2024
Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

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

Thanks! A few minor changes, otherwise looks good :)

Comment on lines 93 to 94
deps = CMakeDeps(self)
deps.generate()
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
deps = CMakeDeps(self)
deps.generate()

not needed, as the recipe has no requirements

if minimum_version and Version(self.settings.compiler.version) < minimum_version:
raise ConanInvalidConfiguration(f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not support.")
if not self.options.header_only and self.settings.os == "Windows":
raise ConanInvalidConfiguration(f"{self.ref} cannot use uthread on Windows, and therefore should only be header_only")
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
raise ConanInvalidConfiguration(f"{self.ref} cannot use uthread on Windows, and therefore should only be header_only")
raise ConanInvalidConfiguration(f'{self.ref} cannot use uthread on Windows, and therefore it's only supported as a header-only library in this configuration with "{self.name}/*:header_only=True"')

Make invalid configuration message nicer
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 10 (bf1e489243175d52e310c51c84f54be7aaaa63d0):

  • async_simple/1.2:
    All packages built successfully! (All logs)

  • async_simple/1.3:
    All packages built successfully! (All logs)

  • async_simple/1.0.0:
    All packages built successfully! (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 9 (bf1e489243175d52e310c51c84f54be7aaaa63d0):

  • async_simple/1.3:
    All packages built successfully! (All logs)

  • async_simple/1.0.0:
    All packages built successfully! (All logs)

  • async_simple/1.2:
    All packages built successfully! (All logs)

Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

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

Thanks!

@conan-center-bot conan-center-bot merged commit 0a5b330 into conan-io:master May 20, 2024
23 checks passed
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