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

libcoro: add version 0.11.1 #22764

Merged
merged 16 commits into from
Feb 19, 2024
Merged

Conversation

toge
Copy link
Contributor

@toge toge commented Feb 13, 2024

Specify library name and version: libcoro/0.11


@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@uilianries
Copy link
Member

@toge That error is really weird, I'll investigate further. I now more options changed in 0.11 and probably some source is missing when building.

@uilianries uilianries self-assigned this Feb 14, 2024
@uilianries
Copy link
Member

Some weird behavior, when using cmake_dependent_option CMake feature with Conan, for some reason, it does not work.

https://c3i.jfrog.io/c3i/misc/logs/pr/22764/2-linux-gcc11/libcoro/0.11//1e83dbe0105b2ee2583fa6fe1489fdb74a950fe7-build.txt

Some options should enabled, they are not:

libcoro LIBCORO_EXTERNAL_DEPENDENCIES = ON
libcoro LIBCORO_BUILD_TESTS           = OFF
libcoro LIBCORO_CODE_COVERAGE         = OFF
libcoro LIBCORO_BUILD_EXAMPLES        = OFF
libcoro LIBCORO_FEATURE_NETWORKING    = ON
libcoro LIBCORO_FEATURE_TLS           = ON
libcoro LIBCORO_RUN_GITCONFIG         = OFF
libcoro LIBCORO_BUILD_SHARED_LIBS     = ON

Locally, running the same command like, but using only cmake in the docker image, with conanfile.txt, it works.

@uilianries
Copy link
Member

@toge I did some changes to support the version 0.11.1. The new patch version fixes the current error. You can find a related discussion here:

@conan-center-bot

This comment has been minimized.

Signed-off-by: Uilian Ries <[email protected]>
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@uilianries
Copy link
Member

I'll check the sys header missing.

@toge toge changed the title libcoro: add version 0.11 libcoro: add version 0.11.1 Feb 16, 2024
@conan-center-bot

This comment has been minimized.

@uilianries
Copy link
Member

After checking the upstream's code, some options are not available on Windows, but the recipe did not have the logic, because until now we have supported only Linux gcc. I removed dynamically the affected options.

@conan-center-bot

This comment has been minimized.

Signed-off-by: Uilian Ries <[email protected]>
@conan-center-bot

This comment has been minimized.

Signed-off-by: Uilian Ries <[email protected]>
@uilianries
Copy link
Member

The current error is because shared library was not supported before 0.11 and the custom patch available in CCI is bugged (need extra work due static variables). I'll remove those patches and keep it as static library. Since 0.11 anyone can use shared library with safety (tested in the upstream).

@toge
Copy link
Contributor Author

toge commented Feb 16, 2024

@uilianries
Sorry conflicted!
I am goting to revert it.

@uilianries
Copy link
Member

@toge No, I'm sorry of abusing your PR 😅 The fact is WINDOWS_EXPORT_ALL_SYMBOLS will not work here. CMake is capable to export all methods, but not static variables. The libcoro has 2 public static variables that need the dlspec directly in the code. You can see the real fix here: jbaldwin/libcoro#236

@toge
Copy link
Contributor Author

toge commented Feb 16, 2024

@uilianries
Thank you for your information!
Now I understand.

@conan-center-bot

This comment has been minimized.

@uilianries
Copy link
Member

The CI is not smart enough to understand dynamic shared option. We will need to keep it, but manage as invalid configuration.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 14 (35d0c5101f3be43a41c2ae84f8e13027d033ce3e):

  • libcoro/0.10:
    All packages built successfully! (All logs)

  • libcoro/0.9:
    All packages built successfully! (All logs)

  • libcoro/0.11.1:
    All packages built successfully! (All logs)

  • libcoro/0.8:
    All packages built successfully! (All logs)

  • libcoro/0.7:
    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 13 (35d0c5101f3be43a41c2ae84f8e13027d033ce3e):

  • libcoro/0.11.1:
    All packages built successfully! (All logs)

  • libcoro/0.9:
    All packages built successfully! (All logs)

  • libcoro/0.10:
    All packages built successfully! (All logs)

  • libcoro/0.8:
    All packages built successfully! (All logs)

  • libcoro/0.7:
    All packages built successfully! (All logs)

@uilianries
Copy link
Member

@toge It's finally working! 🎉

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

@toge
Copy link
Contributor Author

toge commented Feb 17, 2024

@uilianries
Thanks a lot!

@conan-center-bot conan-center-bot merged commit 64aba48 into conan-io:master Feb 19, 2024
33 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.

4 participants