tags 1064612 +patch
thanks

rust-ahash is unable to migrate to Testing because its autopkgtests are failing:
A debdiff fixing this issue is attatched.

diff -Nru rust-ahash-0.8.9/debian/changelog rust-ahash-0.8.9/debian/changelog
--- rust-ahash-0.8.9/debian/changelog   2024-02-23 07:28:35.000000000 +0000
+++ rust-ahash-0.8.9/debian/changelog   2024-03-16 17:46:03.000000000 +0000
@@ -1,3 +1,10 @@
+rust-ahash (0.8.9-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix feature gaurds for test_key_ref (Closes: #1064612)
+
+ -- Peter Michael Green <plugw...@debian.org>  Sat, 16 Mar 2024 17:46:03 +0000
+
 rust-ahash (0.8.9-2) unstable; urgency=medium
 
   * drop patch 2001, obsoleted by Debian package changes;
diff -Nru rust-ahash-0.8.9/debian/patches/1002_test_feature_requirements.patch 
rust-ahash-0.8.9/debian/patches/1002_test_feature_requirements.patch
--- rust-ahash-0.8.9/debian/patches/1002_test_feature_requirements.patch        
2024-02-18 09:46:30.000000000 +0000
+++ rust-ahash-0.8.9/debian/patches/1002_test_feature_requirements.patch        
2024-03-16 17:46:03.000000000 +0000
@@ -1,12 +1,15 @@
 Description: fix feature requirements for tests
 Author: Peter Michael Green <plugw...@debian.org>
 Bug-Debian: https://bugs.debian.org/1057451
-Last-Update: 2023-12-27
+Bug-Debian: https://bugs.debian.org/1064612
+Last-Update: 2024-03-16
 ---
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---- a/src/lib.rs
-+++ b/src/lib.rs
-@@ -322,12 +322,14 @@
+Index: rust-ahash-0.8.9/src/lib.rs
+===================================================================
+--- rust-ahash-0.8.9.orig/src/lib.rs
++++ rust-ahash-0.8.9/src/lib.rs
+@@ -322,12 +322,14 @@ mod test {
      use std::hash::Hash;
  
      #[test]
@@ -21,7 +24,7 @@
      fn test_ahash_alias_set_construction() {
          let mut set = super::HashSet::with_capacity(1234);
          set.insert(1);
-@@ -342,6 +344,7 @@
+@@ -342,6 +344,7 @@ mod test {
      }
  
      #[test]
@@ -29,9 +32,11 @@
      fn test_builder() {
          let mut map = HashMap::<u32, u64, RandomState>::default();
          map.insert(1, 3);
---- a/tests/bench.rs
-+++ b/tests/bench.rs
-@@ -116,6 +116,7 @@
+Index: rust-ahash-0.8.9/tests/bench.rs
+===================================================================
+--- rust-ahash-0.8.9.orig/tests/bench.rs
++++ rust-ahash-0.8.9/tests/bench.rs
+@@ -116,6 +116,7 @@ fn bench_map(c: &mut Criterion) {
      #[cfg(feature = "std")]
      {
          let mut group = c.benchmark_group("map");
@@ -39,7 +44,7 @@
          group.bench_function("aHash-alias", |b| {
              b.iter(|| {
                  let hm: ahash::HashMap<i32, i32> = (0..1_000_000).map(|i| (i, 
i)).collect();
-@@ -138,6 +139,7 @@
+@@ -138,6 +139,7 @@ fn bench_map(c: &mut Criterion) {
                  }
              })
          });
@@ -47,7 +52,7 @@
          group.bench_function("aHash-hashBrown-explicit", |b| {
              b.iter(|| {
                  let hm: hashbrown::HashMap<i32, i32, RandomState> = 
(0..1_000_000).map(|i| (i, i)).collect();
-@@ -160,6 +162,7 @@
+@@ -160,6 +162,7 @@ fn bench_map(c: &mut Criterion) {
                  }
              })
          });
@@ -55,9 +60,11 @@
          group.bench_function("aHash-rand", |b| {
              b.iter(|| {
                  let hm: std::collections::HashMap<i32, i32, RandomState> = 
(0..1_000_000).map(|i| (i, i)).collect();
---- a/tests/map_tests.rs
-+++ b/tests/map_tests.rs
-@@ -179,7 +179,7 @@
+Index: rust-ahash-0.8.9/tests/map_tests.rs
+===================================================================
+--- rust-ahash-0.8.9.orig/tests/map_tests.rs
++++ rust-ahash-0.8.9/tests/map_tests.rs
+@@ -179,7 +179,7 @@ fn test_bucket_distribution() {
      check_for_collisions(&build_hasher, &sequence, 256);
  }
  
@@ -66,7 +73,7 @@
  #[test]
  fn test_ahash_alias_map_construction() {
      let mut map = ahash::HashMap::default();
-@@ -189,7 +189,7 @@
+@@ -189,7 +189,7 @@ fn test_ahash_alias_map_construction() {
      map.insert(1, "test");
  }
  
@@ -75,3 +82,12 @@
  #[test]
  fn test_ahash_alias_set_construction() {
      let mut set = ahash::HashSet::default();
+@@ -201,7 +201,7 @@ fn test_ahash_alias_set_construction() {
+ }
+ 
+ 
+-#[cfg(feature = "std")]
++#[cfg(all(feature = "std", any(feature = "runtime-rng", feature = 
"compile-time-rng", feature = "no-rng")))]
+ #[test]
+ fn test_key_ref() {
+     let mut map = ahash::HashMap::default();

Reply via email to