[Pkg-rust-maintainers] Bug#1052932: rust-libheif-sys: FTBFS: Package 'libsharpyuv', required by 'libheif', not found

Lucas Nussbaum lucas at debian.org
Tue Sep 26 14:47:06 BST 2023


Source: rust-libheif-sys
Version: 1.16.2-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230925 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test -- test --all
> debian cargo wrapper: options, profiles, parallel: ['parallel=8'] [] ['-j8']
> debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
> debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j8', '--target', 'x86_64-unknown-linux-gnu', '--all'],) {}
>    Compiling pkg-config v0.3.25
>    Compiling libc v0.2.147
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=pkg_config CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/pkg-config-0.3.25 CARGO_PKG_AUTHORS='Alex Crichton <alex at alexcrichton.com>' CARGO_PKG_DESCRIPTION='A library to run the pkg-config system tool at build time in order to be used in
> Cargo build scripts.
> ' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=pkg-config CARGO_PKG_REPOSITORY='https://github.com/rust-lang/pkg-config-rs' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.3.25 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=25 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name pkg_config /<<PKGBUILDDIR>>/debian/cargo_registry/pkg-config-0.3.25/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=3f61470c8488ea9c -C extra-filename=-3f61470c8488ea9c --out-dir /<<PKGBUILDDIR>>/target/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --cap-lints warn`
>    Compiling vcpkg v0.2.8
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/libc-0.2.147 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='Raw FFI bindings to platform libraries like libc.
> ' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/libc' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libc CARGO_PKG_REPOSITORY='https://github.com/rust-lang/libc' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.2.147 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=147 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name build_script_build /<<PKGBUILDDIR>>/debian/cargo_registry/libc-0.2.147/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=9f17b2f878ed97f7 -C extra-filename=-9f17b2f878ed97f7 --out-dir /<<PKGBUILDDIR>>/target/debug/build/libc-9f17b2f878ed97f7 -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --cap-lints warn`
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=vcpkg CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/vcpkg-0.2.8 CARGO_PKG_AUTHORS='Jim McGrath <jimmc2 at gmail.com>' CARGO_PKG_DESCRIPTION='A library to find native dependencies in a vcpkg tree at build
> time in order to be used in Cargo build scripts.
> ' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=vcpkg CARGO_PKG_REPOSITORY='https://github.com/mcgoo/vcpkg-rs' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.2.8 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=8 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name vcpkg /<<PKGBUILDDIR>>/debian/cargo_registry/vcpkg-0.2.8/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=4c172934589d1158 -C extra-filename=-4c172934589d1158 --out-dir /<<PKGBUILDDIR>>/target/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --cap-lints warn`
> warning: trait objects without an explicit `dyn` are deprecated
>    --> /<<PKGBUILDDIR>>/debian/cargo_registry/vcpkg-0.2.8/src/lib.rs:192:32
>     |
> 192 |     fn cause(&self) -> Option<&error::Error> {
>     |                                ^^^^^^^^^^^^
>     |
>     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
>     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
>     = note: `#[warn(bare_trait_objects)]` on by default
> help: use `dyn`
>     |
> 192 |     fn cause(&self) -> Option<&dyn error::Error> {
>     |                                +++
> 
> warning: unreachable expression
>    --> /<<PKGBUILDDIR>>/debian/cargo_registry/pkg-config-0.3.25/src/lib.rs:401:9
>     |
> 397 |           return true;
>     |           ----------- any code following this expression is unreachable
> ...
> 401 | /         match self.targetted_env_var("PKG_CONFIG_ALLOW_CROSS") {
> 402 | |             // don't use pkg-config if explicitly disabled
> 403 | |             Some(ref val) if val == "0" => false,
> 404 | |             Some(_) => true,
> ...   |
> 410 | |             }
> 411 | |         }
>     | |_________^ unreachable expression
>     |
>     = note: `#[warn(unreachable_code)]` on by default
> 
>      Running `/<<PKGBUILDDIR>>/target/debug/build/libc-9f17b2f878ed97f7/build-script-build`
> [libc 0.2.147] cargo:rerun-if-changed=build.rs
> [libc 0.2.147] cargo:rustc-cfg=freebsd11
> [libc 0.2.147] cargo:rustc-cfg=libc_priv_mod_use
> [libc 0.2.147] cargo:rustc-cfg=libc_union
> [libc 0.2.147] cargo:rustc-cfg=libc_const_size_of
> [libc 0.2.147] cargo:rustc-cfg=libc_align
> [libc 0.2.147] cargo:rustc-cfg=libc_int128
> [libc 0.2.147] cargo:rustc-cfg=libc_core_cvoid
> [libc 0.2.147] cargo:rustc-cfg=libc_packedN
> [libc 0.2.147] cargo:rustc-cfg=libc_cfg_target_vendor
> [libc 0.2.147] cargo:rustc-cfg=libc_non_exhaustive
> [libc 0.2.147] cargo:rustc-cfg=libc_long_array
> [libc 0.2.147] cargo:rustc-cfg=libc_ptr_addr_of
> [libc 0.2.147] cargo:rustc-cfg=libc_underscore_const_names
> [libc 0.2.147] cargo:rustc-cfg=libc_const_extern_fn
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=libc CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/libc-0.2.147 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='Raw FFI bindings to platform libraries like libc.
> ' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/libc' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libc CARGO_PKG_REPOSITORY='https://github.com/rust-lang/libc' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.2.147 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=147 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/libc-275bfa84b74995d6/out rustc --crate-name libc /<<PKGBUILDDIR>>/debian/cargo_registry/libc-0.2.147/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=b2f507a30fbabdd2 -C extra-filename=-b2f507a30fbabdd2 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --cap-lints warn -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/libheif-sys-1.16.2 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_int128 --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor --cfg libc_non_exhaustive --cfg libc_long_array --cfg libc_ptr_addr_of --cfg libc_underscore_const_names --cfg libc_const_extern_fn`
> warning: `pkg-config` (lib) generated 1 warning
> warning: `vcpkg` (lib) generated 1 warning
>    Compiling libheif-sys v1.16.2 (/<<PKGBUILDDIR>>)
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Kirill Kuzminykh <cykooz at gmail.com>' CARGO_PKG_DESCRIPTION='libheif bindings' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libheif-sys CARGO_PKG_REPOSITORY='https://github.com/cykooz/libheif-sys' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.16.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=16 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name build_script_build --edition=2018 build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=60da6e899a6abdce -C extra-filename=-60da6e899a6abdce --out-dir /<<PKGBUILDDIR>>/target/debug/build/libheif-sys-60da6e899a6abdce -C incremental=/<<PKGBUILDDIR>>/target/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern pkg_config=/<<PKGBUILDDIR>>/target/debug/deps/libpkg_config-3f61470c8488ea9c.rlib --extern vcpkg=/<<PKGBUILDDIR>>/target/debug/deps/libvcpkg-4c172934589d1158.rlib`
>      Running `/<<PKGBUILDDIR>>/target/debug/build/libheif-sys-60da6e899a6abdce/build-script-build`
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=LIBHEIF_NO_PKG_CONFIG
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=HOST_PKG_CONFIG
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=DEB_HOST_GNU_TYPE
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=LIBHEIF_STATIC
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=LIBHEIF_DYNAMIC
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_PATH
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
> [libheif-sys 1.16.2] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
> [libheif-sys 1.16.2] cargo:warning=`PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "x86_64-linux-gnu-pkg-config" "--libs" "--cflags" "libheif" "libheif >= 1.16"` did not exit successfully: exit status: 1
> [libheif-sys 1.16.2] error: could not find system library 'libheif' required by the 'libheif-sys' crate
> [libheif-sys 1.16.2] 
> [libheif-sys 1.16.2] --- stdout
> [libheif-sys 1.16.2] 
> [libheif-sys 1.16.2] 
> [libheif-sys 1.16.2] --- stderr
> [libheif-sys 1.16.2] Package libsharpyuv was not found in the pkg-config search path.
> [libheif-sys 1.16.2] Perhaps you should add the directory containing `libsharpyuv.pc'
> [libheif-sys 1.16.2] to the PKG_CONFIG_PATH environment variable
> [libheif-sys 1.16.2] Package 'libsharpyuv', required by 'libheif', not found
> [libheif-sys 1.16.2] Package 'libsharpyuv', required by 'libheif', not found
> [libheif-sys 1.16.2] 
> The following warnings were emitted during compilation:
> 
> warning: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "x86_64-linux-gnu-pkg-config" "--libs" "--cflags" "libheif" "libheif >= 1.16"` did not exit successfully: exit status: 1
> 
> error: failed to run custom build command for `libheif-sys v1.16.2 (/<<PKGBUILDDIR>>)`
> 
> Caused by:
>   process didn't exit successfully: `/<<PKGBUILDDIR>>/target/debug/build/libheif-sys-60da6e899a6abdce/build-script-build` (exit status: 1)
>   --- stdout
>   cargo:rerun-if-env-changed=LIBHEIF_NO_PKG_CONFIG
>   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
>   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
>   cargo:rerun-if-env-changed=HOST_PKG_CONFIG
>   cargo:rerun-if-env-changed=PKG_CONFIG
>   cargo:rerun-if-env-changed=DEB_HOST_GNU_TYPE
>   cargo:rerun-if-env-changed=LIBHEIF_STATIC
>   cargo:rerun-if-env-changed=LIBHEIF_DYNAMIC
>   cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
>   cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
>   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
>   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
>   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
>   cargo:rerun-if-env-changed=PKG_CONFIG_PATH
>   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
>   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
>   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
>   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
>   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
>   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
>   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
>   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
>   cargo:warning=`PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "x86_64-linux-gnu-pkg-config" "--libs" "--cflags" "libheif" "libheif >= 1.16"` did not exit successfully: exit status: 1
>   error: could not find system library 'libheif' required by the 'libheif-sys' crate
> 
>   --- stdout
> 
> 
>   --- stderr
>   Package libsharpyuv was not found in the pkg-config search path.
>   Perhaps you should add the directory containing `libsharpyuv.pc'
>   to the PKG_CONFIG_PATH environment variable
>   Package 'libsharpyuv', required by 'libheif', not found
>   Package 'libsharpyuv', required by 'libheif', not found
> 
> warning: build failed, waiting for other jobs to finish...
> dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101


The full build log is available from:
http://qa-logs.debian.net/2023/09/25/rust-libheif-sys_1.16.2-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230925;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230925&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-rust-maintainers mailing list