[Bug 288649] security/vaultwarden: 1.34.3 build fails because libzstd not found

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 04 Aug 2025 00:14:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288649

            Bug ID: 288649
           Summary: security/vaultwarden: 1.34.3 build fails because
                    libzstd not found
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mr@FreeBSD.org
          Reporter: illusionusable715@simplelogin.fr
          Assignee: mr@FreeBSD.org
             Flags: maintainer-feedback?(mr@FreeBSD.org)

Poudriere fails to build security/vaultwarden 1.34.3. This error is returned:


  thread 'main' panicked at
/wrkdirs/usr/ports/security/vaultwarden/work/vaultwarden-1.34.3/cargo-crates/zstd-sys-2.0.15+zstd.1.5.7/build.rs:60:10:
  Can't probe for zstd in pkg-config: 
  pkg-config exited with status code 1
  >
PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/security/vaultwarden/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config
--static --libs --cflags libzstd

  The system library `libzstd` required by crate `zstd-sys` was not found.
  The file `libzstd.pc` needs to be installed and the PKG_CONFIG_PATH
environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.

  HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the
directory containing `libzstd.pc`.

  stack backtrace:
     0: __rustc::rust_begin_unwind
     1: core::panicking::panic_fmt
     2: core::result::unwrap_failed
     3: core::result::Result<T,E>::expect
     4: build_script_build::pkg_config
     5: build_script_build::main
     6: core::ops::function::FnOnce::call_once
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose
backtrace.
*** Error code 101

Stop.
make: stopped in /usr/ports/security/vaultwarden
=>> Cleaning up wrkdir
===>  Cleaning for vaultwarden-1.34.3
build of security/vaultwarden | vaultwarden-1.34.3 ended at Sun Aug  3 23:57:51
UTC 2025
build time: 00:03:21
!!! build failure encountered !!!


A similar error was addressed for another port in
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287683.

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