1 |
commit: 7355c99b8c22fcd81e1c7513cbe066ed015a8f10 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jun 11 17:46:42 2018 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Jun 11 17:46:42 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=7355c99b |
7 |
|
8 |
sys-apps/iproute2: refresh patch |
9 |
|
10 |
sys-apps/iproute2/files/iproute2-4.17.0-musl.patch | 268 +++++++++++++++++++++ |
11 |
sys-apps/iproute2/iproute2-4.17.0.ebuild | 2 +- |
12 |
2 files changed, 269 insertions(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/sys-apps/iproute2/files/iproute2-4.17.0-musl.patch b/sys-apps/iproute2/files/iproute2-4.17.0-musl.patch |
15 |
new file mode 100644 |
16 |
index 0000000..2a75596 |
17 |
--- /dev/null |
18 |
+++ b/sys-apps/iproute2/files/iproute2-4.17.0-musl.patch |
19 |
@@ -0,0 +1,268 @@ |
20 |
+diff -Naur iproute2-4.17.0.orig/include/uapi/linux/if_tunnel.h iproute2-4.17.0/include/uapi/linux/if_tunnel.h |
21 |
+--- iproute2-4.17.0.orig/include/uapi/linux/if_tunnel.h 2018-06-11 10:31:44.723159108 -0700 |
22 |
++++ iproute2-4.17.0/include/uapi/linux/if_tunnel.h 2018-06-11 10:32:17.676158518 -0700 |
23 |
+@@ -3,7 +3,6 @@ |
24 |
+ #define _IF_TUNNEL_H_ |
25 |
+ |
26 |
+ #include <linux/types.h> |
27 |
+-#include <linux/if.h> |
28 |
+ #include <linux/ip.h> |
29 |
+ #include <linux/in6.h> |
30 |
+ #include <asm/byteorder.h> |
31 |
+diff -Naur iproute2-4.17.0.orig/include/uapi/linux/ip6_tunnel.h iproute2-4.17.0/include/uapi/linux/ip6_tunnel.h |
32 |
+--- iproute2-4.17.0.orig/include/uapi/linux/ip6_tunnel.h 2018-06-11 10:31:44.722159108 -0700 |
33 |
++++ iproute2-4.17.0/include/uapi/linux/ip6_tunnel.h 2018-06-11 10:32:24.676158393 -0700 |
34 |
+@@ -3,7 +3,6 @@ |
35 |
+ #define _IP6_TUNNEL_H |
36 |
+ |
37 |
+ #include <linux/types.h> |
38 |
+-#include <linux/if.h> /* For IFNAMSIZ. */ |
39 |
+ #include <linux/in6.h> /* For struct in6_addr. */ |
40 |
+ |
41 |
+ #define IPV6_TLV_TNL_ENCAP_LIMIT 4 |
42 |
+diff -Naur iproute2-4.17.0.orig/include/uapi/linux/kernel.h iproute2-4.17.0/include/uapi/linux/kernel.h |
43 |
+--- iproute2-4.17.0.orig/include/uapi/linux/kernel.h 2018-06-11 10:31:44.722159108 -0700 |
44 |
++++ iproute2-4.17.0/include/uapi/linux/kernel.h 2018-06-11 10:32:41.676158088 -0700 |
45 |
+@@ -2,7 +2,9 @@ |
46 |
+ #ifndef _LINUX_KERNEL_H |
47 |
+ #define _LINUX_KERNEL_H |
48 |
+ |
49 |
++#ifdef __GLIBC__ |
50 |
+ #include <linux/sysinfo.h> |
51 |
++#endif |
52 |
+ |
53 |
+ /* |
54 |
+ * 'kernel.h' contains some often-used function prototypes etc |
55 |
+diff -Naur iproute2-4.17.0.orig/include/uapi/linux/libc-compat.h iproute2-4.17.0/include/uapi/linux/libc-compat.h |
56 |
+--- iproute2-4.17.0.orig/include/uapi/linux/libc-compat.h 2018-06-11 10:31:44.721159108 -0700 |
57 |
++++ iproute2-4.17.0/include/uapi/linux/libc-compat.h 2018-06-11 10:37:37.376152793 -0700 |
58 |
+@@ -49,47 +49,57 @@ |
59 |
+ #ifndef _LIBC_COMPAT_H |
60 |
+ #define _LIBC_COMPAT_H |
61 |
+ |
62 |
+-/* We have included glibc headers... */ |
63 |
+-#if defined(__GLIBC__) |
64 |
++/* We're used from userspace... */ |
65 |
++#if !defined(__KERNEL__) |
66 |
+ |
67 |
+-/* Coordinate with glibc net/if.h header. */ |
68 |
++/* Coordinate with libc net/if.h header. */ |
69 |
+ #if defined(_NET_IF_H) && defined(__USE_MISC) |
70 |
+ |
71 |
+-/* GLIBC headers included first so don't define anything |
72 |
++/* libc headers included first so don't define anything |
73 |
+ * that would already be defined. */ |
74 |
+ |
75 |
+ #define __UAPI_DEF_IF_IFCONF 0 |
76 |
+ #define __UAPI_DEF_IF_IFMAP 0 |
77 |
+ #define __UAPI_DEF_IF_IFNAMSIZ 0 |
78 |
+ #define __UAPI_DEF_IF_IFREQ 0 |
79 |
+-/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */ |
80 |
+ #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 0 |
81 |
++#if !defined(__GLIBC__) |
82 |
++#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0 |
83 |
++#else |
84 |
+ /* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */ |
85 |
+ #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO |
86 |
+ #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1 |
87 |
+ #endif /* __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO */ |
88 |
++#endif /* !defined(__GLIBC__) */ |
89 |
+ |
90 |
+ #else /* _NET_IF_H */ |
91 |
+ |
92 |
+ /* Linux headers included first, and we must define everything |
93 |
+- * we need. The expectation is that glibc will check the |
94 |
++ * we need. The expectation is that libc will check the |
95 |
+ * __UAPI_DEF_* defines and adjust appropriately. */ |
96 |
+ |
97 |
+ #define __UAPI_DEF_IF_IFCONF 1 |
98 |
+ #define __UAPI_DEF_IF_IFMAP 1 |
99 |
+ #define __UAPI_DEF_IF_IFNAMSIZ 1 |
100 |
+ #define __UAPI_DEF_IF_IFREQ 1 |
101 |
+-/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */ |
102 |
+ #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1 |
103 |
+ /* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */ |
104 |
+ #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1 |
105 |
+ |
106 |
+ #endif /* _NET_IF_H */ |
107 |
+ |
108 |
+-/* Coordinate with glibc netinet/in.h header. */ |
109 |
++/* Coordinate with libc netinet/if_ether.h */ |
110 |
++#ifdef _NETINET_IF_ETHER_H |
111 |
++#define __UAPI_DEF_ETHHDR 0 |
112 |
++#else |
113 |
++/* glibc uses __NETINET_IF_ETHER_H and uses the uapi header */ |
114 |
++#define __UAPI_DEF_ETHHDR 1 |
115 |
++#endif /* _NETINET_IF_ETHER_H */ |
116 |
++ |
117 |
++/* Coordinate with libc netinet/in.h header. */ |
118 |
+ #if defined(_NETINET_IN_H) |
119 |
+ |
120 |
+-/* GLIBC headers included first so don't define anything |
121 |
++/* libc headers included first so don't define anything |
122 |
+ * that would already be defined. */ |
123 |
+ #define __UAPI_DEF_IN_ADDR 0 |
124 |
+ #define __UAPI_DEF_IN_IPPROTO 0 |
125 |
+@@ -99,15 +109,7 @@ |
126 |
+ #define __UAPI_DEF_IN_CLASS 0 |
127 |
+ |
128 |
+ #define __UAPI_DEF_IN6_ADDR 0 |
129 |
+-/* The exception is the in6_addr macros which must be defined |
130 |
+- * if the glibc code didn't define them. This guard matches |
131 |
+- * the guard in glibc/inet/netinet/in.h which defines the |
132 |
+- * additional in6_addr macros e.g. s6_addr16, and s6_addr32. */ |
133 |
+-#if defined(__USE_MISC) || defined (__USE_GNU) |
134 |
+ #define __UAPI_DEF_IN6_ADDR_ALT 0 |
135 |
+-#else |
136 |
+-#define __UAPI_DEF_IN6_ADDR_ALT 1 |
137 |
+-#endif |
138 |
+ #define __UAPI_DEF_SOCKADDR_IN6 0 |
139 |
+ #define __UAPI_DEF_IPV6_MREQ 0 |
140 |
+ #define __UAPI_DEF_IPPROTO_V6 0 |
141 |
+@@ -118,7 +120,7 @@ |
142 |
+ #else |
143 |
+ |
144 |
+ /* Linux headers included first, and we must define everything |
145 |
+- * we need. The expectation is that glibc will check the |
146 |
++ * we need. The expectation is that libc will check the |
147 |
+ * __UAPI_DEF_* defines and adjust appropriately. */ |
148 |
+ #define __UAPI_DEF_IN_ADDR 1 |
149 |
+ #define __UAPI_DEF_IN_IPPROTO 1 |
150 |
+@@ -128,7 +130,7 @@ |
151 |
+ #define __UAPI_DEF_IN_CLASS 1 |
152 |
+ |
153 |
+ #define __UAPI_DEF_IN6_ADDR 1 |
154 |
+-/* We unconditionally define the in6_addr macros and glibc must |
155 |
++/* We unconditionally define the in6_addr macros and libc must |
156 |
+ * coordinate. */ |
157 |
+ #define __UAPI_DEF_IN6_ADDR_ALT 1 |
158 |
+ #define __UAPI_DEF_SOCKADDR_IN6 1 |
159 |
+@@ -170,7 +172,7 @@ |
160 |
+ * or we are being included in the kernel, then define everything |
161 |
+ * that we need. Check for previous __UAPI_* definitions to give |
162 |
+ * unsupported C libraries a way to opt out of any kernel definition. */ |
163 |
+-#else /* !defined(__GLIBC__) */ |
164 |
++#else /* defined(__KERNEL__) */ |
165 |
+ |
166 |
+ /* Definitions for if.h */ |
167 |
+ #ifndef __UAPI_DEF_IF_IFCONF |
168 |
+@@ -185,7 +187,6 @@ |
169 |
+ #ifndef __UAPI_DEF_IF_IFREQ |
170 |
+ #define __UAPI_DEF_IF_IFREQ 1 |
171 |
+ #endif |
172 |
+-/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */ |
173 |
+ #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS |
174 |
+ #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1 |
175 |
+ #endif |
176 |
+@@ -194,6 +195,11 @@ |
177 |
+ #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1 |
178 |
+ #endif |
179 |
+ |
180 |
++/* Definitions for netinet/if_ether.h */ |
181 |
++#ifndef __UAPI_DEF_ETHHDR |
182 |
++#define __UAPI_DEF_ETHHDR 1 |
183 |
++#endif |
184 |
++ |
185 |
+ /* Definitions for in.h */ |
186 |
+ #ifndef __UAPI_DEF_IN_ADDR |
187 |
+ #define __UAPI_DEF_IN_ADDR 1 |
188 |
+@@ -262,6 +268,6 @@ |
189 |
+ #define __UAPI_DEF_XATTR 1 |
190 |
+ #endif |
191 |
+ |
192 |
+-#endif /* __GLIBC__ */ |
193 |
++#endif /* defined(__KERNEL__) */ |
194 |
+ |
195 |
+ #endif /* _LIBC_COMPAT_H */ |
196 |
+diff -Naur iproute2-4.17.0.orig/include/uapi/linux/netfilter_ipv4/ip_tables.h iproute2-4.17.0/include/uapi/linux/netfilter_ipv4/ip_tables.h |
197 |
+--- iproute2-4.17.0.orig/include/uapi/linux/netfilter_ipv4/ip_tables.h 2018-06-11 10:31:44.722159108 -0700 |
198 |
++++ iproute2-4.17.0/include/uapi/linux/netfilter_ipv4/ip_tables.h 2018-06-11 10:38:07.727152249 -0700 |
199 |
+@@ -18,7 +18,6 @@ |
200 |
+ |
201 |
+ #include <linux/types.h> |
202 |
+ |
203 |
+-#include <linux/if.h> |
204 |
+ #include <linux/netfilter_ipv4.h> |
205 |
+ |
206 |
+ #include <linux/netfilter/x_tables.h> |
207 |
+diff -Naur iproute2-4.17.0.orig/rdma/include/uapi/rdma/rdma_user_cm.h iproute2-4.17.0/rdma/include/uapi/rdma/rdma_user_cm.h |
208 |
+--- iproute2-4.17.0.orig/rdma/include/uapi/rdma/rdma_user_cm.h 2018-06-11 10:31:44.742159108 -0700 |
209 |
++++ iproute2-4.17.0/rdma/include/uapi/rdma/rdma_user_cm.h 2018-06-11 10:44:48.746145068 -0700 |
210 |
+@@ -34,9 +34,9 @@ |
211 |
+ #ifndef RDMA_USER_CM_H |
212 |
+ #define RDMA_USER_CM_H |
213 |
+ |
214 |
++#include <netinet/in.h> |
215 |
+ #include <linux/types.h> |
216 |
+ #include <linux/socket.h> |
217 |
+-#include <linux/in6.h> |
218 |
+ #include <rdma/ib_user_verbs.h> |
219 |
+ #include <rdma/ib_user_sa.h> |
220 |
+ |
221 |
+diff -Naur iproute2-4.17.0.orig/tc/f_flower.c iproute2-4.17.0/tc/f_flower.c |
222 |
+--- iproute2-4.17.0.orig/tc/f_flower.c 2018-06-11 10:31:44.746159108 -0700 |
223 |
++++ iproute2-4.17.0/tc/f_flower.c 2018-06-11 10:38:29.389151861 -0700 |
224 |
+@@ -14,7 +14,7 @@ |
225 |
+ #include <unistd.h> |
226 |
+ #include <string.h> |
227 |
+ #include <net/if.h> |
228 |
+-#include <linux/if_arp.h> |
229 |
++#include <net/if_arp.h> |
230 |
+ #include <linux/if_ether.h> |
231 |
+ #include <linux/ip.h> |
232 |
+ #include <linux/tc_act/tc_vlan.h> |
233 |
+diff -Naur iproute2-4.17.0.orig/tc/m_mirred.c iproute2-4.17.0/tc/m_mirred.c |
234 |
+--- iproute2-4.17.0.orig/tc/m_mirred.c 2018-06-11 10:31:44.745159108 -0700 |
235 |
++++ iproute2-4.17.0/tc/m_mirred.c 2018-06-11 10:38:41.545151644 -0700 |
236 |
+@@ -17,6 +17,7 @@ |
237 |
+ #include <unistd.h> |
238 |
+ #include <fcntl.h> |
239 |
+ #include <sys/socket.h> |
240 |
++#include <net/if.h> |
241 |
+ #include <netinet/in.h> |
242 |
+ #include <arpa/inet.h> |
243 |
+ #include <string.h> |
244 |
+diff -Naur iproute2-4.17.0.orig/tc/tc_class.c iproute2-4.17.0/tc/tc_class.c |
245 |
+--- iproute2-4.17.0.orig/tc/tc_class.c 2018-06-11 10:31:44.743159108 -0700 |
246 |
++++ iproute2-4.17.0/tc/tc_class.c 2018-06-11 10:38:53.705151426 -0700 |
247 |
+@@ -15,6 +15,7 @@ |
248 |
+ #include <unistd.h> |
249 |
+ #include <fcntl.h> |
250 |
+ #include <sys/socket.h> |
251 |
++#include <net/if.h> |
252 |
+ #include <netinet/in.h> |
253 |
+ #include <arpa/inet.h> |
254 |
+ #include <string.h> |
255 |
+diff -Naur iproute2-4.17.0.orig/tc/tc_filter.c iproute2-4.17.0/tc/tc_filter.c |
256 |
+--- iproute2-4.17.0.orig/tc/tc_filter.c 2018-06-11 10:31:44.743159108 -0700 |
257 |
++++ iproute2-4.17.0/tc/tc_filter.c 2018-06-11 10:39:04.147151239 -0700 |
258 |
+@@ -15,6 +15,7 @@ |
259 |
+ #include <unistd.h> |
260 |
+ #include <fcntl.h> |
261 |
+ #include <sys/socket.h> |
262 |
++#include <net/if.h> |
263 |
+ #include <netinet/in.h> |
264 |
+ #include <arpa/inet.h> |
265 |
+ #include <string.h> |
266 |
+diff -Naur iproute2-4.17.0.orig/tc/tc_qdisc.c iproute2-4.17.0/tc/tc_qdisc.c |
267 |
+--- iproute2-4.17.0.orig/tc/tc_qdisc.c 2018-06-11 10:31:44.743159108 -0700 |
268 |
++++ iproute2-4.17.0/tc/tc_qdisc.c 2018-06-11 10:39:17.997150991 -0700 |
269 |
+@@ -15,6 +15,7 @@ |
270 |
+ #include <unistd.h> |
271 |
+ #include <fcntl.h> |
272 |
+ #include <sys/socket.h> |
273 |
++#include <net/if.h> |
274 |
+ #include <netinet/in.h> |
275 |
+ #include <arpa/inet.h> |
276 |
+ #include <string.h> |
277 |
+diff -Naur iproute2-4.17.0.orig/tc/tc_util.h iproute2-4.17.0/tc/tc_util.h |
278 |
+--- iproute2-4.17.0.orig/tc/tc_util.h 2018-06-11 10:31:44.743159108 -0700 |
279 |
++++ iproute2-4.17.0/tc/tc_util.h 2018-06-11 10:39:25.558150855 -0700 |
280 |
+@@ -4,7 +4,6 @@ |
281 |
+ |
282 |
+ #define MAX_MSG 16384 |
283 |
+ #include <limits.h> |
284 |
+-#include <linux/if.h> |
285 |
+ |
286 |
+ #include <linux/pkt_sched.h> |
287 |
+ #include <linux/pkt_cls.h> |
288 |
|
289 |
diff --git a/sys-apps/iproute2/iproute2-4.17.0.ebuild b/sys-apps/iproute2/iproute2-4.17.0.ebuild |
290 |
index 7157a09..03b2299 100644 |
291 |
--- a/sys-apps/iproute2/iproute2-4.17.0.ebuild |
292 |
+++ b/sys-apps/iproute2/iproute2-4.17.0.ebuild |
293 |
@@ -44,7 +44,7 @@ DEPEND=" |
294 |
PATCHES=( |
295 |
"${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 |
296 |
"${FILESDIR}"/${PN}-4.16.0-configure-nomagic.patch # bug 643722 |
297 |
- "${FILESDIR}"/${PN}-4.15.0-musl.patch |
298 |
+ "${FILESDIR}"/${P}-musl.patch |
299 |
) |
300 |
|
301 |
src_prepare() { |