| Summary: | security/vaultwarden: Fails to build with SSL=libressl: ... build is now aborting due to this version mismatch | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Alex Vasylenko <lxv> | ||||
| Component: | Individual Port(s) | Assignee: | Michael Reifenberger <mr> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Some People | CC: | brnrd, lxv | ||||
| Priority: | --- | Keywords: | needs-qa | ||||
| Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(mr) koobs: merge-quarterly? |
||||
| Hardware: | amd64 | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Alex Vasylenko
2022-01-25 01:00:07 UTC
same patch for easy viewing on github - https://github.com/lxv/freebsd-ports/commit/68fbed323261417e6a6cc85e154dd45522072893 Hi Alex, Does Rust build at all with LibreSSL? And does Vaultwarden actually source the OpenSSL libs from the system? I am assuming it uses the crate's OpenSSL build, not the systems'. Yes, rust port builds fine with libressl as the default ssl (libressl itself is installed from port `security/libressl` which installs version 3.4.2 ATM) Rust consumes SSL from the system by using openssl-sys and openssl-src crates to build a wrapper over system SSL library. I don't know if there's native SSL impl in rust The way openssl-sys crate defines "system" SSL is whatever headers it gets by including <openssl/opensslv.h> and <openssl/opensslconf.h> which ends up being headers from /usr/local during vaultwarden port build references: https://github.com/sfackler/rust-openssl/blob/openssl-sys-v0.9.72/openssl-sys/build/main.rs#L159 https://github.com/sfackler/rust-openssl/blob/openssl-sys-v0.9.72/openssl-sys/build/expando.c#L1 I need this line so openssl-sys would recognize libressl 3.4.2 as a supported version: https://github.com/sfackler/rust-openssl/blob/openssl-sys-v0.9.72/openssl-sys/build/main.rs#L256 This issue is fixed in 1.24.0 of the port |