Package: rust-lazy-regex Version: 3.3.0+20241210-1 Severity: serious
rust-lazy-regex's autopkgtests are failing in most test configurations due to lack of feature gates on tests. The attatched debdiff adds said feature gates.
diff -Nru rust-lazy-regex-3.3.0+20241210/debian/changelog rust-lazy-regex-3.3.0+20241210/debian/changelog --- rust-lazy-regex-3.3.0+20241210/debian/changelog 2024-12-13 17:58:29.000000000 +0000 +++ rust-lazy-regex-3.3.0+20241210/debian/changelog 2024-12-14 14:24:34.000000000 +0000 @@ -1,3 +1,10 @@ +rust-lazy-regex (3.3.0+20241210-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix test feature gates. + + -- Peter Michael Green <plugw...@debian.org> Sat, 14 Dec 2024 14:24:34 +0000 + rust-lazy-regex (3.3.0+20241210-1) unstable; urgency=medium [ upstream ] diff -Nru rust-lazy-regex-3.3.0+20241210/debian/patches/1001_fence_features.patch rust-lazy-regex-3.3.0+20241210/debian/patches/1001_fence_features.patch --- rust-lazy-regex-3.3.0+20241210/debian/patches/1001_fence_features.patch 2024-12-06 08:24:48.000000000 +0000 +++ rust-lazy-regex-3.3.0+20241210/debian/patches/1001_fence_features.patch 2024-12-14 14:24:34.000000000 +0000 @@ -1,10 +1,13 @@ -Description: add a feature fence +Description: add feature fences Author: Jonas Smedegaard <d...@jones.dk> -Last-Update: 2024-12-06 +Author: Peter Michael Green <plugw...@debian.org> +Last-Update: 2024-12-14 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ ---- a/tests/replace.rs -+++ b/tests/replace.rs +Index: rust-lazy-regex-3.3.0+20241210/tests/replace.rs +=================================================================== +--- rust-lazy-regex-3.3.0+20241210.orig/tests/replace.rs ++++ rust-lazy-regex-3.3.0+20241210/tests/replace.rs @@ -2,6 +2,7 @@ /// check replacement with a mut closure /// See https://github.com/Canop/lazy-regex/issues/27 @@ -13,3 +16,59 @@ fn replace_with_mut_closure() { let input = "5+183/32"; let mut last_digits: Vec<u8> = Vec::new(); +Index: rust-lazy-regex-3.3.0+20241210/tests/regex_if.rs +=================================================================== +--- rust-lazy-regex-3.3.0+20241210.orig/tests/regex_if.rs ++++ rust-lazy-regex-3.3.0+20241210/tests/regex_if.rs +@@ -7,6 +7,7 @@ use { + }; + + #[test] ++#[cfg(any(feature = "unicode", feature = "lite"))] + fn test_regex_if() { + fn extract_grey_level(s: &str) -> Option<u16> { + regex_if!( +@@ -22,6 +23,7 @@ fn test_regex_if() { + } + + #[test] ++#[cfg(any(feature = "unicode", feature = "lite"))] + fn test_regex_if_with_error_handling() { + fn extract_grey_level(s: &str) -> Result<Option<u8>, ParseIntError> { + let v = regex_if!(r#"^gr(a|e)y\((?<level>\d{1,3})\)$"#, s, level.parse()?); +@@ -33,6 +35,7 @@ fn test_regex_if_with_error_handling() { + } + + #[test] ++#[cfg(all(feature = "unicode", not(feature = "lite")))] + fn test_bytes_regex_if() { + fn extract_grey_level(s: &[u8]) -> Option<u16> { + bytes_regex_if!( +Index: rust-lazy-regex-3.3.0+20241210/tests/regex_switch.rs +=================================================================== +--- rust-lazy-regex-3.3.0+20241210.orig/tests/regex_switch.rs ++++ rust-lazy-regex-3.3.0+20241210/tests/regex_switch.rs +@@ -4,6 +4,7 @@ use { + }; + + #[test] ++#[cfg(any(feature = "unicode", feature = "lite"))] + fn test_regex_switch() { + #[derive(Debug, PartialEq, Eq)] + enum Color { +@@ -32,6 +33,7 @@ fn test_regex_switch() { + } + + #[test] ++#[cfg(any(feature = "unicode", feature = "lite"))] + fn test_regex_switch_with_error_handling() -> Result<(), ParseIntError> { + #[derive(Debug, PartialEq)] + enum Color { +@@ -56,6 +58,7 @@ fn test_regex_switch_with_error_handling + } + + #[test] ++#[cfg(all(feature = "unicode", not(feature = "lite")))] + fn test_bytes_regex_switch() { + #[derive(Debug, PartialEq, Eq)] + enum Color {