Bug#1124170: kooha: FTBFS: error[E0308]: mismatched types

Santiago Vila sanvila at debian.org
Sun Dec 28 18:25:49 GMT 2025


Package: src:kooha
Version: 2.3.1-5
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/202512/

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:kooha, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
   Compiling kooha v2.3.1 (/<<PKGBUILDDIR>>)
     Running `CARGO=/usr/bin/cargo CARGO_BIN_NAME=kooha CARG [too-long-redacted] stry=/usr/share/cargo/registry`
warning: use of deprecated method `libadwaita::gio::dbus_connection::<impl libadwaita::gio::DBusConnection>::signal_subscribe`: Prefer subscribe_to_signal
   --> src/screencast_portal/mod.rs:276:38
    |
276 |     let subscription_id = connection.signal_subscribe(
    |                                      ^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: use of deprecated method `libadwaita::gio::dbus_connection::<impl libadwaita::gio::DBusConnection>::signal_unsubscribe`: Prefer subscribe_to_signal
   --> src/screencast_portal/mod.rs:313:16
    |
313 |     connection.signal_unsubscribe(subscription_id);
    |                ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
   --> src/window/mod.rs:218:36
    |
218 |         match dialog.choose_future(self).await.as_str() {
    |                      ------------- ^^^^ expected `Option<&_>`, found `&Window`
    |                      |
    |                      arguments to this method are incorrect
    |
    = note:   expected enum `std::option::Option<&_>`
            found reference `&window::Window`
note: method defined here
   --> /usr/share/cargo/registry/libadwaita-0.8.1/src/alert_dialog.rs:83:8
    |
 83 |     fn choose_future(
    |        ^^^^^^^^^^^^^
help: try wrapping the expression in `Some`
    |
218 |         match dialog.choose_future(Some(self)).await.as_str() {
    |                                    +++++    +

For more information about this error, try `rustc --explain E0308`.
warning: `kooha` (bin "kooha") generated 2 warnings
error: could not compile `kooha` (bin "kooha") due to 1 previous error; 2 warnings emitted

Caused by:
  process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] argo/registry` (exit status: 1)
[49/50] /usr/bin/msgfmt -o po/ia/LC_MESSAGES/kooha.mo ../po/ia.po
FAILED: [code=101] src/kooha 
/usr/bin/env /usr/share/cargo/bin/cargo build --manifest-path /<<PKGBUILDDIR>>/Cargo.toml --target-dir /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src --release && cp src/x86_64-unknown-linux-gnu/release/kooha src/kooha
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j2 -v returned exit code 101
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------



More information about the pkg-gnome-maintainers mailing list