Bug#952332: kxd: diff for NMU version 0.14-1.1

2020-04-05 Thread Maximiliano Curia

On 2020-04-05 06:38, Håvard Flaget Aasen wrote:

Control: tags 952332 + patch
Control: tags 952332 + pending

Dear maintainer,

I've prepared an NMU for kxd (versioned as 0.14-1.1) and
uploaded it to mentors. Please feel free to tell me if I
should remove it.


Thanks, could you prepare a merge request against
https://salsa.debian.org/debian/kxd ?

Thanks,
--
Saludos /\/\ /\ >< `/


signature.asc
Description: OpenPGP digital signature


Bug#952332: kxd: diff for NMU version 0.14-1.1

2020-04-05 Thread Håvard Flaget Aasen
Control: tags 952332 + patch
Control: tags 952332 + pending

Dear maintainer,

I've prepared an NMU for kxd (versioned as 0.14-1.1) and
uploaded it to mentors. Please feel free to tell me if I
should remove it.

Regards,
Håvard
diff -Nru kxd-0.14/debian/changelog kxd-0.14/debian/changelog
--- kxd-0.14/debian/changelog	2019-10-03 18:28:56.0 +0200
+++ kxd-0.14/debian/changelog	2020-04-05 08:29:46.0 +0200
@@ -1,3 +1,12 @@
+kxd (0.14-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Set absolute path in d/rules closes: #952332
+  * Cherry-pick upstream commit, needed for upstream testsuite.
+0001-tests-Add-missing-conn.getresponse-which-was-causing.patch
+
+ -- Håvard Flaget Aasen   Sun, 05 Apr 2020 08:29:46 +0200
+
 kxd (0.14-1) unstable; urgency=medium
 
   [ Michael Stapelberg ]
diff -Nru kxd-0.14/debian/patches/0001-tests-Add-missing-conn.getresponse-which-was-causing.patch kxd-0.14/debian/patches/0001-tests-Add-missing-conn.getresponse-which-was-causing.patch
--- kxd-0.14/debian/patches/0001-tests-Add-missing-conn.getresponse-which-was-causing.patch	1970-01-01 01:00:00.0 +0100
+++ kxd-0.14/debian/patches/0001-tests-Add-missing-conn.getresponse-which-was-causing.patch	2020-04-05 08:05:44.0 +0200
@@ -0,0 +1,30 @@
+From: Alberto Bertogli 
+Date: Sun, 29 Mar 2020 11:40:46 +0100
+Subject: tests: Add missing conn.getresponse() which was causing false
+ negatives
+
+Somewhere around Python 3.8, http.client.HTTPConnection objects changed
+how result handling was done, and ignored SSL errors until
+.getresponse() was called.
+
+This causes the test_no_local_cert to fail, even though the server is
+responding correctly.
+
+This patch fixes this by adding a .getresponse() call, which forces
+validation of the result and makes the test pass again.
+---
+ tests/run_tests | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/run_tests b/tests/run_tests
+index d6d4ba2..9499bfe 100755
+--- a/tests/run_tests
 b/tests/run_tests
+@@ -407,6 +407,7 @@ class TrickyRequests(TestCase):
+ conn = self.https_connection("localhost", 19840)
+ try:
+ conn.request("GET", "/v1/")
++conn.getresponse()
+ conn.close()
+ except ssl.SSLError as err:
+ self.assertEqual(err.reason, "SSLV3_ALERT_BAD_CERTIFICATE")
diff -Nru kxd-0.14/debian/patches/series kxd-0.14/debian/patches/series
--- kxd-0.14/debian/patches/series	1970-01-01 01:00:00.0 +0100
+++ kxd-0.14/debian/patches/series	2020-04-05 08:05:44.0 +0200
@@ -0,0 +1 @@
+0001-tests-Add-missing-conn.getresponse-which-was-causing.patch
diff -Nru kxd-0.14/debian/rules kxd-0.14/debian/rules
--- kxd-0.14/debian/rules	2019-10-03 18:28:56.0 +0200
+++ kxd-0.14/debian/rules	2020-04-05 08:01:15.0 +0200
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-export GOCACHE=$$(pwd)/debian/cache
+export GOCACHE=$(CURDIR)/debian/cache
 
 %:
 	dh $@