diff -Nru rust-mbox-0.6.0/debian/changelog rust-mbox-0.6.0/debian/changelog --- rust-mbox-0.6.0/debian/changelog 2023-08-09 13:35:57.000000000 +0000 +++ rust-mbox-0.6.0/debian/changelog 2023-08-14 08:12:25.000000000 +0000 @@ -1,3 +1,10 @@ +rust-mbox (0.6.0-2) unstable; urgency=medium + + * Package mbox 0.6.0 from crates.io using debcargo 2.6.0 + * Fix tests on architectures where char is unsigned (Closes: #1043597) + + -- Emanuele Rocca Mon, 14 Aug 2023 10:12:25 +0200 + rust-mbox (0.6.0-1) unstable; urgency=medium * Package mbox 0.6.0 from crates.io using debcargo 2.6.0 diff -Nru rust-mbox-0.6.0/debian/patches/fix-ftbfs-unsigned-char.diff rust-mbox-0.6.0/debian/patches/fix-ftbfs-unsigned-char.diff --- rust-mbox-0.6.0/debian/patches/fix-ftbfs-unsigned-char.diff 1970-01-01 00:00:00.000000000 +0000 +++ rust-mbox-0.6.0/debian/patches/fix-ftbfs-unsigned-char.diff 2023-08-14 08:12:25.000000000 +0000 @@ -0,0 +1,35 @@ +From 82ab7559203a434a159d54f42b59ce9c901f7055 Mon Sep 17 00:00:00 2001 +From: Mads Marquart +Date: Tue, 23 Nov 2021 22:28:57 +0100 +Subject: [PATCH] Fix tests on targets where c_char = u8 + +--- + src/sentinel.rs | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/sentinel.rs b/src/sentinel.rs +index d765d50..2265be5 100644 +--- a/src/sentinel.rs ++++ b/src/sentinel.rs +@@ -328,9 +328,9 @@ fn test_string() { + unsafe { + let src = gen_malloc::(5).as_ptr(); + *src.offset(0) = 0x61; +- *src.offset(1) = -0x19; +- *src.offset(2) = -0x6c; +- *src.offset(3) = -0x4e; ++ *src.offset(1) = -0x19i8 as c_char; ++ *src.offset(2) = -0x6ci8 as c_char; ++ *src.offset(3) = -0x4ei8 as c_char; + *src.offset(4) = 0; + + let string = MString::from_raw_unchecked(src); +@@ -342,7 +342,7 @@ fn test_string() { + fn test_non_utf8_string() { + unsafe { + let src = gen_malloc::(2).as_ptr(); +- *src.offset(0) = -1; ++ *src.offset(0) = -1i8 as c_char; + *src.offset(1) = 0; + + let string = MString::from_raw(src); diff -Nru rust-mbox-0.6.0/debian/patches/series rust-mbox-0.6.0/debian/patches/series --- rust-mbox-0.6.0/debian/patches/series 2023-08-09 13:35:57.000000000 +0000 +++ rust-mbox-0.6.0/debian/patches/series 2023-08-14 08:12:25.000000000 +0000 @@ -1 +1,2 @@ no-rustc-version.diff +fix-ftbfs-unsigned-char.diff