Package: rust-ureq
Version: 3.2.0+ds+~0.5.3+ds-2

We hope to update rust-getrandom to version 0.4 soon, rust-ureq needs
a small patch to build against the new version.
diff -Nru rust-ureq-3.2.0+ds+~0.5.3+ds/debian/changelog 
rust-ureq-3.2.0+ds+~0.5.3+ds/debian/changelog
--- rust-ureq-3.2.0+ds+~0.5.3+ds/debian/changelog       2026-02-10 
08:44:39.000000000 +0000
+++ rust-ureq-3.2.0+ds+~0.5.3+ds/debian/changelog       2026-03-07 
13:47:01.000000000 +0000
@@ -1,3 +1,10 @@
+rust-ureq (3.2.0+ds+~0.5.3+ds-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch for getrandom 0.4.
+
+ -- Peter Michael Green <[email protected]>  Sat, 07 Mar 2026 13:47:01 +0000
+
 rust-ureq (3.2.0+ds+~0.5.3+ds-2) unstable; urgency=medium
 
   * add patch 2004
diff -Nru rust-ureq-3.2.0+ds+~0.5.3+ds/debian/control 
rust-ureq-3.2.0+ds+~0.5.3+ds/debian/control
--- rust-ureq-3.2.0+ds+~0.5.3+ds/debian/control 2026-02-09 09:04:47.000000000 
+0000
+++ rust-ureq-3.2.0+ds+~0.5.3+ds/debian/control 2026-03-07 13:42:45.000000000 
+0000
@@ -12,7 +12,7 @@
  librust-encoding-rs-dev,
  librust-env-logger-dev,
  librust-flate2-dev,
- librust-getrandom-dev,
+ librust-getrandom-0.4-dev,
  librust-http-dev,
  librust-httparse-dev,
  librust-log-dev,
diff -Nru rust-ureq-3.2.0+ds+~0.5.3+ds/debian/patches/2005_getrandom.patch 
rust-ureq-3.2.0+ds+~0.5.3+ds/debian/patches/2005_getrandom.patch
--- rust-ureq-3.2.0+ds+~0.5.3+ds/debian/patches/2005_getrandom.patch    
1970-01-01 00:00:00.000000000 +0000
+++ rust-ureq-3.2.0+ds+~0.5.3+ds/debian/patches/2005_getrandom.patch    
2026-03-07 13:47:01.000000000 +0000
@@ -0,0 +1,32 @@
+Description: Update to getrandom 0.4
+Author: Peter Michael Green <[email protected]>
+Forwarded: no
+Last-Update: 2026-03-07
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: rust-ureq-3.2.0+ds+~0.5.3+ds/Cargo.toml
+===================================================================
+--- rust-ureq-3.2.0+ds+~0.5.3+ds.orig/Cargo.toml
++++ rust-ureq-3.2.0+ds+~0.5.3+ds/Cargo.toml
+@@ -94,7 +94,7 @@ serde = { version = "1.0.138", optional
+ serde_json = { version = "1.0.120", optional = true, default-features = 
false, features = ["std"] }
+ 
+ mime_guess = { version = "2.0.5", optional = true }
+-getrandom = { version = "0.2.15", optional = true }
++getrandom = { version = "0.4", optional = true }
+ 
+ [dev-dependencies]
+ env_logger = "0.11.7"
+Index: rust-ureq-3.2.0+ds+~0.5.3+ds/src/multipart.rs
+===================================================================
+--- rust-ureq-3.2.0+ds+~0.5.3+ds.orig/src/multipart.rs
++++ rust-ureq-3.2.0+ds+~0.5.3+ds/src/multipart.rs
+@@ -133,7 +133,7 @@ impl<'a> Form<'a> {
+         // only present in the dependencies if we use native-tls. In
+         // all other cases we have getrandom already.
+         let mut random_bytes = [0u8; BOUNDARY_SUFFIX_LEN];
+-        getrandom::getrandom(&mut random_bytes).expect("failed to generate 
random boundary");
++        getrandom::fill(&mut random_bytes).expect("failed to generate random 
boundary");
+ 
+         // *2 since we're using hex encoding
+         let mut boundary = String::with_capacity(BOUNDARY_PREFIX.len() + 
BOUNDARY_SUFFIX_LEN * 2);
diff -Nru rust-ureq-3.2.0+ds+~0.5.3+ds/debian/patches/series 
rust-ureq-3.2.0+ds+~0.5.3+ds/debian/patches/series
--- rust-ureq-3.2.0+ds+~0.5.3+ds/debian/patches/series  2026-02-10 
08:44:13.000000000 +0000
+++ rust-ureq-3.2.0+ds+~0.5.3+ds/debian/patches/series  2026-03-07 
13:47:01.000000000 +0000
@@ -8,3 +8,4 @@
 2003_no_net.patch
 2003_no_windows.patch
 2004_test_local_file.patch
+2005_getrandom.patch

Reply via email to