Source: rust-xor-name
Version: 5.0.0-9
Severity: normal
Tags: patch
X-Debbugs-Cc: werdah...@debian.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Jonas,

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.

best,

werdahias


- -- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.17-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
LSM: AppArmor: enabled


-----BEGIN PGP SIGNATURE-----

iIsEARYIADMWIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCZ9M76hUcd2VyZGFoaWFz
QGRlYmlhbi5vcmcACgkQ7L7btge5sr5u3QEAohPJ/MjgsbPqSIciGoEqTJFTpnbq
panCaPEJpHmxsv4BAMsNIXXtM9u8riHVz7X2nxLDvnQf5a69xZYOP7R9eNoM
=3+MC
-----END PGP SIGNATURE-----
>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

---
 debian/control                   |  2 +-
 debian/patches/arrayvec-0.7.diff | 22 ++++++++++++++++++++++
 debian/patches/series            |  1 +
 3 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/arrayvec-0.7.diff

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
-- 
2.47.2

Reply via email to