Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-apps/iproute2/, sys-apps/iproute2/files/
Date: Tue, 30 Jan 2018 20:38:17
Message-Id: 1517344659.08ff23de6c431da7289377616e26015eafd254e7.lluixhi@gentoo
1 commit: 08ff23de6c431da7289377616e26015eafd254e7
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Tue Jan 30 20:37:39 2018 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Tue Jan 30 20:37:39 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=08ff23de
7
8 sys-apps/iproute2: version bump to 4.15.0
9
10 sys-apps/iproute2/Manifest | 3 +-
11 sys-apps/iproute2/files/iproute2-4.15.0-musl.patch | 179 +++++++++++++++++++++
12 sys-apps/iproute2/iproute2-4.14.1-r2.ebuild | 2 +-
13 ...te2-4.14.1-r3.ebuild => iproute2-4.15.0.ebuild} | 5 +-
14 4 files changed, 184 insertions(+), 5 deletions(-)
15
16 diff --git a/sys-apps/iproute2/Manifest b/sys-apps/iproute2/Manifest
17 index ea284a2..0390df9 100644
18 --- a/sys-apps/iproute2/Manifest
19 +++ b/sys-apps/iproute2/Manifest
20 @@ -1 +1,2 @@
21 -DIST iproute2-4.14.1.tar.xz 636876 SHA256 d43ac068afcc350a448f4581b6e292331ef7e4e7aa746e34981582d5fdb10067 SHA512 e593b68c46ef5f98bd6911ee7beb38388a14935a29fefabdeccc96aa012593b6f3a49b3bb1baed7d77e54f1f4a857172e058b73407f4070f158b8713f44f5d2c WHIRLPOOL 42ee7611f3fb1ceb922c606bf11cd4d72cf71020a73f96f5130f07a9cab08f1dbc973cb5924f6a15cf4613dac5b60a3a97583c0e801db960f5039d6d8c0ef095
22 +DIST iproute2-4.14.1.tar.xz 636876 BLAKE2B 232dbe29b9af516d8345c86c044359d3b0cfe73fb88a2ba1dcd05534b52dea37c9155d2b273a4a0d40b55fba8b5503a0fbe5bc71f37864c0a2ba9d6f08b6bf41 SHA512 e593b68c46ef5f98bd6911ee7beb38388a14935a29fefabdeccc96aa012593b6f3a49b3bb1baed7d77e54f1f4a857172e058b73407f4070f158b8713f44f5d2c
23 +DIST iproute2-4.15.0.tar.xz 648836 BLAKE2B e7f3a027ec88de7c6ac82c5529b37fdf22311bc9290e71662bc3b1e32d4cb6a1845e2badb961a21b50b5ed1b9d23130e512a011767183f7df1b33eb05101044b SHA512 bcc54b8dc83d7b0e759a2de77eb38fed483d7f7f82698f482e0259000f2f55ba79c556b721730eb999e85c865ad136fd7549304ebe936545e02e848ba7f698bc
24
25 diff --git a/sys-apps/iproute2/files/iproute2-4.15.0-musl.patch b/sys-apps/iproute2/files/iproute2-4.15.0-musl.patch
26 new file mode 100644
27 index 0000000..bd15130
28 --- /dev/null
29 +++ b/sys-apps/iproute2/files/iproute2-4.15.0-musl.patch
30 @@ -0,0 +1,179 @@
31 +diff -Naur iproute2-4.15.0.orig/include/uapi/linux/if_tunnel.h iproute2-4.15.0/include/uapi/linux/if_tunnel.h
32 +--- iproute2-4.15.0.orig/include/uapi/linux/if_tunnel.h 2018-01-30 12:22:46.392424243 -0800
33 ++++ iproute2-4.15.0/include/uapi/linux/if_tunnel.h 2018-01-30 12:23:57.131422976 -0800
34 +@@ -3,7 +3,6 @@
35 + #define _IF_TUNNEL_H_
36 +
37 + #include <linux/types.h>
38 +-#include <linux/if.h>
39 + #include <linux/ip.h>
40 + #include <linux/in6.h>
41 + #include <asm/byteorder.h>
42 +diff -Naur iproute2-4.15.0.orig/include/uapi/linux/ip6_tunnel.h iproute2-4.15.0/include/uapi/linux/ip6_tunnel.h
43 +--- iproute2-4.15.0.orig/include/uapi/linux/ip6_tunnel.h 2018-01-30 12:22:46.393424243 -0800
44 ++++ iproute2-4.15.0/include/uapi/linux/ip6_tunnel.h 2018-01-30 12:24:05.957422818 -0800
45 +@@ -3,7 +3,6 @@
46 + #define _IP6_TUNNEL_H
47 +
48 + #include <linux/types.h>
49 +-#include <linux/if.h> /* For IFNAMSIZ. */
50 + #include <linux/in6.h> /* For struct in6_addr. */
51 +
52 + #define IPV6_TLV_TNL_ENCAP_LIMIT 4
53 +diff -Naur iproute2-4.15.0.orig/include/uapi/linux/kernel.h iproute2-4.15.0/include/uapi/linux/kernel.h
54 +--- iproute2-4.15.0.orig/include/uapi/linux/kernel.h 2018-01-30 12:22:46.393424243 -0800
55 ++++ iproute2-4.15.0/include/uapi/linux/kernel.h 2018-01-30 12:24:21.576422539 -0800
56 +@@ -2,7 +2,9 @@
57 + #ifndef _LINUX_KERNEL_H
58 + #define _LINUX_KERNEL_H
59 +
60 ++#ifdef __GLIBC__
61 + #include <linux/sysinfo.h>
62 ++#endif
63 +
64 + /*
65 + * 'kernel.h' contains some often-used function prototypes etc
66 +diff -Naur iproute2-4.15.0.orig/include/uapi/linux/libc-compat.h iproute2-4.15.0/include/uapi/linux/libc-compat.h
67 +--- iproute2-4.15.0.orig/include/uapi/linux/libc-compat.h 2018-01-30 12:22:46.393424243 -0800
68 ++++ iproute2-4.15.0/include/uapi/linux/libc-compat.h 2018-01-30 12:33:58.575412206 -0800
69 +@@ -49,47 +49,57 @@
70 + #ifndef _LIBC_COMPAT_H
71 + #define _LIBC_COMPAT_H
72 +
73 +-/* We have included glibc headers... */
74 +-#if defined(__GLIBC__)
75 ++/* We're used from userspace... */
76 ++#if !defined(__KERNEL__)
77 +
78 +-/* Coordinate with glibc net/if.h header. */
79 ++/* Coordinate with libc net/if.h header. */
80 + #if defined(_NET_IF_H) && defined(__USE_MISC)
81 +
82 +-/* GLIBC headers included first so don't define anything
83 ++/* libc headers included first so don't define anything
84 + * that would already be defined. */
85 +
86 + #define __UAPI_DEF_IF_IFCONF 0
87 + #define __UAPI_DEF_IF_IFMAP 0
88 + #define __UAPI_DEF_IF_IFNAMSIZ 0
89 + #define __UAPI_DEF_IF_IFREQ 0
90 +-/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
91 + #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 0
92 ++#if !defined(__GLIBC__)
93 ++#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0
94 ++#else
95 + /* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
96 + #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
97 + #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
98 + #endif /* __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO */
99 ++#endif /* !defined(__GLIBC__) */
100 +
101 + #else /* _NET_IF_H */
102 +
103 + /* Linux headers included first, and we must define everything
104 +- * we need. The expectation is that glibc will check the
105 ++ * we need. The expectation is that libc will check the
106 + * __UAPI_DEF_* defines and adjust appropriately. */
107 +
108 + #define __UAPI_DEF_IF_IFCONF 1
109 + #define __UAPI_DEF_IF_IFMAP 1
110 + #define __UAPI_DEF_IF_IFNAMSIZ 1
111 + #define __UAPI_DEF_IF_IFREQ 1
112 +-/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
113 + #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
114 + /* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
115 + #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
116 +
117 + #endif /* _NET_IF_H */
118 +
119 +-/* Coordinate with glibc netinet/in.h header. */
120 ++/* Coordinate with libc netinet/if_ether.h */
121 ++#ifdef _NETINET_IF_ETHER_H
122 ++#define __UAPI_DEF_ETHHDR 0
123 ++#else
124 ++/* glibc uses __NETINET_IF_ETHER_H and uses the uapi header */
125 ++#define __UAPI_DEF_ETHHDR 1
126 ++#endif /* _NETINET_IF_ETHER_H */
127 ++
128 ++/* Coordinate with libc netinet/in.h header. */
129 + #if defined(_NETINET_IN_H)
130 +
131 +-/* GLIBC headers included first so don't define anything
132 ++/* libc headers included first so don't define anything
133 + * that would already be defined. */
134 + #define __UAPI_DEF_IN_ADDR 0
135 + #define __UAPI_DEF_IN_IPPROTO 0
136 +@@ -99,15 +109,7 @@
137 + #define __UAPI_DEF_IN_CLASS 0
138 +
139 + #define __UAPI_DEF_IN6_ADDR 0
140 +-/* The exception is the in6_addr macros which must be defined
141 +- * if the glibc code didn't define them. This guard matches
142 +- * the guard in glibc/inet/netinet/in.h which defines the
143 +- * additional in6_addr macros e.g. s6_addr16, and s6_addr32. */
144 +-#if defined(__USE_MISC) || defined (__USE_GNU)
145 + #define __UAPI_DEF_IN6_ADDR_ALT 0
146 +-#else
147 +-#define __UAPI_DEF_IN6_ADDR_ALT 1
148 +-#endif
149 + #define __UAPI_DEF_SOCKADDR_IN6 0
150 + #define __UAPI_DEF_IPV6_MREQ 0
151 + #define __UAPI_DEF_IPPROTO_V6 0
152 +@@ -118,7 +120,7 @@
153 + #else
154 +
155 + /* Linux headers included first, and we must define everything
156 +- * we need. The expectation is that glibc will check the
157 ++ * we need. The expectation is that libc will check the
158 + * __UAPI_DEF_* defines and adjust appropriately. */
159 + #define __UAPI_DEF_IN_ADDR 1
160 + #define __UAPI_DEF_IN_IPPROTO 1
161 +@@ -170,7 +172,7 @@
162 + * or we are being included in the kernel, then define everything
163 + * that we need. Check for previous __UAPI_* definitions to give
164 + * unsupported C libraries a way to opt out of any kernel definition. */
165 +-#else /* !defined(__GLIBC__) */
166 ++#else /* defined(__KERNEL__) */
167 +
168 + /* Definitions for if.h */
169 + #ifndef __UAPI_DEF_IF_IFCONF
170 +@@ -185,7 +187,6 @@
171 + #ifndef __UAPI_DEF_IF_IFREQ
172 + #define __UAPI_DEF_IF_IFREQ 1
173 + #endif
174 +-/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
175 + #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS
176 + #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
177 + #endif
178 +@@ -262,7 +263,7 @@
179 + #define __UAPI_DEF_XATTR 1
180 + #endif
181 +
182 +-#endif /* __GLIBC__ */
183 ++#endif /* defined(__KERNEL__) */
184 +
185 + /* Definitions for if_ether.h */
186 + /* allow libcs like musl to deactivate this, glibc does not implement this. */
187 +diff -Naur iproute2-4.15.0.orig/include/uapi/linux/netfilter_ipv4/ip_tables.h iproute2-4.15.0/include/uapi/linux/netfilter_ipv4/ip_tables.h
188 +--- iproute2-4.15.0.orig/include/uapi/linux/netfilter_ipv4/ip_tables.h 2018-01-30 12:22:46.394424243 -0800
189 ++++ iproute2-4.15.0/include/uapi/linux/netfilter_ipv4/ip_tables.h 2018-01-30 12:34:19.157411837 -0800
190 +@@ -18,7 +18,6 @@
191 +
192 + #include <linux/types.h>
193 +
194 +-#include <linux/if.h>
195 + #include <linux/netfilter_ipv4.h>
196 +
197 + #include <linux/netfilter/x_tables.h>
198 +diff -Naur iproute2-4.15.0.orig/tc/f_flower.c iproute2-4.15.0/tc/f_flower.c
199 +--- iproute2-4.15.0.orig/tc/f_flower.c 2018-01-30 12:22:46.367424244 -0800
200 ++++ iproute2-4.15.0/tc/f_flower.c 2018-01-30 12:34:36.182411532 -0800
201 +@@ -14,7 +14,7 @@
202 + #include <unistd.h>
203 + #include <string.h>
204 + #include <net/if.h>
205 +-#include <linux/if_arp.h>
206 ++#include <net/if_arp.h>
207 + #include <linux/if_ether.h>
208 + #include <linux/ip.h>
209 + #include <linux/tc_act/tc_vlan.h>
210
211 diff --git a/sys-apps/iproute2/iproute2-4.14.1-r2.ebuild b/sys-apps/iproute2/iproute2-4.14.1-r2.ebuild
212 index 07bfa51..9ec67f9 100644
213 --- a/sys-apps/iproute2/iproute2-4.14.1-r2.ebuild
214 +++ b/sys-apps/iproute2/iproute2-4.14.1-r2.ebuild
215 @@ -1,4 +1,4 @@
216 -# Copyright 1999-2017 Gentoo Foundation
217 +# Copyright 1999-2018 Gentoo Foundation
218 # Distributed under the terms of the GNU General Public License v2
219
220 EAPI=6
221
222 diff --git a/sys-apps/iproute2/iproute2-4.14.1-r3.ebuild b/sys-apps/iproute2/iproute2-4.15.0.ebuild
223 similarity index 96%
224 rename from sys-apps/iproute2/iproute2-4.14.1-r3.ebuild
225 rename to sys-apps/iproute2/iproute2-4.15.0.ebuild
226 index 24c2b3b..fddcf37 100644
227 --- a/sys-apps/iproute2/iproute2-4.14.1-r3.ebuild
228 +++ b/sys-apps/iproute2/iproute2-4.15.0.ebuild
229 @@ -42,9 +42,8 @@ DEPEND="
230
231 PATCHES=(
232 "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907
233 - "${FILESDIR}"/${P}-fix-tc-actions.patch
234 - "${FILESDIR}"/${P}-configure-nomagic.patch # bug 643722
235 - "${FILESDIR}"/${PN}-4.14.0-musl.patch
236 + "${FILESDIR}"/${PN}-4.14.1-configure-nomagic.patch # bug 643722
237 + "${FILESDIR}"/${PN}-4.15.0-musl.patch
238 )
239
240 src_prepare() {