[Pkg-rust-maintainers] Bug#1144306: rust-sequoia-octopus-librnp: FTBFS: error[E0308]: mismatched types
Santiago Vila
sanvila at debian.org
Thu Aug 13 13:58:53 BST 2026
Package: src:rust-sequoia-octopus-librnp
Version: 1.11.1-8
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/202608/
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-sequoia-octopus-librnp, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
warning: use of deprecated function `time::format_description::parse`: use `parse_borrowed` with the appropriate version for clarity
--> /<<PKGBUILDDIR>>/registry/vergen-8.3.2/src/feature/git/git2.rs:545:50
|
545 | let format = format_description::parse("[year]-[month]-[day]")?;
| ^^^^^
|
= note: `#[warn(deprecated)]` on by default
error[E0308]: mismatched types
--> /<<PKGBUILDDIR>>/registry/vergen-8.3.2/src/feature/git/git2.rs:396:21
|
395 | add_opt_value(
| ------------- arguments to this function are incorrect
396 | commit.author().email(),
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<&str>`, found `Result<&str, Error>`
|
= note: expected enum `Option<&str>`
found enum `Result<&str, git2::Error>`
note: function defined here
--> /<<PKGBUILDDIR>>/registry/vergen-8.3.2/src/feature/git/git2.rs:604:4
|
604 | fn add_opt_value(
| ^^^^^^^^^^^^^
605 | value: Option<&str>,
| -------------------
error[E0308]: mismatched types
--> /<<PKGBUILDDIR>>/registry/vergen-8.3.2/src/feature/git/git2.rs:409:21
|
408 | add_opt_value(
| ------------- arguments to this function are incorrect
409 | commit.author().name(),
| ^^^^^^^^^^^^^^^^^^^^^^ expected `Option<&str>`, found `Result<&str, Error>`
|
= note: expected enum `Option<&str>`
found enum `Result<&str, git2::Error>`
note: function defined here
--> /<<PKGBUILDDIR>>/registry/vergen-8.3.2/src/feature/git/git2.rs:604:4
|
604 | fn add_opt_value(
| ^^^^^^^^^^^^^
605 | value: Option<&str>,
| -------------------
error[E0308]: mismatched types
--> /<<PKGBUILDDIR>>/registry/vergen-8.3.2/src/feature/git/git2.rs:431:31
|
431 | add_opt_value(commit.message(), VergenKey::GitCommitMessage, map, warnings);
| ------------- ^^^^^^^^^^^^^^^^ expected `Option<&str>`, found `Result<&str, Error>`
| |
| arguments to this function are incorrect
|
= note: expected enum `Option<&str>`
found enum `Result<&str, git2::Error>`
note: function defined here
--> /<<PKGBUILDDIR>>/registry/vergen-8.3.2/src/feature/git/git2.rs:604:4
|
604 | fn add_opt_value(
| ^^^^^^^^^^^^^
605 | value: Option<&str>,
| -------------------
error[E0308]: mismatched types
--> /<<PKGBUILDDIR>>/registry/vergen-8.3.2/src/feature/git/git2.rs:440:31
|
440 | add_opt_value(obj.short_id()?.as_str(), VergenKey::GitSha, map, warnings);
| ------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<&str>`, found `Result<&str, Error>`
| |
| arguments to this function are incorrect
|
= note: expected enum `Option<&str>`
found enum `Result<&str, git2::Error>`
note: function defined here
--> /<<PKGBUILDDIR>>/registry/vergen-8.3.2/src/feature/git/git2.rs:604:4
|
604 | fn add_opt_value(
| ^^^^^^^^^^^^^
605 | value: Option<&str>,
| -------------------
error[E0308]: mismatched types
--> /<<PKGBUILDDIR>>/registry/vergen-8.3.2/src/feature/git/git2.rs:591:20
|
591 | if let Some(name) = resolved.name() {
| ^^^^^^^^^^ --------------- this expression has type `Result<&str, git2::Error>`
| |
| expected `Result<&str, Error>`, found `Option<_>`
|
= note: expected enum `Result<&str, git2::Error>`
found enum `Option<_>`
For more information about this error, try `rustc --explain E0308`.
warning: `vergen` (lib) generated 51 warnings
error: could not compile `vergen` (lib) due to 5 previous errors; 51 warnings emitted
Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] 'cfg(stable)'` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
make[1]: *** [debian/rules:26: override_dh_auto_build] Error 101
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:16: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-rust-maintainers
mailing list