#1152584 rust-zbar-rust: FTBFS: The system library `zbar` required by crate `zbar-rust` was not found.

#1152584#5
Date:
2026-10-30 11:23:35 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rust-zbar-rust, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
    Package libv4l2 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libv4l2.pc'
    to the PKG_CONFIG_PATH environment variable
    Package 'libv4l2', required by 'zbar', not found

  The system library `zbar` required by crate `zbar-rust` was not found.
  The file `zbar.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 `zbar.pc`.

  stack backtrace:
     0: __rustc::rust_begin_unwind
               at /usr/src/rustc-1.97.1/library/std/src/panicking.rs:689:5
     1: core::panicking::panic_fmt
               at /usr/src/rustc-1.97.1/library/core/src/panicking.rs:80:14
     2: core::result::unwrap_failed
               at /usr/src/rustc-1.97.1/library/core/src/result.rs:1867:5
     3: <core::result::Result<pkg_config::Library, pkg_config::Error>>::unwrap
               at /usr/src/rustc-1.97.1/library/core/src/result.rs:1233:23
     4: build_script_build::run_pkg_config
               at ./build.rs:139:10
     5: build_script_build::find_zbar_lib_dirs::{closure#2}
               at ./build.rs:72:70
     6: <core::result::Result<alloc::vec::Vec<std::path::PathBuf>, std::env::VarError>>::or_else::<std::env::VarError, build_script_build::find_zbar_lib_dirs::{closure#2}>
               at /usr/src/rustc-1.97.1/library/core/src/result.rs:1565:23
     7: build_script_build::find_zbar_lib_dirs
               at ./build.rs:72:10
     8: build_script_build::main
               at ./build.rs:12:20
     9: <fn() as core::ops::function::FnOnce<()>>::call_once
               at /usr/src/rustc-1.97.1/library/core/src/ops/function.rs:250:5
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------