Package: greetd
Version: 0.8.0-1
Severity: important
I have updated rust-nix in experimental, and intend to do so in unstable
soon, the code in your package builds fine with the new version, but
the Cargo dependencies don't allow it to be used. The attached patch
updates the Debian and Cargo dependencies in your package to be consistent
with each other.
I may NMU this later.diff -Nru greetd-0.8.0/debian/changelog greetd-0.8.0/debian/changelog
--- greetd-0.8.0/debian/changelog 2022-10-03 05:22:59.0 +
+++ greetd-0.8.0/debian/changelog 2022-12-08 13:04:43.0 +
@@ -1,3 +1,12 @@
+greetd (0.8.0-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Consistently depend on version 0.24 or greater of the nix crate in both
+Debian packaging and Cargo.toml. 0.24 seems to be the minimum version
needed
+to build the patched source code.
+
+ -- Peter Michael Green Thu, 08 Dec 2022 13:04:43 +
+
greetd (0.8.0-1) unstable; urgency=medium
* Initial release (Closes: #1010247).
diff -Nru greetd-0.8.0/debian/control greetd-0.8.0/debian/control
--- greetd-0.8.0/debian/control 2022-10-03 05:22:59.0 +
+++ greetd-0.8.0/debian/control 2022-12-08 13:04:02.0 +
@@ -6,7 +6,7 @@
debhelper-compat (= 13),
dh-cargo,
# greetd & greetd_ipc
- librust-nix-dev (>= 0.19),
+ librust-nix-dev (>= 0.24),
librust-pam-sys-dev (>= 0.5.6),
librust-users-dev (>= 0.11.0),
librust-serde-derive-dev (>= 1.0),
diff -Nru greetd-0.8.0/debian/patches/relax_deps.patch
greetd-0.8.0/debian/patches/relax_deps.patch
--- greetd-0.8.0/debian/patches/relax_deps.patch2022-10-03
05:22:59.0 +
+++ greetd-0.8.0/debian/patches/relax_deps.patch2022-12-08
13:03:31.0 +
@@ -4,22 +4,26 @@
Description: Relax deps to avoid packaging extra versions
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
a/agreety/Cargo.toml
-+++ b/agreety/Cargo.toml
-@@ -13,4 +13,4 @@
+Index: greetd-0.8.0/agreety/Cargo.toml
+===
+--- greetd-0.8.0.orig/agreety/Cargo.toml
greetd-0.8.0/agreety/Cargo.toml
+@@ -13,4 +13,4 @@ inish = { path = "../inish"}
rpassword = "5.0"
getopts = "0.2"
enquote = "1.0.3"
-nix = "0.19"
-+nix = "~0.25.0"
a/greetd/Cargo.toml
-+++ b/greetd/Cargo.toml
-@@ -11,7 +11,7 @@
++nix = ">= 0.24.0"
+Index: greetd-0.8.0/greetd/Cargo.toml
+===
+--- greetd-0.8.0.orig/greetd/Cargo.toml
greetd-0.8.0/greetd/Cargo.toml
+@@ -11,7 +11,7 @@ repository = "https://git.sr.ht/~kennyle
debug = []
[dependencies]
-nix = "0.19"
-+nix = "~0.25.0"
++nix = ">= 0.24.0"
pam-sys = "0.5.6"
users = "0.11.0"
serde = { version = "1.0", features = ["derive"] }