Package: rust-hyper-rustls
Version: 0.24.2-1
Severity: serious
Tags: patch
The autopkgtest for rust-hyper-rustls is failing, because the code in
test_alpn_http2 requires a runtime, but the feature requirements for
the test do not specify one.
A debdiff fixing this is attatched.
diff -Nru rust-hyper-rustls-0.24.2/debian/changelog
rust-hyper-rustls-0.24.2/debian/changelog
--- rust-hyper-rustls-0.24.2/debian/changelog 2023-12-02 20:25:28.000000000
+0000
+++ rust-hyper-rustls-0.24.2/debian/changelog 2023-12-12 01:18:39.000000000
+0000
@@ -1,3 +1,11 @@
+rust-hyper-rustls (0.24.2-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix feature requirements for test_alpn_http to prevent autopkgtest
+ failure.
+
+ -- Peter Michael Green <plugw...@debian.org> Tue, 12 Dec 2023 01:18:39 +0000
+
rust-hyper-rustls (0.24.2-1) unstable; urgency=medium
* unfuzz patches
diff -Nru
rust-hyper-rustls-0.24.2/debian/patches/1002_test-requires-runtime.patch
rust-hyper-rustls-0.24.2/debian/patches/1002_test-requires-runtime.patch
--- rust-hyper-rustls-0.24.2/debian/patches/1002_test-requires-runtime.patch
1970-01-01 00:00:00.000000000 +0000
+++ rust-hyper-rustls-0.24.2/debian/patches/1002_test-requires-runtime.patch
2023-12-12 01:18:17.000000000 +0000
@@ -0,0 +1,20 @@
+Description: tests_alpn_http2 fails to build if no runtime is enabled
+ Add feature guards so it doesn't cause autopkgtest failure.
+Author: Peter Michael Green <plugw...@debian.org>
+Last-Update: 2023-12-12
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+
+Index: rust-hyper-rustls-0.24.2/src/connector/builder.rs
+===================================================================
+--- rust-hyper-rustls-0.24.2.orig/src/connector/builder.rs
++++ rust-hyper-rustls-0.24.2/src/connector/builder.rs
+@@ -353,7 +353,7 @@ mod tests {
+ }
+
+ #[test]
+- #[cfg(all(not(feature = "http1"), feature = "http2"))]
++ #[cfg(all(not(feature = "http1"), feature = "http2", any(feature =
"native-tokio", feature = "tokio-runtime")))]
+ fn test_alpn_http2() {
+ let roots = rustls::RootCertStore::empty();
+ let tls_config = rustls::ClientConfig::builder()
diff -Nru rust-hyper-rustls-0.24.2/debian/patches/series
rust-hyper-rustls-0.24.2/debian/patches/series
--- rust-hyper-rustls-0.24.2/debian/patches/series 2022-12-06
11:57:28.000000000 +0000
+++ rust-hyper-rustls-0.24.2/debian/patches/series 2023-12-12
01:16:36.000000000 +0000
@@ -1,3 +1,4 @@
1001_http1.patch
+1002_test-requires-runtime.patch
2001_webpki-roots.patch
2004_tests_broken.patch