[Debian-on-mobile-maintainers] Bug#1136859: xdg-desktop-portal-phosh: FTBFS: error[E0277]: the trait bound `auto::event::Event: glib::translate::ToGlibPtr<'_, *mut GdkScrollEvent>` is not satisfied
Santiago Vila
sanvila at debian.org
Sat May 16 17:05:30 BST 2026
Package: src:xdg-desktop-portal-phosh
Version: 0.53.0-1
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:xdg-desktop-portal-phosh, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
Compiling gdk-pixbuf v0.21.5
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=gdk_pixb [too-long-redacted] stry=/usr/share/cargo/registry`
Compiling gdk4 v0.10.3
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=gdk4 CAR [too-long-redacted] stry=/usr/share/cargo/registry`
error[E0277]: the trait bound `auto::event::Event: glib::translate::ToGlibPtr<'_, *mut GdkScrollEvent>` is not satisfied
--> /usr/share/cargo/registry/gdk4-0.10.3/src/auto/scroll_event.rs:75:83
|
75 | from_glib(ffi::gdk_scroll_event_get_relative_direction(event.as_ref().to_glib_none().0))
| ^^^^^^^^^^^^ unsatisfied trait bound
|
help: the trait `glib::translate::ToGlibPtr<'_, *mut GdkScrollEvent>` is not implemented for `auto::event::Event`
--> /usr/share/cargo/registry/gdk4-0.10.3/src/auto/event.rs:8:1
|
8 | / glib::wrapper! {
9 | | #[doc(alias = "GdkEvent")]
10 | | pub struct Event(Shared<ffi::GdkEvent>);
... |
16 | | }
| |_^
help: the following other types implement trait `glib::translate::ToGlibPtr<'a, P>`
--> /usr/share/cargo/registry/gdk4-0.10.3/src/auto/event.rs:8:1
|
8 | / glib::wrapper! {
9 | | #[doc(alias = "GdkEvent")]
10 | | pub struct Event(Shared<ffi::GdkEvent>);
... |
16 | | }
| | ^
| | |
| |_`auto::event::Event` implements `glib::translate::ToGlibPtr<'_, *const GdkEvent>`
| `auto::event::Event` implements `glib::translate::ToGlibPtr<'_, *mut GdkEvent>`
= note: this error originates in the macro `$crate::glib_shared_wrapper` which comes from the expansion of the macro `glib::wrapper` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
error: could not compile `gdk4` (lib) due to 1 previous error
Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] argo/registry` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
warning: `gio` (lib) generated 3 warnings
[28/30] cc -o src/thumbnailer/ptcli src/thumbnailer/ptcli.p/meson-generated_.._phosh-thumbnailer-service.c.o src/thumbnailer/ptcli.p/cli.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,--start-group /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so -Wl,--end-group
FAILED: [code=101] src/xdg-desktop-portal-phrosh
env RESOURCES_DIR=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src /usr/share/cargo/bin/cargo build --manifest-path /<<PKGBUILDDIR>>/Cargo.toml --target-dir /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src --release && cp /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/x86_64-unknown-linux-gnu/release/xdg-desktop-portal-phosh src/xdg-desktop-portal-phrosh
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:22: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the Debian-on-mobile-maintainers
mailing list