Merge ~halves/ubuntu/+source/gnupg2:lp1910432-devel into ubuntu/+source/gnupg2:ubuntu/devel

Proposed by Heitor Alves de Siqueira
Status: Needs review
Proposed branch: ~halves/ubuntu/+source/gnupg2:lp1910432-devel
Merge into: ubuntu/+source/gnupg2:ubuntu/devel
Diff against target: 68 lines (+46/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/dirmngr-handle-EAFNOSUPPORT-at-connect_server.patch (+38/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Dan Streetman (community) Approve
Support Engineering Sponsors Pending
Review via email: mp+396407@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dan Streetman (ddstreet) wrote :

looks good, minor issue with needing separate MR for groovy and hirsute.

review: Needs Fixing
Revision history for this message
Heitor Alves de Siqueira (halves) wrote :

Done! Please let me know if anything else needs to be changed

Revision history for this message
Dan Streetman (ddstreet) wrote :

LGTM, uploaded to h, thanks!

review: Approve
Revision history for this message
Dan Streetman (ddstreet) wrote :

LGTM, uploaded to h, thanks!

review: Approve

Unmerged commits

a46857b... by Heitor Alves de Siqueira

Update debian/changelog

766392a... by Heitor Alves de Siqueira

LP: #1910432

a228060... by Steve Langasek

2.2.20-1ubuntu1 (patches unapplied)

Imported using git-ubuntu import.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 974065a..9bb9319 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+gnupg2 (2.2.20-1ubuntu2) hirsute; urgency=medium
7+
8+ * d/p/dirmngr-handle-EAFNOSUPPORT-at-connect_server.patch:
9+ - Fix IPv6 connectivity for dirmngr (LP: #1910432)
10+
11+ -- Heitor Alves de Siqueira <halves@canonical.com> Sat, 16 Jan 2021 14:53:14 +0000
12+
13 gnupg2 (2.2.20-1ubuntu1) groovy; urgency=low
14
15 * Merge from Debian unstable. Remaining changes:
16diff --git a/debian/patches/dirmngr-handle-EAFNOSUPPORT-at-connect_server.patch b/debian/patches/dirmngr-handle-EAFNOSUPPORT-at-connect_server.patch
17new file mode 100644
18index 0000000..15a96a6
19--- /dev/null
20+++ b/debian/patches/dirmngr-handle-EAFNOSUPPORT-at-connect_server.patch
21@@ -0,0 +1,38 @@
22+From ca937cf390662b830d4fc5d295e69b24b1778050 Mon Sep 17 00:00:00 2001
23+From: NIIBE Yutaka <gniibe@fsij.org>
24+Date: Mon, 13 Jul 2020 10:00:58 +0900
25+Subject: [PATCH] dirmngr: Handle EAFNOSUPPORT at connect_server.
26+
27+* dirmngr/http.c (connect_server): Skip server with EAFNOSUPPORT.
28+
29+--
30+
31+GnuPG-bug-id: 4977
32+Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
33+
34+Origin: backport, https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=109d16e8f644
35+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1910432
36+---
37+ dirmngr/http.c | 9 +++++++++
38+ 1 file changed, 9 insertions(+)
39+
40+Index: gnupg2/dirmngr/http.c
41+===================================================================
42+--- gnupg2.orig/dirmngr/http.c
43++++ gnupg2/dirmngr/http.c
44+@@ -3005,6 +3005,15 @@ connect_server (const char *server, unsi
45+ sock = my_sock_new_for_addr (ai->addr, ai->socktype, ai->protocol);
46+ if (sock == ASSUAN_INVALID_FD)
47+ {
48++ if (errno == EAFNOSUPPORT)
49++ {
50++ if (ai->family == AF_INET)
51++ v4_valid = 0;
52++ if (ai->family == AF_INET6)
53++ v6_valid = 0;
54++ continue;
55++ }
56++
57+ err = gpg_err_make (default_errsource,
58+ gpg_err_code_from_syserror ());
59+ log_error ("error creating socket: %s\n", gpg_strerror (err));
60diff --git a/debian/patches/series b/debian/patches/series
61index a0f1baf..af77b88 100644
62--- a/debian/patches/series
63+++ b/debian/patches/series
64@@ -20,3 +20,4 @@ Use-hkps-keys.openpgp.org-as-the-default-keyserver.patch
65 Make-gpg-zip-use-tar-from-PATH.patch
66 gpg-drop-import-clean-from-default-keyserver-import-optio.patch
67 dirmngr-honor-http-proxy.patch
68+dirmngr-handle-EAFNOSUPPORT-at-connect_server.patch

Subscribers

People subscribed via source and target branches