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

Fails to build with OpenSSL 1.1.1 #193

Closed
luusl opened this issue Sep 19, 2018 · 10 comments
Closed

Fails to build with OpenSSL 1.1.1 #193

luusl opened this issue Sep 19, 2018 · 10 comments
Labels
enhancement New feature or request question Further information is requested, or question from user

Comments

@luusl
Copy link

luusl commented Sep 19, 2018

On my machine I have OpenSSL 1.1.1 installed and building fails according to this error:

error: failed to run custom build command for `openssl v0.9.24`
process didn't exit successfully: `/home/build/bitwarden_rs-1.1.0/target/release/build/openssl-70a8875277726cb3/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/build/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
@dani-garcia
Copy link
Owner

This is a problem with the old openssl crate, which doesn't support OpenSSL 1.1.1. (See sfackler/rust-openssl#994).

We have two dependencies that require that openssl version: reqwest, which works fine in its version 0.9 and lettre, which needs a change (See open PR: lettre/lettre#303)

The solutions for now are to:

  • Revert to openssl 1.0.2
  • Fork lettre with that PR and change the Cargo.toml to use that instead, also updating the reqwest dependency

@mprasil mprasil added enhancement New feature or request question Further information is requested, or question from user labels Sep 19, 2018
@dani-garcia
Copy link
Owner

I pushed a fix with the second solution I mentioned here: https://github.com/dani-garcia/bitwarden_rs/tree/openssl-fix

Hopefully the PR is merged soon and we can continue using the upstream version directly.

@luusl
Copy link
Author

luusl commented Sep 20, 2018

Thank you, I tried that branch and it works.

@dani-garcia
Copy link
Owner

Okay, that PR was merged, so the OpenSSL fix is now in master. With that, we can mark this issue as fixed.

@chris-morgan
Copy link

Any chance of a bitwarden_rs 1.1.1 release to go with the openssl 1.1.1?

@dani-garcia
Copy link
Owner

dani-garcia commented Sep 23, 2018

You are right, we need a release.
As the changes since the last version are significant, I decided to release a 1.2.0 version. I hope that works for you.

https://github.com/dani-garcia/bitwarden_rs/releases/tag/1.2.0

@mprasil Can you trigger a docker build of the new version, please?

@mprasil
Copy link
Contributor

mprasil commented Sep 24, 2018

Just triggered it now, it's gonna take about 6h before all the image versions are done.

@dobunzli
Copy link
Contributor

dobunzli commented Sep 24, 2018 via email

@dani-garcia
Copy link
Owner

dani-garcia commented Sep 24, 2018

I think it's mprasil/bitwarden:alpine instead of musl, but yeah.

@mprasil
Copy link
Contributor

mprasil commented Sep 24, 2018

Just a small correction. People on musl platform don't have to use mprasil/bitwarden:alpine, the required platform dependencies are shipped in the image. So as long as you are on AMD64 platform, you can use both images.

I'm thinking that maybe we should replace the default Debian based image and just use Alpine as default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested, or question from user
Projects
None yet
Development

No branches or pull requests

5 participants