[Pkg-rust-maintainers] Bug#1136858: rust-tiny-dfr: FTBFS: error[E0599]: no method named `ok_or` found for struct `librsvg_rebind::Handle` in the current scope
Santiago Vila
sanvila at debian.org
Sat May 16 17:05:26 BST 2026
Package: src:rust-tiny-dfr
Version: 0.3.6-6
Severity: serious
Tags: ftbfs forky sid
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/202605/
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-tiny-dfr, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
Compiling toml v0.8.20
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=toml CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/toml-0.8.20 CARGO_MANIFEST_PATH=/<<PKGBUILDDIR>>/debian/cargo_registry/toml-0.8.20/Cargo.toml CARGO_PKG_AUTHORS='Alex Crichton <alex at alexcrichton.com>' CARGO_PKG_DESCRIPTION='A native Rust encoder and decoder of TOML-formatted files and streams. Provides
implementations of the standard Serialize/Deserialize traits for TOML data to
facilitate deserializing and serializing Rust structures.
' CARGO_PKG_HOMEPAGE='https://github.com/toml-rs/toml' CARGO [too-long-redacted] stry=/usr/share/cargo/registry`
warning: `input-linux` (lib) generated 7 warnings
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=anyhow C [too-long-redacted] (error_generic_member_access)'`
Compiling privdrop v0.5.4
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=privdrop [too-long-redacted] stry=/usr/share/cargo/registry`
Running `CARGO=/usr/bin/cargo CARGO_BIN_NAME=tiny-dfr C [too-long-redacted] -gnu -l fontconfig -l freetype`
error[E0599]: no method named `ok_or` found for struct `librsvg_rebind::Handle` in the current scope
--> src/main.rs:104:34
|
104 | Handle::from_file(path)?.ok_or(anyhow!("failed to load image"))?,
| ^^^^^ method not found in `librsvg_rebind::Handle`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `tiny-dfr` (bin "tiny-dfr" test) due to 1 previous error
Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] g -l freetype` (exit status: 1)
dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101
make[1]: *** [debian/rules:6: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-rust-maintainers
mailing list