diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-11-24 09:08:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-25 21:55:10 +0000 |
commit | 2071a99eb0fb834283d34fa8ac26522a919d0ecb (patch) | |
tree | 0552e6edb0d47be0594d03970d72f7b4f48e1022 /meta/recipes-devtools | |
parent | 87b121eac3378a5d6c6b800f469d4e0bb155e412 (diff) | |
download | poky-2071a99eb0fb834283d34fa8ac26522a919d0ecb.tar.gz |
apt: drop unneeded chunk from a musl patch, submit the rest upstream
Upstream has inserted guards around the use of offending constant.
(From OE-Core rev: 67cf70f17e9b7afe7ee6416f80545be57714fcd9)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-Fix-musl-build.patch | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/meta/recipes-devtools/apt/apt/0001-Fix-musl-build.patch b/meta/recipes-devtools/apt/apt/0001-Fix-musl-build.patch index a6e8ef1e51..0cefbedd6d 100644 --- a/meta/recipes-devtools/apt/apt/0001-Fix-musl-build.patch +++ b/meta/recipes-devtools/apt/apt/0001-Fix-musl-build.patch | |||
@@ -1,22 +1,18 @@ | |||
1 | From 081c6be2f2f1cd77f399ea414f8d89c107826624 Mon Sep 17 00:00:00 2001 | 1 | From 6b8547161b902b01b639d05a4cdf849d7694556f Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 22 May 2020 15:29:23 +0000 | 3 | Date: Fri, 22 May 2020 15:29:23 +0000 |
4 | Subject: [PATCH] Fix musl build | 4 | Subject: [PATCH] apt-pkg/contrib/srvrec.h: Explicitly include sys/types.h |
5 | 5 | ||
6 | methods/connect.cc: Musl doesn't support AI_IDN flag in netdb.h | 6 | This avoids type errors with musl C library. |
7 | header so define it manually. | ||
8 | apt-pkg/contrib/srvrec.h: Add explicity include of sys/types.h | ||
9 | to avoid errors in types u_int_SIZE. | ||
10 | 7 | ||
11 | Upstream-Status: Pending | 8 | Upstream-Status: Submitted [https://salsa.debian.org/apt-team/apt/-/merge_requests/200] |
12 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
13 | --- | 10 | --- |
14 | apt-pkg/contrib/srvrec.h | 1 + | 11 | apt-pkg/contrib/srvrec.h | 1 + |
15 | methods/connect.cc | 5 +++++ | 12 | 1 file changed, 1 insertion(+) |
16 | 2 files changed, 6 insertions(+) | ||
17 | 13 | ||
18 | diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h | 14 | diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h |
19 | index e22b7a1..b1115f5 100644 | 15 | index e5d0f43..2010184 100644 |
20 | --- a/apt-pkg/contrib/srvrec.h | 16 | --- a/apt-pkg/contrib/srvrec.h |
21 | +++ b/apt-pkg/contrib/srvrec.h | 17 | +++ b/apt-pkg/contrib/srvrec.h |
22 | @@ -9,6 +9,7 @@ | 18 | @@ -9,6 +9,7 @@ |
@@ -27,19 +23,6 @@ index e22b7a1..b1115f5 100644 | |||
27 | #include <string> | 23 | #include <string> |
28 | #include <vector> | 24 | #include <vector> |
29 | #include <arpa/nameser.h> | 25 | #include <arpa/nameser.h> |
30 | diff --git a/methods/connect.cc b/methods/connect.cc | 26 | -- |
31 | index 1d6f891..122df35 100644 | 27 | 2.20.1 |
32 | --- a/methods/connect.cc | 28 | |
33 | +++ b/methods/connect.cc | ||
34 | @@ -42,6 +42,11 @@ | ||
35 | #include "connect.h" | ||
36 | #include "rfc2553emu.h" | ||
37 | #include <apti18n.h> | ||
38 | + | ||
39 | +#ifndef AI_IDN | ||
40 | +#define AI_IDN 0x0040 | ||
41 | +#endif | ||
42 | + | ||
43 | /*}}}*/ | ||
44 | |||
45 | static std::string LastHost; | ||