Hi Axel,
Le 01/09/2023 à 13:11, Axel Kittenberger a écrit :
Question 3) Taking the old package as base and after setting up sbuild
modifying it, I currently have following control file:
If fixed this, by taking the rules file from:
https://wiki.debian.org/Gnome/Rust_Packaging
instead of a plain dh file, now I get:
---
[43/46] /usr/bin/env
CARGO_HOME=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/cargo-home
/usr/share/cargo/bin/cargo build --manifest-path
/<<PKGBUILDDIR>>/Cargo.toml --target-dir
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src --release && cp
src/release/authenticator src/authenticator
Updating crates.io index
error: failed to get `libadwaita` as a dependency of package
`authenticator v4.3.1 (/<<PKGBUILDDIR>>)`
---
The joke is libadwaita is literally the example on said instruction page:
> For instance adw = {package = "libadwaita", version = "0.4",
features = ["v1_3"]} translates to librust-libadwaita+v1_3-dev (>= 0.4).
But such package does not exist, not any other package with adwaita and
rust in its name, except librust-sctk-adwaita-dev, but I get from the
description it is "adwaita like" and not adwaita itself?
The libadwaita crate isn't in Debian yet, so very few Rust-based GNOME
apps can be packaged for now. This is being worked on by Matthias (CC'ed
in this mail as I'm not sure he is subscribed to this ML), but still
needs some time before all the required deps make their way into Debian,
IIRC.
In the meantime, feel free to check whether other required crates are
missing from Debian, and ideally join the Rust team to help packaging
those. You can also join #debian-rust to discuss those matters.
Cheers,
Arnaud
Kind regards, Axel