Bug#1149750: loupe: FTBFS: error[E0277]: the trait bound `String: Borrow<[u8]>` is not satisfied
Santiago Vila
sanvila at debian.org
Fri Oct 2 20:09:33 BST 2026
Package: src:loupe
Version: 51.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/202610/
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:loupe, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
help: consider adding a leading `b`
|
108 | .find_map(|a| a.ok().and_then(|a| (a.key == QName(b"id")).then_some(a)));
| +
error[E0277]: the trait bound `String: Borrow<[u8]>` is not satisfied
--> /<<PKGBUILDDIR>>/debian/cargo_registry/gtk4-macros-0.11.5/src/composite_template_derive.rs:111:37
|
111 | ids_left.remove(id);
| ------ ^^ the trait `Borrow<[u8]>` is not implemented for `String`
| |
| required by a bound introduced by this call
|
help: the trait `Borrow<[u8]>` is not implemented for `String`
but trait `Borrow<str>` is implemented for it
--> /usr/src/rustc-1.96.1/library/alloc/src/str.rs:189:0
= help: for that trait implementation, expected `str`, found `[u8]`
note: required by a bound in `HashMap::<K, V, S, A>::remove`
--> /usr/src/rustc-1.96.1/library/std/src/collections/hash/map.rs:1383:4
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `gtk4-macros` (lib) due to 4 previous errors
Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] ap-lints warn` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
[33/110] /usr/bin/itstool -m help/eu/loupe-eu.gmo --lang eu -o help/eu ../help/C/image-properties.page ../help/C/index.page ../help/C/opening-images.page ../help/C/sending-to-other-apps.page ../help/C/supported-formats.page ../help/C/trashing-images.page ../help/C/viewing-images.page
Warning: Could not merge eu translation for msgid:
Users can zoom in with the <gui>Zoom In</gui> (<media type="image" src="figures/zoom-in-symbolic.svg">zoom-in-symbolic</media>) button and zoom out with the <gui>Zoom Out</gui> (<media type="image" src="figures/zoom-out-symbolic.svg">zoom-out-symbolic</media>) button.
[108/110] /usr/bin/msgfmt -o po/zh_TW/LC_MESSAGES/loupe.mo ../po/zh_TW.po
FAILED: [code=101] src/src
env APP_ID=org.gnome.Loupe VERSION=51.0 LOCALEDIR=/usr/share/locale /usr/share/cargo/bin/cargo build --manifest-path /<<PKGBUILDDIR>>/Cargo.toml --target-dir /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src --profile release --features x11
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:12: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the pkg-gnome-maintainers
mailing list