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

Feature flag to compile a binary dynamically linked to system OpenSSL #2265

Open
folliehiyuki opened this issue Mar 25, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@folliehiyuki
Copy link

Describe the problem you are trying to solve

I really like the idea behind tremor, and I'm interested in packaging it for AlpineLinux. To meet the packaging requirements, rust packages should be dynamically linked to system-provided OpenSSL library when possible. Also, ring crate used by rustls cannot be built yet on a few architectures that AlpineLinux supports (e.g. s390x, riscv64, ppc64le).

Describe the solution you'd like

A feature flag to build tremor linked to system OpenSSL. This feature flag should come with some changes to the dependencies:

  • hyper-openssl instead of hyper-rustls
  • elasticsearch and reqwest built with native-tls feature

I'm not familiar with all the crates inside Cargo.toml file so the above list might not be exhaustive.

@folliehiyuki folliehiyuki added the enhancement New feature or request label Mar 25, 2023
@folliehiyuki
Copy link
Author

folliehiyuki commented Mar 25, 2023

Another head up (not related to OpenSSL but also a system library linked issue): onig_sys (a dependency of grok crate) currently can't be built with clang16 (see rust-onig/rust-onig#174).

So, can you vendor the patch in that PR inside the repo? That would be really helpful for downstream packaging, since rust-onig maintainer has been inactive for a while.

@Licenser
Copy link
Member

Good ideas! We'll put it on the list but I can't make promises as to when we'd get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants