-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
librdkafka: fix Visual Studio Debug ssl >= 1.8.0 #17894
librdkafka: fix Visual Studio Debug ssl >= 1.8.0 #17894
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I detected other pull requests that are modifying librdkafka/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. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bumping this so it’s not automatically closed. Let me know if it should be closed. |
Hello @sourcedelica - First of all, sorry about the delay on getting back to you on this PR. It got lost among the rest of the PR submissions as it got mislabeled internally in our GitHub project, thanks a lot for your patience on this one. As for the PR changes themselves, they seem to look good! Reading the original issue you submitted, seems like this might in fact be the only way forward to fix the issue, but will check around just in case. Also, please remember to sign the CLA for the PR to be mergeable once approved, thanks! |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The is_msvc is now part of Conan tools, so we no longer need to maintain it in the recipe 😄
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll rebase this on the weekend. I'm not sure what that failed check (c3i/conan-v2/pr-merge) is. When I click details it takes me to a 403 Forbidden nginx page. |
Conan v1 pipeline ✔️All green in build 8 (
Conan v2 pipeline ✔️
All green in build 6 ( |
Awesome, thanks @uilianries! |
if Version(self.version) >= "1.8.0" and is_msvc(self) and \ | ||
self.settings.build_type == "Debug" and self.options.get_safe("ssl", False): | ||
rdkafka_ssl_path = os.path.join(self.source_folder, "src", "rdkafka_ssl.c") | ||
replace_in_file(self, rdkafka_ssl_path, "libcrypto.lib", "libcryptod.lib") | ||
replace_in_file(self, rdkafka_ssl_path, "libssl.lib", "libssld.lib") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fragile. What will happen if we decide to rename these lib names (this d postfix shouldn't have been added to openssl libs in openssl recipe, there were many discussions about this issue).
You should refer to cpp_info.libs values of openssl components, so that it can be future proof.
if Version(self.version) >= "1.8.0" and is_msvc(self) and self.options.get_safe("ssl"):
rdkafka_ssl_path = os.path.join(self.source_folder, "src", "rdkafka_ssl.c")
openssl_cpp_info = self.dependencies["openssl"].cpp_info
crypto_lib = openssl_cpp_info.components["crypto"].libs[0]
ssl_lib = openssl_cpp_info.components["ssl"].libs[0]
replace_in_file(self, rdkafka_ssl_path, "libcrypto.lib", f"{crypto_lib}.lib")
replace_in_file(self, rdkafka_ssl_path, "libssl.lib", f"{ssl_lib}.lib")
* librdkafka: fix Windows debug ssl >= 1.8.0 * Missing import * Support Visual Studio or msvc * Update recipes/librdkafka/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * Update recipes/librdkafka/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * Update recipes/librdkafka/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * Use source folder instead of build folder --------- Co-authored-by: Uilian Ries <uilianries@gmail.com>
Specify library name and version: librdkafka/1.8.0
Fixes #17879