[Bug 261452] security/vaultwarden: build failure with libressl as default SSL

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 Jan 2022 01:00:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261452

            Bug ID: 261452
           Summary: security/vaultwarden: build failure with libressl as
                    default SSL
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: mr@FreeBSD.org
          Reporter: lxv@omut.org
             Flags: maintainer-feedback?(mr@FreeBSD.org)
          Assignee: mr@FreeBSD.org

Created attachment 231292
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231292&action=edit
upgrade openssl-sys dependency to support LibreSSL 3.4.x

I have a 12.3 system where libressl is selected as the default SSL in
`/etc/make.conf`

$ uname -r
12.3-RELEASE-p1

$ grep ssl /etc/make.conf
DEFAULT_VERSIONS+= ssl=libressl

Builds of security/vaultwarden fail like so:

--- 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.

  ',
/usr/ports/security/vaultwarden/work/vaultwarden-1.23.1/cargo-crates/openssl-sys-0.9.71/build/main.rs:295:5
  stack backtrace:
     0: std::panicking::begin_panic
     1: build_script_main::version_error
     2: build_script_main::validate_headers
     3: build_script_main::main
     4: core::ops::function::FnOnce::call_once
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose
backtrace.
warning: build failed, waiting for other jobs to finish...

The issue is was fixed in `openssl-sys` crate v0.9.72 which also downgrades its
`openssl-src` dependency from 300 back to 111 due to performance issue
(https://github.com/sfackler/rust-openssl/blob/master/openssl-sys/CHANGELOG.md#v0972).

please consider the attached as a possible fix. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.