Package: waypipe
Version: 0.11.0-2

We hope to update rust-getrandom to version 0.2 soon, waypipe will need
a small patch to build with the new version.

diff -Nru waypipe-0.11.0/debian/changelog waypipe-0.11.0/debian/changelog
--- waypipe-0.11.0/debian/changelog     2026-02-28 20:46:42.000000000 +0000
+++ waypipe-0.11.0/debian/changelog     2026-03-12 17:34:26.000000000 +0000
@@ -1,3 +1,10 @@
+waypipe (0.11.0-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch for getrandom 0.4
+
+ -- Peter Michael Green <[email protected]>  Thu, 12 Mar 2026 17:34:26 +0000
+
 waypipe (0.11.0-2) unstable; urgency=medium
 
   * Use dh-cargo instead of bundling dh-cargo-built-using.
diff -Nru waypipe-0.11.0/debian/control waypipe-0.11.0/debian/control
--- waypipe-0.11.0/debian/control       2026-02-28 19:37:33.000000000 +0000
+++ waypipe-0.11.0/debian/control       2026-03-12 17:34:16.000000000 +0000
@@ -14,7 +14,7 @@
  liblz4-dev,
  librust-ash-dev (>= 0.38.0), librust-ash-dev (<< 0.39.0),
  librust-clap-dev (>= 4.5.21), librust-clap-dev (<< 4.6.0),
- librust-getrandom-dev (>= 0.2.15), librust-getrandom-dev (<< 0.3.0),
+ librust-getrandom-0.4-dev,
  librust-libloading-dev,
  librust-log-dev (>= 0.4.22), librust-log-dev (<< 0.5.0),
  librust-nix-dev (>= 0.30.0), librust-nix-dev (<< 0.31.0),
diff -Nru waypipe-0.11.0/debian/patches/0002-getrandom-0.4.patch 
waypipe-0.11.0/debian/patches/0002-getrandom-0.4.patch
--- waypipe-0.11.0/debian/patches/0002-getrandom-0.4.patch      1970-01-01 
00:00:00.000000000 +0000
+++ waypipe-0.11.0/debian/patches/0002-getrandom-0.4.patch      2026-03-12 
17:34:26.000000000 +0000
@@ -0,0 +1,26 @@
+Index: waypipe-0.11.0/Cargo.toml
+===================================================================
+--- waypipe-0.11.0.orig/Cargo.toml
++++ waypipe-0.11.0/Cargo.toml
+@@ -29,7 +29,7 @@ gbmfallback = ["dep:waypipe-gbm-wrapper"
+ test_proto = []
+ 
+ [dependencies]
+-getrandom = "0.2.15"
++getrandom = "0.4"
+ clap = { version = "4.5.21", features = [] }
+ log = { version = "0.4.22", features = ["std"] }
+ nix = { version = "0.30.0", features = ["fs", "poll", "uio", "socket", 
"process", "signal", "ioctl"] }
+Index: waypipe-0.11.0/src/main.rs
+===================================================================
+--- waypipe-0.11.0.orig/src/main.rs
++++ waypipe-0.11.0/src/main.rs
+@@ -149,7 +149,7 @@ impl Log for Logger {
+ /** Return a random list of 10 alphanumeric characters */
+ fn get_rand_tag() -> Result<[u8; 10], String> {
+     let mut rand_buf = [0_u8; 16];
+-    getrandom::getrandom(&mut rand_buf).map_err(|x| tag!("Failed to get 
random bits: {}", x))?;
++    getrandom::fill(&mut rand_buf).map_err(|x| tag!("Failed to get random 
bits: {}", x))?;
+     let mut n: u128 = u128::from_le_bytes(rand_buf);
+ 
+     // Note: log2(62^10) ≈ 59.5 which is ≪ 128, so the resulting
diff -Nru waypipe-0.11.0/debian/patches/series 
waypipe-0.11.0/debian/patches/series
--- waypipe-0.11.0/debian/patches/series        2025-12-22 06:55:09.000000000 
+0000
+++ waypipe-0.11.0/debian/patches/series        2026-03-12 17:34:26.000000000 
+0000
@@ -1 +1,2 @@
 0001-Work-around-libc-upstream-issue-3223.patch
+0002-getrandom-0.4.patch

Reply via email to