Package: rust-oxhttp
Version: 0.1.6-2

It would be nice to only need a single version of rustls in Debian,
with my recent round of uploads, most of the reverse dependencies
are now moved to version 0.21, leaving oxhttp as one of the few
remaining on 0.20.

Upstream has moved in git, but have not yet made a release based
on the new version, the patch however is trivial and applies
cleanly to the Debian package. After applying the patch I was
able to succesfully build the package and run the autopkgtests.
diff -Nru rust-oxhttp-0.1.6/debian/changelog rust-oxhttp-0.1.6/debian/changelog
--- rust-oxhttp-0.1.6/debian/changelog  2023-08-14 13:06:01.000000000 +0000
+++ rust-oxhttp-0.1.6/debian/changelog  2023-08-17 18:10:33.000000000 +0000
@@ -1,3 +1,10 @@
+rust-oxhttp (0.1.6-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Apply upstream patch for rustls 0.21
+
+ -- Peter Michael Green <plugw...@debian.org>  Thu, 17 Aug 2023 18:10:33 +0000
+
 rust-oxhttp (0.1.6-2) unstable; urgency=medium
 
   * update dh-cargo fork;
diff -Nru rust-oxhttp-0.1.6/debian/patches/0001_update_rustls.patch 
rust-oxhttp-0.1.6/debian/patches/0001_update_rustls.patch
--- rust-oxhttp-0.1.6/debian/patches/0001_update_rustls.patch   1970-01-01 
00:00:00.000000000 +0000
+++ rust-oxhttp-0.1.6/debian/patches/0001_update_rustls.patch   2023-08-17 
18:09:52.000000000 +0000
@@ -0,0 +1,32 @@
+commit 9590e31bfc7db3fe19ed2236d697abefb84f3de3
+Author: Tpt <thoma...@hotmail.fr>
+Date:   Sun Jun 11 21:59:12 2023 +0200
+
+    Upgrades Rustls
+
+diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
+index 4983b10..64e978f 100644
+--- a/.github/workflows/build.yml
++++ b/.github/workflows/build.yml
+@@ -1,6 +1,7 @@
+ name: build
+ 
+-on: [push, pull_request]
++on:
++  - pull_request
+ 
+ jobs:
+   fmt:
+diff --git a/Cargo.toml b/Cargo.toml
+index 2e4c7f0..138dc6a 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -17,7 +17,7 @@ httparse = "1"
+ lazy_static = "1"
+ native-tls = { version = "0.2", optional = true }
+ rayon-core = { version = "1", optional = true }
+-rustls-crate = { version = "0.20", optional = true, package = "rustls" }
++rustls-crate = { version = "0.21", optional = true, package = "rustls" }
+ rustls-native-certs = { version = "0.6", optional = true }
+ url = "2"
+ 
diff -Nru rust-oxhttp-0.1.6/debian/patches/series 
rust-oxhttp-0.1.6/debian/patches/series
--- rust-oxhttp-0.1.6/debian/patches/series     2022-06-24 19:28:17.000000000 
+0000
+++ rust-oxhttp-0.1.6/debian/patches/series     2023-08-17 18:10:18.000000000 
+0000
@@ -1 +1,2 @@
+0001_update_rustls.patch
 2001_disable_doctest.patch

Reply via email to