mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #2139] Bump LibreSSL to 3.5.0 for OpenBSD current if possible. #1170
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#1170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mtrxgltch on GitHub (Dec 8, 2021).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2139
OpenBSD current has LibreSSL 3.5.0, but it also has rust 1.57.0 vs. 7.0's older version .1.57.0 is required to build vaultwarden. Trying to build it on OpenBSD current, which has rust 1.57.0 fails with:
[...]
cargo:rustc-cfg=osslconf="OPENSSL_NO_BUF_FREELISTS"
cargo:rustc-cfg=osslconf="OPENSSL_NO_COMP"
cargo:rustc-cfg=osslconf="OPENSSL_NO_KRB5"
cargo:rustc-cfg=osslconf="OPENSSL_NO_PSK"
cargo:rustc-cfg=osslconf="OPENSSL_NO_SRP"
cargo:rustc-cfg=osslconf="OPENSSL_NO_SSL3_METHOD"
cargo:rustc-cfg=osslconf="OPENSSL_NO_SEED"
cargo:conf=OPENSSL_NO_BUF_FREELISTS,OPENSSL_NO_COMP,OPENSSL_NO_KRB5,OPENSSL_NO_PSK,OPENSSL_NO_SRP,OPENSSL_NO_SSL3_METHOD,OPENSSL_NO_SEED
cargo:rustc-cfg=libressl
cargo:rustc-cfg=libressl251
cargo:rustc-cfg=libressl261
cargo:rustc-cfg=libressl270
cargo:rustc-cfg=libressl271
cargo:rustc-cfg=libressl273
cargo:rustc-cfg=libressl280
cargo:rustc-cfg=libressl281
cargo:rustc-cfg=libressl291
cargo:rustc-cfg=libressl321
cargo:rustc-cfg=libressl332
cargo:libressl_version_number=3050000f
--- stderr
thread 'main' panicked at '
This crate is only compatible with OpenSSL (version 1.0.1 through 1.1.1, or 3.0.0), or LibreSSL 2.5
through 3.4.1, but a different version of OpenSSL was found. The build is now aborting
due to this version mismatch.
[...]
0: 0x291f291684c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h25bbbe339892e06a [8/1620]
1: 0x291f293f48b - core::fmt::write::h75402027409e6e66
2: 0x291f2900813 - std::io::Write::write_fmt::h6f852829fb951bdf
3: 0x291f290a29b - std::panicking::default_hook::{{closure}}::h1f5286e98d8cf8e4
4: 0x291f2909e27 - std::panicking::default_hook::h0eae72ed5e8ade6b
5: 0x291f290a986 - std::panicking::rust_panic_with_hook::ha00083641f989b89
6: 0x291f28ce2ab - std::panicking::begin_panic::{{closure}}::he3f88c6eb2a95199
at /usr/obj/ports/rust-1.57.0/rustc-1.57.0-src/library/std/src/panicking.rs:544:9
7: 0x291f28c6429 - std::sys_common::backtrace::__rust_end_short_backtrace::h5e55617215c0f433
at /usr/obj/ports/rust-1.57.0/rustc-1.57.0-src/library/std/src/sys_common/backtrace.rs:139:18
8: 0x291f28ce1df - std::panicking::begin_panic::h6aee93e2be1a7186
at /usr/obj/ports/rust-1.57.0/rustc-1.57.0-src/library/std/src/panicking.rs:543:12
9: 0x291f285a1e0 - build_script_main::version_error::h5eafb52596e38c65
at /home/puffy/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.71/build/main.rs:295:5
10: 0x291f28599dc - build_script_main::validate_headers::hea456fe0703ea97e
at /home/puffy/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.71/build/main.rs:257:18
11: 0x291f28617f9 - build_script_main::find_normal::try_pkg_config::h6de4db2d0c5f5360
at /home/puffy/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.71/build/find_normal.rs:212:5
12: 0x291f28608d1 - build_script_main::find_normal::find_openssl_dir::h79e939894037c401
at /home/puffy/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.71/build/find_normal.rs:82:5
13: 0x291f2860152 - build_script_main::find_normal::get_openssl::{{closure}}::hd78b311ab249079f
at /home/puffy/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.71/build/find_normal.rs:15:68
14: 0x291f2862801 - core::option::Option::unwrap_or_else::had815cd1d22a7350
at /usr/obj/ports/rust-1.57.0/rustc-1.57.0-src/library/core/src/option.rs:787:21
15: 0x291f285ff4f - build_script_main::find_normal::get_openssl::h1a0afded0d87fb16
at /home/puffy/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.71/build/find_normal.rs:15:31
16: 0x291f28575ec - build_script_main::find_openssl::hcf6047a1abdc0c63
at /home/puffy/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.71/build/main.rs:57:5
17: 0x291f2857688 - build_script_main::main::hc36448c43ae5c3a3
at /home/puffy/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.71/build/main.rs:65:34
18: 0x291f285c05e - core::ops::function::FnOnce::call_once::h4b2d1849a10a734d
at /usr/obj/ports/rust-1.57.0/rustc-1.57.0-src/library/core/src/ops/function.rs:227:5
19: 0x291f285dc01 - std::sys_common::backtrace::__rust_begin_short_backtrace::hcd32538c05136462
at /usr/obj/ports/rust-1.57.0/rustc-1.57.0-src/library/std/src/sys_common/backtrace.rs:123:18
20: 0x291f285dca4 - std::rt::lang_start::{{closure}}::h5f3ee1dcc0b278d3
at /usr/obj/ports/rust-1.57.0/rustc-1.57.0-src/library/std/src/rt.rs:146:18
21: 0x291f28f9146 - std::rt::lang_start_internal::hf43e68e93a26a2b2
22: 0x291f285dc72 - std::rt::lang_start::h2dd44cd7726c5d81
at /usr/obj/ports/rust-1.57.0/rustc-1.57.0-src/library/std/src/rt.rs:145:17
23: 0x291f285b35b - main
24: 0x291f2855028 -
warning: build failed, waiting for other jobs to finish...
error: build failed======> ] 211/426: typenum
Relevant OpenBSD commit:
github.com/openbsd/src@92d29f8fce@BlackDex commented on GitHub (Dec 8, 2021):
That is not something the Vaultwarden project can fix. The library used for this does not have support for this version (yet). https://github.com/sfackler/rust-openssl
You may try to use the feature
vendored_opensslwhich would then build and statically link with the ssl library.