On Thu, 13 Mar 2025 20:47:15 +0000 Peter Green <plugw...@debian.org> wrote:
> we plan to remove arrayve 0.5 soon from the archive. Your package is the > last rdep. I attached a patch for you convenience that updates it to > 0.7.

You will also need to update debian/tests/control
Thanks. Updated patch attached.

best,

werdahias
>From a7533d72fa85156171f2347ba5e41900349f8505 Mon Sep 17 00:00:00 2001
From: Matthias Geiger <werdah...@debian.org>
Date: Thu, 13 Mar 2025 21:05:23 +0100
Subject: [PATCH] Add patch to build with arrayvec 0.7


diff --git a/debian/control b/debian/control
index 18632aa..5abf930 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Build-Depends:
  debhelper-compat (= 13),
  dh-sequence-rust,
- librust-arrayvec-0.5-dev,
+ librust-arrayvec-0.7-dev,
  librust-bincode-1+default-dev,
  librust-hex-0.4+default-dev,
  librust-rand-0.8+getrandom-dev,
diff --git a/debian/patches/arrayvec-0.7.diff b/debian/patches/arrayvec-0.7.diff
new file mode 100644
index 0000000..9932efd
--- /dev/null
+++ b/debian/patches/arrayvec-0.7.diff
@@ -0,0 +1,22 @@
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -42,7 +42,7 @@
+ bincode = "1.2.1"
+ 
+   [dev-dependencies.arrayvec]
+-  version = "~0.5.1"
++  version = "0.7"
+   default-features = false
+ 
+   [dev-dependencies.rand]
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -82,7 +82,7 @@
+ #[cfg(test)]
+ macro_rules! format {
+     ($capacity:expr, $($arg:tt)*) => {{
+-        let mut output = arrayvec::ArrayString::<[_; $capacity]>::new();
++        let mut output = arrayvec::ArrayString::<$capacity>::new();
+         core::fmt::write(&mut output, core::format_args!($($arg)*)).expect("insufficient ArrayString capacity");
+         output
+     }}
diff --git a/debian/patches/series b/debian/patches/series
index 105f3a5..8a3bd59 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 1001_modernize.patch
+arrayvec-0.7.diff
diff --git a/debian/tests/control b/debian/tests/control
index 267b6ac..43a395a 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -3,7 +3,7 @@ Test-Command: /usr/share/dh-rust/bin/cargo-auto-test xor_name 5.0.0
 Features: test-name=rust-xor-name:@
 Depends:
  dh-rust,
- librust-arrayvec-0.5-dev,
+ librust-arrayvec-0.7-dev,
  librust-bincode-1+default-dev,
  librust-rand-0.8+getrandom-dev,
  librust-rand-0.8+small-rng-dev,
@@ -15,7 +15,7 @@ Test-Command: /usr/share/dh-rust/bin/cargo-auto-test xor_name 5.0.0
 Features: test-name=rust-xor-name-5:default
 Depends:
  dh-rust,
- librust-arrayvec-0.5-dev,
+ librust-arrayvec-0.7-dev,
  librust-bincode-1+default-dev,
  librust-rand-0.8+getrandom-dev,
  librust-rand-0.8+small-rng-dev,
@@ -27,7 +27,7 @@ Test-Command: /usr/share/dh-rust/bin/cargo-auto-test xor_name 5.0.0
 Features: test-name=rust-xor-name-5:
 Depends:
  dh-rust,
- librust-arrayvec-0.5-dev,
+ librust-arrayvec-0.7-dev,
  librust-bincode-1+default-dev,
  librust-rand-0.8+getrandom-dev,
  librust-rand-0.8+small-rng-dev,
@@ -39,7 +39,7 @@ Test-Command: /usr/share/dh-rust/bin/cargo-auto-test xor_name 5.0.0
 Features: test-name=rust-xor-name-5:serialize-hex
 Depends:
  dh-rust,
- librust-arrayvec-0.5-dev,
+ librust-arrayvec-0.7-dev,
  librust-bincode-1+default-dev,
  librust-rand-0.8+getrandom-dev,
  librust-rand-0.8+small-rng-dev,

Reply via email to