summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-11-24 09:08:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-25 21:55:10 +0000
commit2071a99eb0fb834283d34fa8ac26522a919d0ecb (patch)
tree0552e6edb0d47be0594d03970d72f7b4f48e1022 /meta/recipes-devtools/apt
parent87b121eac3378a5d6c6b800f469d4e0bb155e412 (diff)
downloadpoky-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/apt')
-rw-r--r--meta/recipes-devtools/apt/apt/0001-Fix-musl-build.patch35
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 @@
1From 081c6be2f2f1cd77f399ea414f8d89c107826624 Mon Sep 17 00:00:00 2001 1From 6b8547161b902b01b639d05a4cdf849d7694556f Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 22 May 2020 15:29:23 +0000 3Date: Fri, 22 May 2020 15:29:23 +0000
4Subject: [PATCH] Fix musl build 4Subject: [PATCH] apt-pkg/contrib/srvrec.h: Explicitly include sys/types.h
5 5
6methods/connect.cc: Musl doesn't support AI_IDN flag in netdb.h 6This avoids type errors with musl C library.
7header so define it manually.
8apt-pkg/contrib/srvrec.h: Add explicity include of sys/types.h
9to avoid errors in types u_int_SIZE.
10 7
11Upstream-Status: Pending 8Upstream-Status: Submitted [https://salsa.debian.org/apt-team/apt/-/merge_requests/200]
12Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 9Signed-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
18diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h 14diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h
19index e22b7a1..b1115f5 100644 15index 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>
30diff --git a/methods/connect.cc b/methods/connect.cc 26--
31index 1d6f891..122df35 100644 272.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;