retitle 1121729 starship FTBFS, debian depdencies allow new version of toml but cargo dependencies do not. tags 1121729 +patch thanks
starship is currently BD-Uninstallable on all architectures: Dependency installability problem for starship on amd64: starship build-depends on missing: - librust-quick-xml-0.38-dev:amd64
quick-xml 0.38 is now in sid, unfortunately starship still FTBFS https://buildd.debian.org/status/fetch.php?pkg=starship&arch=amd64&ver=1.22.1-7&stamp=1765900260&raw=0
error: failed to select a version for the requirement `toml = "^0.8.19"` candidate versions found which didn't match: 0.9.8, 0.5.11
A debdiff addressing this issue is attatched.
diff -Nru starship-1.22.1/debian/changelog starship-1.22.1/debian/changelog --- starship-1.22.1/debian/changelog 2025-11-28 10:47:24.000000000 +0000 +++ starship-1.22.1/debian/changelog 2025-12-16 16:39:05.000000000 +0000 @@ -1,3 +1,10 @@ +starship (1.22.1-7.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Relax cargo dependencies on toml and toml_edit crates (Closes: #1121729). + + -- Peter Michael Green <[email protected]> Tue, 16 Dec 2025 16:39:05 +0000 + starship (1.22.1-7) unstable; urgency=medium [ Peter Michael Green ] diff -Nru starship-1.22.1/debian/patches/relax-deps.patch starship-1.22.1/debian/patches/relax-deps.patch --- starship-1.22.1/debian/patches/relax-deps.patch 2025-10-25 13:56:35.000000000 +0000 +++ starship-1.22.1/debian/patches/relax-deps.patch 2025-12-16 16:39:05.000000000 +0000 @@ -1,47 +1,94 @@ Forwarded: not-needed Last-Update: 2025-10-23 ---- a/Cargo.toml -+++ b/Cargo.toml -@@ -46,2 +46,2 @@ +Index: starship-1.22.1/Cargo.toml +=================================================================== +--- starship-1.22.1.orig/Cargo.toml ++++ starship-1.22.1/Cargo.toml +@@ -43,8 +43,8 @@ gix-faster = ["gix-features/zlib-stock", + + [dependencies] + chrono = { version = "0.4.39", default-features = false, features = ["clock", "std", "wasmbind"] } -clap = { version = "4.5.26", features = ["derive", "cargo", "unicode"] } -clap_complete = "4.5.42" +clap = { version = "4.5", features = ["derive", "cargo", "unicode"] } +clap_complete = "4.5.40" -@@ -59 +59 @@ + dirs = "5.0.1" + dunce = "1.0.5" + # default feature restriction addresses https://github.com/starship/starship/issues/4251 +@@ -56,43 +56,43 @@ log = { version = "0.4.24", features = [ + # see: https://github.com/NixOS/nixpkgs/issues/160876 + notify-rust = { version = "4.11.3", optional = true } + nu-ansi-term = "0.50.1" -open = "5.3.2" +open = "5.3" -@@ -63,2 +63,2 @@ + # update os module config and tests when upgrading os_info + os_info = "3.9.2" + path-slash = "0.2.1" -pest = "2.7.15" -pest_derive = "2.7.15" +pest = "2.7" +pest_derive = "2.7" -@@ -71 +71 @@ + process_control = "5.0.0" + quick-xml = "0.37.2" + rand = "0.8.5" + rayon = "1.10.0" + regex = { version = "1.11.1", default-features = false, features = ["perf", "std", "unicode-perl"] } + rust-ini = "0.21.1" -semver = "1.0.24" +semver = "1.0" -@@ -75 +75 @@ + serde = { version = "1.0.217", features = ["derive"] } + serde_json = "1.0.135" + sha1 = "0.10.6" -shadow-rs = { version = "0.37.0", default-features = false } +shadow-rs = { version = "1", default-features = false } -@@ -80 +80 @@ + # battery is optional (on by default) because the crate doesn't currently build for Termux + # see: https://github.com/svartalf/rust-battery/issues/33 + starship-battery = { version = "0.10.0", optional = true } + strsim = "0.11.1" -systemstat = "=0.2.4" +systemstat = "0.2.3" -@@ -88 +88 @@ + terminal_size = "0.4.1" +-toml = { version = "0.8.19", features = ["preserve_order"] } +-toml_edit = "0.22.22" ++toml = { version = ">= 0.8.19", features = ["preserve_order"] } ++toml_edit = ">= 0.22.22" + unicode-segmentation = "1.12.0" + unicode-width = "0.2.0" + urlencoding = "2.1.3" + versions = "6.3.2" -which = "7.0.1" +which = "8" -@@ -90 +90 @@ + whoami = { version = "1.5.2", default-features = false } -yaml-rust2 = "0.9.0" +yaml-rust2 = "0.10" -@@ -93 +93 @@ + + guess_host_triple = "0.1.4" -home = "0.5.11" +home = "0.5" -@@ -95 +95 @@ + # Temporary workaround for https://github.com/rust-lang/libz-sys/issues/225 -libz-ng-sys = { version = "<1.1.20", optional = true } +#libz-ng-sys = { version = "<1.1.20", optional = true } -@@ -117 +117 @@ + shell-words = "1.1.0" + + [dependencies.schemars] +@@ -114,17 +114,17 @@ features = [ + ] + + [target.'cfg(not(windows))'.dependencies] -nix = { version = "0.29.0", default-features = false, features = ["feature", "fs", "user"] } +nix = { version = "0.30.0", default-features = false, features = ["feature", "fs", "user"] } -@@ -120 +120 @@ + + [build-dependencies] -shadow-rs = { version = "0.37.0", default-features = false } +shadow-rs = "1" -@@ -127 +127 @@ + dunce = "1.0.5" + + [target.'cfg(windows)'.build-dependencies] + winres = "0.1.12" + + [dev-dependencies] -mockall = "0.13.1" +mockall = "0.13" + tempfile = "3.15.0" + + [profile.release]

