Bug#1099233: glycin: FTBFS: error[E0308]: arguments to this function are incorrect

Santiago Vila sanvila at debian.org
Sat Mar 1 21:01:11 GMT 2025


Package: src:glycin
Version: 1.2~beta.1+ds-2
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
warning: `safe-transmute` (lib) generated 2 warnings
   Compiling glycin-utils v3.0.0-beta
     Running `CARGO=/usr/share/cargo/bin/cargo CARGO_CRATE_NAME=glycin_utils CARGO_MANIFEST_DIR='/<<PKGBUILDDIR>>/debian/cargo_registry/glycin-utils-3.0.0-beta' CARGO_MANIFEST_PATH='/<<PKGBUILDDIR>>/debian/cargo_registry/glycin-utils-3.0.0-beta/Cargo.toml' CARGO_PKG_AUTHORS='Sophie Herold' CARGO_PKG_DESCRIPTION='Sandboxed image decoding' CARGO_PKG_HOMEPAGE='https://gitlab.gnome.org/GNOME/glycin' CARGO_PKG_LICENSE='MPL-2.0 OR LGPL-2.1-or-later' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=glycin-utils CARGO_PKG_README='' CARGO_PKG_REPOSITORY='https://gitlab.gnome.org/GNOME/glycin' CARGO_PKG_RUST_VERSION=1.80 CARGO_PKG_VERSION=3.0.0-beta CARGO_PKG_VERSION_MAJOR=3 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE=beta LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/release/deps' rustc --crate-name glycin_utils --edition=2021 '/<<PKGBUILDDIR>>/debian/cargo_registry/glycin-utils-3.0.0-beta/src/lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C codegen-units=1 -C debuginfo=2 --cfg 'feature="async-io"' --cfg 'feature="loader-utils"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("async-io", "default", "glib", "gobject", "image-rs", "loader-utils", "tokio"))' -C metadata=d26b18761985d9a4 -C extra-filename=-14531e5b4c0caa46 --out-dir '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps' --target x86_64-unknown-linux-gnu -L 'dependency=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps' -L 'dependency=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/release/deps' --extern 'env_logger=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libenv_logger-8dd0ce0dd35137a1.rmeta' --extern 'futures_lite=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libfutures_lite-d451f903946c29e0.rmeta' --extern 'gufo_common=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libgufo_common-526137188706372b.rmeta' --extern 'libc=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/liblibc-c2a140eecaa8b8b9.rmeta' --extern 'libseccomp=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/liblibseccomp-75f724dec99836bd.rmeta' --extern 'log=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/liblog-eebd9cbf7909ff7f.rmeta' --extern 'memmap=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libmemmap2-fbb8586dd88531ec.rmeta' --extern 'nix=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libnix-c1d8ab260c19d127.rmeta' --extern 'paste=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/release/deps/libpaste-61c5f0ab83c67276.so' --extern 'rmp_serde=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/librmp_serde-fbe463b8c0bb4c41.rmeta' --extern 'serde=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libserde-bcfa0f5def724ad6.rmeta' --extern 'thiserror=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libthiserror-92ce926b84e16ce8.rmeta' --extern 'zbus=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libzbus-d2a3c06795d411ba.rmeta' --cap-lints warn -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro -C link-arg=-Wl,-z,now --remap-path-prefix '/<<PKGBUILDDIR>>=/usr/share/cargo/registry/glycin-1.2~beta.1+ds' --remap-path-prefix '/<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry' -L native=/usr/lib/x86_64-linux-gnu`
error[E0308]: arguments to this function are incorrect
  --> /usr/share/cargo/registry/glycin-utils-3.0.0-beta/src/editing/operations.rs:19:25
   |
19 |                         Orientation::new(*rotation, false),
   |                         ^^^^^^^^^^^^^^^^ ---------  ----- expected `Rotation`, found `bool`
   |                                          |
   |                                          expected `bool`, found `Rotation`
   |
note: associated function defined here
  --> /usr/share/cargo/registry/gufo-common-0.2.0-alpha.2/src/orientation.rs:23:12
   |
23 |     pub fn new(mirrored: bool, rotation: Rotation) -> Self {
   |            ^^^
help: swap these arguments
   |
19 |                         Orientation::new(false, *rotation),
   |                                         ~~~~~~~~~~~~~~~~~~

error[E0308]: arguments to this function are incorrect
  --> /usr/share/cargo/registry/glycin-utils-3.0.0-beta/src/editing/operations.rs:27:25
   |
27 |                         Orientation::new(Rotation::_0, true),
   |                         ^^^^^^^^^^^^^^^^ ------------  ---- expected `Rotation`, found `bool`
   |                                          |
   |                                          expected `bool`, found `Rotation`
   |
note: associated function defined here
  --> /usr/share/cargo/registry/gufo-common-0.2.0-alpha.2/src/orientation.rs:23:12
   |
23 |     pub fn new(mirrored: bool, rotation: Rotation) -> Self {
   |            ^^^
help: swap these arguments
   |
27 |                         Orientation::new(true, Rotation::_0),
   |                                         ~~~~~~~~~~~~~~~~~~~~

error[E0308]: arguments to this function are incorrect
  --> /usr/share/cargo/registry/glycin-utils-3.0.0-beta/src/editing/operations.rs:35:25
   |
35 |                         Orientation::new(Rotation::_180, true),
   |                         ^^^^^^^^^^^^^^^^ --------------  ---- expected `Rotation`, found `bool`
   |                                          |
   |                                          expected `bool`, found `Rotation`
   |
note: associated function defined here
  --> /usr/share/cargo/registry/gufo-common-0.2.0-alpha.2/src/orientation.rs:23:12
   |
23 |     pub fn new(mirrored: bool, rotation: Rotation) -> Self {
   |            ^^^
help: swap these arguments
   |
35 |                         Orientation::new(true, Rotation::_180),
   |                                         ~~~~~~~~~~~~~~~~~~~~~~

For more information about this error, try `rustc --explain E0308`.
error: could not compile `glycin-utils` (lib) due to 3 previous errors

Caused by:
  process didn't exit successfully: `CARGO=/usr/share/cargo/bin/cargo CARGO_CRATE_NAME=glycin_utils CARGO_MANIFEST_DIR='/<<PKGBUILDDIR>>/debian/cargo_registry/glycin-utils-3.0.0-beta' CARGO_MANIFEST_PATH='/<<PKGBUILDDIR>>/debian/cargo_registry/glycin-utils-3.0.0-beta/Cargo.toml' CARGO_PKG_AUTHORS='Sophie Herold' CARGO_PKG_DESCRIPTION='Sandboxed image decoding' CARGO_PKG_HOMEPAGE='https://gitlab.gnome.org/GNOME/glycin' CARGO_PKG_LICENSE='MPL-2.0 OR LGPL-2.1-or-later' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=glycin-utils CARGO_PKG_README='' CARGO_PKG_REPOSITORY='https://gitlab.gnome.org/GNOME/glycin' CARGO_PKG_RUST_VERSION=1.80 CARGO_PKG_VERSION=3.0.0-beta CARGO_PKG_VERSION_MAJOR=3 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE=beta LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/release/deps' rustc --crate-name glycin_utils --edition=2021 '/<<PKGBUILDDIR>>/debian/cargo_registry/glycin-utils-3.0.0-beta/src/lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C codegen-units=1 -C debuginfo=2 --cfg 'feature="async-io"' --cfg 'feature="loader-utils"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("async-io", "default", "glib", "gobject", "image-rs", "loader-utils", "tokio"))' -C metadata=d26b18761985d9a4 -C extra-filename=-14531e5b4c0caa46 --out-dir '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps' --target x86_64-unknown-linux-gnu -L 'dependency=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps' -L 'dependency=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/release/deps' --extern 'env_logger=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libenv_logger-8dd0ce0dd35137a1.rmeta' --extern 'futures_lite=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libfutures_lite-d451f903946c29e0.rmeta' --extern 'gufo_common=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libgufo_common-526137188706372b.rmeta' --extern 'libc=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/liblibc-c2a140eecaa8b8b9.rmeta' --extern 'libseccomp=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/liblibseccomp-75f724dec99836bd.rmeta' --extern 'log=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/liblog-eebd9cbf7909ff7f.rmeta' --extern 'memmap=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libmemmap2-fbb8586dd88531ec.rmeta' --extern 'nix=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libnix-c1d8ab260c19d127.rmeta' --extern 'paste=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/release/deps/libpaste-61c5f0ab83c67276.so' --extern 'rmp_serde=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/librmp_serde-fbe463b8c0bb4c41.rmeta' --extern 'serde=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libserde-bcfa0f5def724ad6.rmeta' --extern 'thiserror=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libthiserror-92ce926b84e16ce8.rmeta' --extern 'zbus=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target/x86_64-unknown-linux-gnu/release/deps/libzbus-d2a3c06795d411ba.rmeta' --cap-lints warn -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro -C link-arg=-Wl,-z,now --remap-path-prefix '/<<PKGBUILDDIR>>=/usr/share/cargo/registry/glycin-1.2~beta.1+ds' --remap-path-prefix '/<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry' -L native=/usr/lib/x86_64-linux-gnu` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
[1/12] /usr/bin/meson --internal msgfmthelper --msgfmt=/usr/bin/msgfmt loaders/tmp-glycin-heif loaders/glycin-heif.conf desktop ../loaders/../po
/usr/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
[2/12] /usr/bin/meson --internal msgfmthelper --msgfmt=/usr/bin/msgfmt loaders/tmp-glycin-image-rs loaders/glycin-image-rs.conf desktop ../loaders/../po
/usr/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
loaders/tmp-glycin-image-rs:24:0: warning: invalid non-blank line
loaders/tmp-glycin-image-rs:28:0: warning: invalid non-blank line
[3/12] /usr/bin/meson --internal msgfmthelper --msgfmt=/usr/bin/msgfmt loaders/tmp-glycin-jxl loaders/glycin-jxl.conf desktop ../loaders/../po
/usr/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
[4/12] /usr/bin/meson --internal msgfmthelper --msgfmt=/usr/bin/msgfmt loaders/tmp-glycin-svg loaders/glycin-svg.conf desktop ../loaders/../po
/usr/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
FAILED: loaders/glycin-heif-bin 
env LOCALEDIR=/usr/share/locale /usr/share/cargo/bin/cargo build --target-dir '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-target' --profile release --manifest-path '/<<PKGBUILDDIR>>/Cargo.toml' --package glycin-heif
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 1
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202503/

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

Thanks.



More information about the pkg-gnome-maintainers mailing list