Package: swayosd.

I hope to update rust-nix to version 0.30 soon. Swayosd needs a small
patch to build against the new version.

debdiff is attatched, the patched version still builds sucessfully with
the old rust-nix so this can be applied at any time.

diff -Nru swayosd-0.1.0/debian/changelog swayosd-0.1.0/debian/changelog
--- swayosd-0.1.0/debian/changelog      2025-09-07 15:09:03.000000000 +0000
+++ swayosd-0.1.0/debian/changelog      2025-09-28 13:17:20.000000000 +0000
@@ -1,3 +1,10 @@
+swayosd (0.1.0-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch to support nix 0.30
+
+ -- Peter Michael Green <[email protected]>  Sun, 28 Sep 2025 13:17:20 +0000
+
 swayosd (0.1.0-6) unstable; urgency=medium
 
   * d/patches: Add upstream patch to build with gtk-rs 0.10
diff -Nru swayosd-0.1.0/debian/control swayosd-0.1.0/debian/control
--- swayosd-0.1.0/debian/control        2025-09-06 14:47:42.000000000 +0000
+++ swayosd-0.1.0/debian/control        2025-09-28 13:17:20.000000000 +0000
@@ -23,8 +23,8 @@
  librust-lazy-static-1+default-dev (>= 1.4.0-~~),
  librust-libc-0.2+default-dev (>= 0.2.147-~~),
  librust-libpulse-binding-2+default-dev (>= 2.26.0-~~),
- librust-nix-0.29+default-dev,
- librust-nix-0.29+poll-dev,
+ librust-nix+default-dev (>= 0.29),
+ librust-nix+poll-dev (>= 0.29),
  librust-pulsectl-rs-0.3+default-dev (>= 0.3.2-~~),
  librust-serde-1+default-dev,
  librust-serde-derive-1+default-dev,
diff -Nru swayosd-0.1.0/debian/patches/nix-0.30.diff 
swayosd-0.1.0/debian/patches/nix-0.30.diff
--- swayosd-0.1.0/debian/patches/nix-0.30.diff  1970-01-01 00:00:00.000000000 
+0000
+++ swayosd-0.1.0/debian/patches/nix-0.30.diff  2025-09-28 13:17:20.000000000 
+0000
@@ -0,0 +1,26 @@
+Index: swayosd-0.1.0/src/input-backend/main.rs
+===================================================================
+--- swayosd-0.1.0.orig/src/input-backend/main.rs
++++ swayosd-0.1.0/src/input-backend/main.rs
+@@ -62,7 +62,7 @@ fn main() -> Result<(), zbus::Error> {
+    assert!(fd != -1);
+    let borrowed_fd = unsafe{ BorrowedFd::borrow_raw(input.as_raw_fd())};
+       let pollfd = PollFd::new(borrowed_fd, PollFlags::POLLIN);
+-      while poll(&mut [pollfd], None::<u8>).is_ok() {
++      while poll(&mut [pollfd.clone()], None::<u8>).is_ok() {
+               event(&mut input, &iface_ref);
+       }
+ 
+Index: swayosd-0.1.0/Cargo.toml
+===================================================================
+--- swayosd-0.1.0.orig/Cargo.toml
++++ swayosd-0.1.0/Cargo.toml
+@@ -37,7 +37,7 @@ input = "0.9"
+ libc = "0.2.147"
+ evdev-rs = "0.6.1"
+ async-std = "1.12.0"
+-nix = { version = "0.29", features = ["poll"] }
++nix = { version = ">= 0.29", features = ["poll"] }
+ blight = "0.7.0"
+ anyhow = "1.0.75"
+ thiserror = "1.0.49"
diff -Nru swayosd-0.1.0/debian/patches/series 
swayosd-0.1.0/debian/patches/series
--- swayosd-0.1.0/debian/patches/series 2025-09-06 14:51:15.000000000 +0000
+++ swayosd-0.1.0/debian/patches/series 2025-09-28 13:17:20.000000000 +0000
@@ -7,3 +7,4 @@
 use-correct-udev-systemd-paths.diff
 gtk-rs-0.10.patch
 fix-build.diff
+nix-0.30.diff

Reply via email to