Source: python-httptools
Version: 0.0.11-1
Severity: important
Tags: patch

Dear Maintainer,

the http-parser library version 2.9 was accepted to experimental today,
and re-building all rdeps I noticed your package will fail to build in
the future due to a failure in the test suite.

This has already been fixed upstream. Please upgrade to at least 0.0.13,
or cherry-pick commit ebcc0fd, feel free to borrow from the patch
attached.

Regards,

    Christoph
From d63280b950bfe0a875c45b4d73f4d18e8c91761f Mon Sep 17 00:00:00 2001
From: Christoph Biedl <debian.a...@manchmal.in-ulm.de>
Date: Thu, 1 Aug 2019 21:46:24 +0200
Subject: [PATCH 1/2] Cherry-pick "Fix a unittest" to fix build error with
 http-parser 2.9

---
 debian/control                                |  2 +-
 ...-unittest-bump-the-version-to-0-0-13.patch | 19 +++++++++++++++++++
 debian/patches/series                         |  1 +
 3 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/cherry-pick.v0.0.11-6-gebcc0fd.fix-a-unittest-bump-the-version-to-0-0-13.patch

diff --git a/debian/control b/debian/control
index 4928709..0dcad52 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Build-Depends:
  cython3,
  debhelper (>= 11),
  dh-python,
- libhttp-parser-dev,
+ libhttp-parser-dev (>= 2.9.2),
  python3-all-dev,
  python3-pytest,
  python3-setuptools,
diff --git a/debian/patches/cherry-pick.v0.0.11-6-gebcc0fd.fix-a-unittest-bump-the-version-to-0-0-13.patch b/debian/patches/cherry-pick.v0.0.11-6-gebcc0fd.fix-a-unittest-bump-the-version-to-0-0-13.patch
new file mode 100644
index 0000000..30bb954
--- /dev/null
+++ b/debian/patches/cherry-pick.v0.0.11-6-gebcc0fd.fix-a-unittest-bump-the-version-to-0-0-13.patch
@@ -0,0 +1,19 @@
+Subject: Fix a unittest; bump the version to 0.0.13
+Origin: v0.0.11-6-gebcc0fd <https://github.com/MagicStack/httptools/commit/ebcc0fd>
+Upstream-Author: Yury Selivanov <y...@magic.io>
+Date: Mon Feb 25 14:55:35 2019 -0500
+
+--- a/tests/test_parser.py
++++ b/tests/test_parser.py
+@@ -582,9 +582,8 @@
+             (None, None, None, b'/a/b/c', b'b=1&', None, None))
+ 
+     def test_parser_url_2(self):
+-        self.assertEqual(
+-            self.parse(b''),
+-            (None, None, None, None, None, None, None))
++        with self.assertRaises(httptools.HttpParserInvalidURLError):
++            self.parse(b'')
+ 
+     def test_parser_url_3(self):
+         with self.assertRaises(httptools.HttpParserInvalidURLError):
diff --git a/debian/patches/series b/debian/patches/series
index 4e746b7..d13e76a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002-Use-http_parser.h-from-distribution-installation.patch
 0003-Fix-unit-tests-on-invalid-data-after-connection-clos.patch
 0004-Do-not-install-package-data.patch
+cherry-pick.v0.0.11-6-gebcc0fd.fix-a-unittest-bump-the-version-to-0-0-13.patch
-- 
2.22.0

From 5581a99887dadf412d5a25280d5faa3fbb6846b2 Mon Sep 17 00:00:00 2001
From: Christoph Biedl <debian.a...@manchmal.in-ulm.de>
Date: Thu, 1 Aug 2019 21:46:59 +0200
Subject: [PATCH 2/2] python-httptools 0.0.11-1.1

---
 debian/changelog | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 26a11d9..a501a47 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+python-httptools (0.0.11-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Cherry-pick "Fix a unittest" to fix build error with
+    http-parser 2.9
+
+ -- Christoph Biedl <debian.a...@manchmal.in-ulm.de>  Thu, 01 Aug 2019 21:46:59 +0200
+
 python-httptools (0.0.11-1) unstable; urgency=low
 
   * Initial release (Closes: #911498).
-- 
2.22.0

Attachment: signature.asc
Description: PGP signature

Reply via email to