-
Notifications
You must be signed in to change notification settings - Fork 1
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
Removing boost.asio
's Bazel references to OpenSSL because they break bazel query
#3
Removing boost.asio
's Bazel references to OpenSSL because they break bazel query
#3
Conversation
could you elaborate? I'm able to query without issue. |
Apologies, I think it's just |
99d9fd8
to
58b57fc
Compare
@zaucy If I were to make a registry and a repo that supported openssl on all three major platforms would we be able to use it here so openssl works with this repo? Otherwise people have to migrate to boringssl. |
I think it would be better to add openssl to the BCR if possible. Eventually I'd like bazelboost to be on the BCR as well. The bazelboost registry will only be used for development. Ideally users would not have to use it. |
Okay Ill see if I can get it added |
@zaucy I am trying to get openssl included into the BCR but ran into some snags bazel-contrib/rules_foreign_cc#1208 While I get that up and running I was wondering if you could remove openssl support from boost.asio because we cannot use |
…l query` for targets that rely on `boost.asio` due to the fact that OpenSSL is not in BCR yet.
going with rules_foreign_cc, eh? I've had a lot of trouble with that one in the past. I hope it ends up working well!
Sure I'll update this branch and see if I can get it merged. Last time the CI was failing and I didn't look into why. |
I only did it that way because they actually have a working example in their directory of examples! So all I have to do is get pkg-config working again on the most recent MacOS and I am good to go. Ill lyk how it goes! |
@zaucy what issues did you run into with What is odd is their example builds: https://github.com/bazelbuild/rules_foreign_cc/tree/main/examples/third_party/openssl But mine doesn't: https://github.com/andrewkatson/openssl I tried to convert theirs to bzlmod style but seem to have missed some specificity. |
I can't say I've ran into exactly what you are. Last time I used it was before modules even existed. My first thought would be to double check the .bazelrc files to see if they differ. |
Okay Ill look into that! Edit: @zaucy I looked into it and the files are mostly the same. The remaining options didn't seem too different and when I made them the same I got the same errors. So I am trying to find another way to do this. I tried https://bazel.build/rules/lib/repo/http#http_file but what is odd is that I get an error about needing a Edit2: Seems there is no pre-built version of openssl available in the thing I was downloading. I will find a hosted one. Edit3: Oh my gosh there is no prebuilt openssl binary hosted online that can be used for this. Do you know how people are solving the openssl dependency issue in bzlmod? Edit4: Okay I've started down the path of using a shell script or perl_binary to run Configure and then make which seems to be bearing fruit outside of bazel but not inside of it. I am pretty sure the sandboxing is making it so none of the Perl modules can be found. |
@zaucy I have something that gets it building without rules_foreign_cc and Im almost done with the tests. Its pretty hacky so I was wondering if youd be willing to take a look and give me some pointers before I put it in front of the bazel folks. |
I fixed all the tests and got a working |
That's great! Can't wait to see it in the BCR :) |
Noob question: how do you even select the SSL implementation or enable it at all when depending on boost.asio? I'm getting missing symbols. consuming: bazel_dep(name = "boost.asio", version = "1.83.0") then deps = [
"@boost.asio",
], EDIT: adding |
you would have to define a repository called |
Yeah, but how do you actually switch to it (i.e., tell |
Adding flag via |
@zaucy someone actually beat met to it. I moved and haven't had a linux/windows machine so I couldn't quash all my bugs. See https://registry.bazel.build/modules/openssl. Can we use this to fix asio? |
Removing references to OpenSSL because OpenSSL references break
bazel query
for targets that rely onboost.asio
due to the fact that OpenSSL is not in BCR yet.The
bazel
module forboost.asio
only supportsboringssl
anyway.