Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/musl/files/
Date: Fri, 29 Nov 2019 22:08:24
Message-Id: 1575065269.895257bb170e00475394a89e38cc8a0ab33025c7.bman@gentoo
1 commit: 895257bb170e00475394a89e38cc8a0ab33025c7
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Mon Nov 25 12:44:10 2019 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 29 22:07:49 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=895257bb
7
8 sys-libs/musl: remove unused patch
9
10 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
11 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
12
13 .../musl/files/musl-1.1.20-fix-getaddrinfo.patch | 51 ----------------------
14 1 file changed, 51 deletions(-)
15
16 diff --git a/sys-libs/musl/files/musl-1.1.20-fix-getaddrinfo.patch b/sys-libs/musl/files/musl-1.1.20-fix-getaddrinfo.patch
17 deleted file mode 100644
18 index 28d4558b8b6..00000000000
19 --- a/sys-libs/musl/files/musl-1.1.20-fix-getaddrinfo.patch
20 +++ /dev/null
21 @@ -1,51 +0,0 @@
22 -From f381c118b2d4f7d914481d3cdc830ce41369b002 Mon Sep 17 00:00:00 2001
23 -From: Rich Felker <dalias@×××××××.cx>
24 -Date: Wed, 19 Sep 2018 18:03:22 -0400
25 -Subject: fix getaddrinfo regression with AI_ADDRCONFIG on some configurations
26 -
27 -despite not being documented to do so in the standard or Linux
28 -documentation, attempts to udp connect to 127.0.0.1 or ::1 generate
29 -EADDRNOTAVAIL when the loopback device is not configured and there is
30 -no default route for IPv6. this caused getaddrinfo with AI_ADDRCONFIG
31 -to fail with EAI_SYSTEM and EADDRNOTAVAIL on some no-IPv6
32 -configurations, rather than the intended behavior of detecting IPv6 as
33 -unsuppported and producing IPv4-only results.
34 -
35 -previously, only EAFNOSUPPORT was treated as unavailability of the
36 -address family being probed. instead, treat all errors related to
37 -inability to get an address or route as conclusive that the family
38 -being probed is unsupported, and only fail with EAI_SYSTEM on other
39 -errors.
40 -
41 -further improvements may be desirable, such as reporting EAI_AGAIN
42 -instead of EAI_SYSTEM for errors which are expected to be transient,
43 -but this patch should suffice to fix the serious regression.
44 ----
45 - src/network/getaddrinfo.c | 11 ++++++++++-
46 - 1 file changed, 10 insertions(+), 1 deletion(-)
47 -
48 -diff --git a/src/network/getaddrinfo.c b/src/network/getaddrinfo.c
49 -index ba26847a..e33bfa28 100644
50 ---- a/src/network/getaddrinfo.c
51 -+++ b/src/network/getaddrinfo.c
52 -@@ -76,7 +76,16 @@ int getaddrinfo(const char *restrict host, const char *restrict serv, const stru
53 - close(s);
54 - if (!r) continue;
55 - }
56 -- if (errno != EAFNOSUPPORT) return EAI_SYSTEM;
57 -+ switch (errno) {
58 -+ case EADDRNOTAVAIL:
59 -+ case EAFNOSUPPORT:
60 -+ case EHOSTUNREACH:
61 -+ case ENETDOWN:
62 -+ case ENETUNREACH:
63 -+ break;
64 -+ default:
65 -+ return EAI_SYSTEM;
66 -+ }
67 - if (family == tf[i]) return EAI_NONAME;
68 - family = tf[1-i];
69 - }
70 ---
71 -cgit v1.2.1
72 -