Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-kernel/linux-headers/files/, sys-kernel/linux-headers/
Date: Mon, 04 May 2020 02:05:35
Message-Id: 1588557753.980e1ba4c1636b97bcea88710e2202945512c203.anarchy@gentoo
1 commit: 980e1ba4c1636b97bcea88710e2202945512c203
2 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 4 02:02:33 2020 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Mon May 4 02:02:33 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=980e1ba4
7
8 sys-kernel/linux-headers: moved to 5.4::gentoo, current stable
9
10 Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>
11
12 sys-kernel/linux-headers/Manifest | 14 --
13 .../files/libc-4.15-portability.patch | 165 -------------------
14 .../files/libc-4.16-portability.patch | 146 -----------------
15 .../linux-headers/files/libc-4.3-portability.patch | 120 --------------
16 .../linux-headers/files/libc-4.8-portability.patch | 176 ---------------------
17 .../linux-headers/linux-headers-4.14-r1.ebuild | 58 -------
18 .../linux-headers/linux-headers-4.15-r1.ebuild | 58 -------
19 .../linux-headers/linux-headers-4.16-r2.ebuild | 61 -------
20 sys-kernel/linux-headers/linux-headers-4.17.ebuild | 58 -------
21 sys-kernel/linux-headers/linux-headers-4.18.ebuild | 61 -------
22 sys-kernel/linux-headers/linux-headers-4.19.ebuild | 61 -------
23 sys-kernel/linux-headers/linux-headers-4.20.ebuild | 61 -------
24 sys-kernel/linux-headers/metadata.xml | 11 --
25 13 files changed, 1050 deletions(-)
26
27 diff --git a/sys-kernel/linux-headers/Manifest b/sys-kernel/linux-headers/Manifest
28 deleted file mode 100644
29 index 139a59c..0000000
30 --- a/sys-kernel/linux-headers/Manifest
31 +++ /dev/null
32 @@ -1,14 +0,0 @@
33 -DIST gentoo-headers-4.14-1.tar.xz 4080 BLAKE2B 5d8bb4453d3b0b739922a86e0e45120fe5ad57c3310ff6a94830a3a7561fb3b5eef7805ff171bdf0d5582fc91848fad948162e63ec4922280c8ed68ba58d50e1 SHA512 e0f806db641c99f3f71e27fde29705685745c9c03b901c943cab5af84e2e9c3af96f5d2d10d8f5328ec7e4dba28b378f534317bf1bee597d429557b981f0a865
34 -DIST gentoo-headers-4.15-1.tar.xz 4068 BLAKE2B fc99b99637a11dc0cc6b4d79be3e32242f4b4f3c86a4618b3a51839e902ebad045b335f531ca41c10a6a597111f2cf77a0ae17518fb17a8441b26f1bd98c19e7 SHA512 cb973625381ac0115344d9aa1ddd927d75f0c11961526844a9da6a0aebcd28b488a7af3b423ac8358808d998d9d00d51156780905a04c01c6c512215cad6de7d
35 -DIST gentoo-headers-4.16-1.tar.xz 4044 BLAKE2B c35efb14266d7d7f06de79f584c6e13a700c38793d7df399e668d5de269088d8a441a10e9d0b7acc5b6d1a116343d516aba58a4823cf51845fe9913dea81cb76 SHA512 a1fdf775bc27e5db2ccf1f86f12e78a25a4127673eb0a87639d548dc6246b81e5df0e8d56c0314ba833fe82d2825f8620addd408782e2f5152fb0b056b870d7c
36 -DIST gentoo-headers-4.17-1.tar.xz 4072 BLAKE2B 7de125ac87b0344a5ff7dfbbe3d15d62cd3364116750e35b72d9e404512267a497df1ce8c52df0ba97c836df68287fe239bf29fec25d43b11be67aa17833c097 SHA512 0a837b227b7e923232438f1961535fc9becb6ed4c95290da76631489ce318a875bd3cd12ec110dedf77026c5cb9761cf8ae5c9fcf2abd736f0f7b7249228efdd
37 -DIST gentoo-headers-4.18-1.tar.xz 4040 BLAKE2B fc4462bc8e59a58658c6bd2669840d7105f6bcde5e7cc2633f53ae4aaf44a67aebef24d944d9d3edb95abb4110ddeeb86a6fc0cbebcf6cbe23b59b97c16a0daf SHA512 8f58df3a5e5bf26e06c300354ec1e468f40593601e6645dc1b51491f5a678020598c1c72f72e616b499f503d98da4d4bf9cdf804a15cac73f51b7877756dd7fb
38 -DIST gentoo-headers-4.19-1.tar.xz 4040 BLAKE2B 4ccaf4fb6bde84f0b1f29534cf2f6effca48cb81d63b33086a1ec667069bcb57a3c3d5697c50bff8521343954d01d9c27139d62a9cf2c9f5f12bc0461441f4af SHA512 511accdfd104d9cc84b568132f1eb822f97d35120a438768c313c2cc2651197414dae7af05db81e26b32fb4febbf1e0812030fcb98395f6f65271f6605dc7bb6
39 -DIST gentoo-headers-4.20-1.tar.xz 4040 BLAKE2B 05f8cae4014a6f0ad926e704d5272b05228b91e29a4e14269695cd665110c054a69f0ecab5dec5d23c430cce0726aa7c5c34c85edde0df34dd0e7f8dd5ff7cb6 SHA512 19fa005b648e7dead85edc1b779595c392c28b4699cc4352e6996bbe37fb49de4d2d6b632303338e4db99a4e2e01b56ba1f3777646a416358dc509fb15623f99
40 -DIST gentoo-headers-base-4.14.tar.xz 8017944 BLAKE2B e967a3f26fa002f62af72c165cf960e855f5d84dd105b3f136e5ae24f4cdfc9e5f8b217a83955b325ca4bd6bda0a9d4c4de02d8d79fd4aa72191bc63db96183a SHA512 2a4e83a9ee36ffa85b59ebac1e12f4f1c572825b767928a42c4748d924d04f0536bab4d9375ca68c11ad867c226f386c40c7c4d0158d1ab00c838eb5b2f9f21a
41 -DIST gentoo-headers-base-4.15.tar.xz 8199628 BLAKE2B 79a4f694a8335ed4bf1df94ab7829f41d3476165d0ce822a13e47461d7e3ee4cdb5e88acb9960a92ba1142adeb9951c19e17405c37b80d461b8577c7d1dfa37a SHA512 7698ae90e356cb6105d3b1fc5351264774428b5caa405e8695925965ab2ff3a08c0dfe3587a69a87405ecc45c6cd3040c3a9f751d6e6dc8eddf8b28ded4e2584
42 -DIST gentoo-headers-base-4.16-r1.tar.xz 8227040 BLAKE2B 95b2d64a614430e49d849ab54c58cbc3a850faea1bb5d9f7f43733d7b745ceb5ea3d1f8cc4dbb36c20797ae7d10bd736b99d17f5bfd0cdb90ecedb4eeb0f8610 SHA512 9b7cc82a322bd43dbf07c63d465200c87b838252e449028a363f3ff10921fe3889b503f20184168c7413d792c3d33b4324d89c89b95c8143a4a3c9c3e7e2d28e
43 -DIST gentoo-headers-base-4.17.tar.xz 7908432 BLAKE2B b0f39145db10dba1998e3facfb0565dd240ba26ce4b2744cfaaca8cfa2890f70a69cf65464163e053a05b0bf4d464f251d90f1cc266de604da2f8dc0889b34c3 SHA512 4d1f8f7a392a8ffdd1144c1d3126473f91cddfe1f750e9c7916e75aec4c571c1c3d2508c0967db12d8ed3e27623c8b2a5e2a47ff1710d55fbba91a84ec8434d4
44 -DIST gentoo-headers-base-4.18.tar.xz 7878256 BLAKE2B 9a97fed9ae4d16af57bb4aa069cceeb357ca79314ab57b6fbaec0dde75f9504b166a3b0017582bc00fc10b74298fcd4468332ef210e90e1e3daa4681b88e45f2 SHA512 c623b3962fe06150ecad60fa6c7c89e0ad83fad4c8886513f9948352ce0044420d8eb8ccdaa08f7bc957b892472041dd42709fbf396c93a0d0292ff7edbc713e
45 -DIST gentoo-headers-base-4.19.tar.xz 7956220 BLAKE2B 5b6868188b6cb505556b8f307972be6b27c0201e8287f6a2c4d0ac8bf16cfe048cb05afacf879731ba81de5e2a8c5afc4adad007e00b12efb8b2a158a666f4dd SHA512 ef0f159cb31651bf8e00c31d8ac807e64413c7bf88807e1ab4779524db10eec4726b65af0fad034a0cb2e000cd61a6008bcc174828061ffaf633c170dd09645c
46 -DIST gentoo-headers-base-4.20.tar.xz 8041716 BLAKE2B 09e95aedfd4288fb27ad6c1e4f53992d205e9402efb315a8c764a2836ba856c7ec3f509d30c21e656e1ca9fdeb4530d807a10e0a74e3510c8e90aa82b222bafe SHA512 705c0cf3244039ef319002f17ea702fa91673eac6bb6a790c8451cad1f16951328e1ca1e3d26043708fcdc78bfaa1ff065322947e23b41c4acb9ed2b8acba427
47
48 diff --git a/sys-kernel/linux-headers/files/libc-4.15-portability.patch b/sys-kernel/linux-headers/files/libc-4.15-portability.patch
49 deleted file mode 100644
50 index 09af412..0000000
51 --- a/sys-kernel/linux-headers/files/libc-4.15-portability.patch
52 +++ /dev/null
53 @@ -1,165 +0,0 @@
54 -diff -Naur gentoo-headers-base-4.15.orig/include/uapi/linux/kernel.h gentoo-headers-base-4.15/include/uapi/linux/kernel.h
55 ---- gentoo-headers-base-4.15.orig/include/uapi/linux/kernel.h 2018-01-29 21:22:19.000000000 -0800
56 -+++ gentoo-headers-base-4.15/include/uapi/linux/kernel.h 2018-01-30 13:05:03.399378810 -0800
57 -@@ -2,7 +2,9 @@
58 - #ifndef _UAPI_LINUX_KERNEL_H
59 - #define _UAPI_LINUX_KERNEL_H
60 -
61 -+#ifdef __GLIBC__
62 - #include <linux/sysinfo.h>
63 -+#endif
64 -
65 - /*
66 - * 'kernel.h' contains some often-used function prototypes etc
67 -diff -Naur gentoo-headers-base-4.15.orig/include/uapi/linux/libc-compat.h gentoo-headers-base-4.15/include/uapi/linux/libc-compat.h
68 ---- gentoo-headers-base-4.15.orig/include/uapi/linux/libc-compat.h 2018-01-29 21:22:19.000000000 -0800
69 -+++ gentoo-headers-base-4.15/include/uapi/linux/libc-compat.h 2018-01-30 13:14:11.470368995 -0800
70 -@@ -49,47 +49,57 @@
71 - #ifndef _UAPI_LIBC_COMPAT_H
72 - #define _UAPI_LIBC_COMPAT_H
73 -
74 --/* We have included glibc headers... */
75 --#if defined(__GLIBC__)
76 -+/* We're used from userspace... */
77 -+#if !defined(__KERNEL__)
78 -
79 --/* Coordinate with glibc net/if.h header. */
80 -+/* Coordinate with libc net/if.h header. */
81 - #if defined(_NET_IF_H) && defined(__USE_MISC)
82 -
83 --/* GLIBC headers included first so don't define anything
84 -+/* libc headers included first so don't define anything
85 - * that would already be defined. */
86 -
87 - #define __UAPI_DEF_IF_IFCONF 0
88 - #define __UAPI_DEF_IF_IFMAP 0
89 - #define __UAPI_DEF_IF_IFNAMSIZ 0
90 - #define __UAPI_DEF_IF_IFREQ 0
91 --/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
92 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 0
93 --/* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
94 -+/* If libc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
95 -+#if !defined(__GLIBC__)
96 -+#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0
97 -+#else
98 - #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
99 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
100 - #endif /* __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO */
101 -+#endif /* !defined(__GLIBC__) */
102 -
103 - #else /* _NET_IF_H */
104 -
105 - /* Linux headers included first, and we must define everything
106 -- * we need. The expectation is that glibc will check the
107 -+ * we need. The expectation is that libc will check the
108 - * __UAPI_DEF_* defines and adjust appropriately. */
109 -
110 - #define __UAPI_DEF_IF_IFCONF 1
111 - #define __UAPI_DEF_IF_IFMAP 1
112 - #define __UAPI_DEF_IF_IFNAMSIZ 1
113 - #define __UAPI_DEF_IF_IFREQ 1
114 --/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
115 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
116 --/* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
117 -+/* If libc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
118 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
119 -
120 - #endif /* _NET_IF_H */
121 -
122 --/* Coordinate with glibc netinet/in.h header. */
123 -+/* Coordinate with libc netinet/if_ether.h */
124 -+#ifdef _NETINET_IF_ETHER_H
125 -+#define __UAPI_DEF_ETHHDR 0
126 -+#else
127 -+/* glibc uses __NETINET_IF_ETHER_H and uses the uapi header */
128 -+#define __UAPI_DEF_ETHHDR 1
129 -+#endif /* _NETINET_IF_ETHER_H */
130 -+
131 -+/* Coordinate with libc netinet/in.h header. */
132 - #if defined(_NETINET_IN_H)
133 -
134 --/* GLIBC headers included first so don't define anything
135 -+/* libc headers included first so don't define anything
136 - * that would already be defined. */
137 - #define __UAPI_DEF_IN_ADDR 0
138 - #define __UAPI_DEF_IN_IPPROTO 0
139 -@@ -99,15 +109,7 @@
140 - #define __UAPI_DEF_IN_CLASS 0
141 -
142 - #define __UAPI_DEF_IN6_ADDR 0
143 --/* The exception is the in6_addr macros which must be defined
144 -- * if the glibc code didn't define them. This guard matches
145 -- * the guard in glibc/inet/netinet/in.h which defines the
146 -- * additional in6_addr macros e.g. s6_addr16, and s6_addr32. */
147 --#if defined(__USE_MISC) || defined (__USE_GNU)
148 - #define __UAPI_DEF_IN6_ADDR_ALT 0
149 --#else
150 --#define __UAPI_DEF_IN6_ADDR_ALT 1
151 --#endif
152 - #define __UAPI_DEF_SOCKADDR_IN6 0
153 - #define __UAPI_DEF_IPV6_MREQ 0
154 - #define __UAPI_DEF_IPPROTO_V6 0
155 -@@ -118,7 +120,7 @@
156 - #else
157 -
158 - /* Linux headers included first, and we must define everything
159 -- * we need. The expectation is that glibc will check the
160 -+ * we need. The expectation is that libc will check the
161 - * __UAPI_DEF_* defines and adjust appropriately. */
162 - #define __UAPI_DEF_IN_ADDR 1
163 - #define __UAPI_DEF_IN_IPPROTO 1
164 -@@ -128,7 +130,7 @@
165 - #define __UAPI_DEF_IN_CLASS 1
166 -
167 - #define __UAPI_DEF_IN6_ADDR 1
168 --/* We unconditionally define the in6_addr macros and glibc must
169 -+/* We unconditionally define the in6_addr macros and libc must
170 - * coordinate. */
171 - #define __UAPI_DEF_IN6_ADDR_ALT 1
172 - #define __UAPI_DEF_SOCKADDR_IN6 1
173 -@@ -170,7 +172,7 @@
174 - * or we are being included in the kernel, then define everything
175 - * that we need. Check for previous __UAPI_* definitions to give
176 - * unsupported C libraries a way to opt out of any kernel definition. */
177 --#else /* !defined(__GLIBC__) */
178 -+#else /* defined(__KERNEL) */
179 -
180 - /* Definitions for if.h */
181 - #ifndef __UAPI_DEF_IF_IFCONF
182 -@@ -185,15 +187,20 @@
183 - #ifndef __UAPI_DEF_IF_IFREQ
184 - #define __UAPI_DEF_IF_IFREQ 1
185 - #endif
186 --/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
187 - #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS
188 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
189 - #endif
190 --/* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
191 -+/* If libc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
192 - #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
193 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
194 - #endif
195 -
196 -+/* Definitions for if_ether.h */
197 -+/* allow libcs like musl to deactivate this, glibc does not implement this. */
198 -+#ifndef __UAPI_DEF_ETHHDR
199 -+#define __UAPI_DEF_ETHHDR 1
200 -+#endif
201 -+
202 - /* Definitions for in.h */
203 - #ifndef __UAPI_DEF_IN_ADDR
204 - #define __UAPI_DEF_IN_ADDR 1
205 -@@ -262,12 +269,6 @@
206 - #define __UAPI_DEF_XATTR 1
207 - #endif
208 -
209 --#endif /* __GLIBC__ */
210 --
211 --/* Definitions for if_ether.h */
212 --/* allow libcs like musl to deactivate this, glibc does not implement this. */
213 --#ifndef __UAPI_DEF_ETHHDR
214 --#define __UAPI_DEF_ETHHDR 1
215 --#endif
216 -+#endif /* defined(__KERNEL__) */
217 -
218 - #endif /* _UAPI_LIBC_COMPAT_H */
219
220 diff --git a/sys-kernel/linux-headers/files/libc-4.16-portability.patch b/sys-kernel/linux-headers/files/libc-4.16-portability.patch
221 deleted file mode 100644
222 index abc6935..0000000
223 --- a/sys-kernel/linux-headers/files/libc-4.16-portability.patch
224 +++ /dev/null
225 @@ -1,146 +0,0 @@
226 -diff -Naur gentoo-headers-base-4.16.orig/include/uapi/linux/libc-compat.h gentoo-headers-base-4.16/include/uapi/linux/libc-compat.h
227 ---- gentoo-headers-base-4.16.orig/include/uapi/linux/libc-compat.h 2018-04-04 23:45:32.000000000 -0700
228 -+++ gentoo-headers-base-4.16/include/uapi/linux/libc-compat.h 2018-04-08 17:53:43.004162639 -0700
229 -@@ -49,47 +49,57 @@
230 - #ifndef _UAPI_LIBC_COMPAT_H
231 - #define _UAPI_LIBC_COMPAT_H
232 -
233 --/* We have included glibc headers... */
234 --#if defined(__GLIBC__)
235 -+/* We're used from userspace... */
236 -+#if !defined(__KERNEL__)
237 -
238 --/* Coordinate with glibc net/if.h header. */
239 -+/* Coordinate with libc net/if.h header. */
240 - #if defined(_NET_IF_H) && defined(__USE_MISC)
241 -
242 --/* GLIBC headers included first so don't define anything
243 -+/* libc headers included first so don't define anything
244 - * that would already be defined. */
245 -
246 - #define __UAPI_DEF_IF_IFCONF 0
247 - #define __UAPI_DEF_IF_IFMAP 0
248 - #define __UAPI_DEF_IF_IFNAMSIZ 0
249 - #define __UAPI_DEF_IF_IFREQ 0
250 --/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
251 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 0
252 --/* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
253 -+/* If libc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
254 -+#if !defined(__GLIBC__)
255 -+#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0
256 -+#else
257 - #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
258 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
259 - #endif /* __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO */
260 -+#endif /* !defined(__GLIBC__) */
261 -
262 - #else /* _NET_IF_H */
263 -
264 - /* Linux headers included first, and we must define everything
265 -- * we need. The expectation is that glibc will check the
266 -+ * we need. The expectation is that libc will check the
267 - * __UAPI_DEF_* defines and adjust appropriately. */
268 -
269 - #define __UAPI_DEF_IF_IFCONF 1
270 - #define __UAPI_DEF_IF_IFMAP 1
271 - #define __UAPI_DEF_IF_IFNAMSIZ 1
272 - #define __UAPI_DEF_IF_IFREQ 1
273 --/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
274 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
275 --/* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
276 -+/* If libc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
277 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
278 -
279 - #endif /* _NET_IF_H */
280 -
281 --/* Coordinate with glibc netinet/in.h header. */
282 -+/* Coordinate with libc netinet/if_ether.h */
283 -+#ifdef _NETINET_IF_ETHER_H
284 -+#define __UAPI_DEF_ETHHDR 0
285 -+#else
286 -+/* glibc uses __NETINET_IF_ETHER_H and uses the uapi header */
287 -+#define __UAPI_DEF_ETHHDR 1
288 -+#endif /* _NETINET_IF_ETHER_H */
289 -+
290 -+/* Coordinate with libc netinet/in.h header. */
291 - #if defined(_NETINET_IN_H)
292 -
293 --/* GLIBC headers included first so don't define anything
294 -+/* libc headers included first so don't define anything
295 - * that would already be defined. */
296 - #define __UAPI_DEF_IN_ADDR 0
297 - #define __UAPI_DEF_IN_IPPROTO 0
298 -@@ -99,15 +109,7 @@
299 - #define __UAPI_DEF_IN_CLASS 0
300 -
301 - #define __UAPI_DEF_IN6_ADDR 0
302 --/* The exception is the in6_addr macros which must be defined
303 -- * if the glibc code didn't define them. This guard matches
304 -- * the guard in glibc/inet/netinet/in.h which defines the
305 -- * additional in6_addr macros e.g. s6_addr16, and s6_addr32. */
306 --#if defined(__USE_MISC) || defined (__USE_GNU)
307 - #define __UAPI_DEF_IN6_ADDR_ALT 0
308 --#else
309 --#define __UAPI_DEF_IN6_ADDR_ALT 1
310 --#endif
311 - #define __UAPI_DEF_SOCKADDR_IN6 0
312 - #define __UAPI_DEF_IPV6_MREQ 0
313 - #define __UAPI_DEF_IPPROTO_V6 0
314 -@@ -118,7 +120,7 @@
315 - #else
316 -
317 - /* Linux headers included first, and we must define everything
318 -- * we need. The expectation is that glibc will check the
319 -+ * we need. The expectation is that libc will check the
320 - * __UAPI_DEF_* defines and adjust appropriately. */
321 - #define __UAPI_DEF_IN_ADDR 1
322 - #define __UAPI_DEF_IN_IPPROTO 1
323 -@@ -128,7 +130,7 @@
324 - #define __UAPI_DEF_IN_CLASS 1
325 -
326 - #define __UAPI_DEF_IN6_ADDR 1
327 --/* We unconditionally define the in6_addr macros and glibc must
328 -+/* We unconditionally define the in6_addr macros and libc must
329 - * coordinate. */
330 - #define __UAPI_DEF_IN6_ADDR_ALT 1
331 - #define __UAPI_DEF_SOCKADDR_IN6 1
332 -@@ -170,7 +172,7 @@
333 - * or we are being included in the kernel, then define everything
334 - * that we need. Check for previous __UAPI_* definitions to give
335 - * unsupported C libraries a way to opt out of any kernel definition. */
336 --#else /* !defined(__GLIBC__) */
337 -+#else /* defined(__KERNEL) */
338 -
339 - /* Definitions for if.h */
340 - #ifndef __UAPI_DEF_IF_IFCONF
341 -@@ -185,15 +187,20 @@
342 - #ifndef __UAPI_DEF_IF_IFREQ
343 - #define __UAPI_DEF_IF_IFREQ 1
344 - #endif
345 --/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
346 - #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS
347 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
348 - #endif
349 --/* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
350 -+/* If libc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
351 - #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
352 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
353 - #endif
354 -
355 -+/* Definitions for if_ether.h */
356 -+/* allow libcs like musl to deactivate this, glibc does not implement this. */
357 -+#ifndef __UAPI_DEF_ETHHDR
358 -+#define __UAPI_DEF_ETHHDR 1
359 -+#endif
360 -+
361 - /* Definitions for in.h */
362 - #ifndef __UAPI_DEF_IN_ADDR
363 - #define __UAPI_DEF_IN_ADDR 1
364 -@@ -262,6 +269,6 @@
365 - #define __UAPI_DEF_XATTR 1
366 - #endif
367 -
368 --#endif /* __GLIBC__ */
369 -+#endif /* defined(__KERNEL__) */
370 -
371 - #endif /* _UAPI_LIBC_COMPAT_H */
372
373 diff --git a/sys-kernel/linux-headers/files/libc-4.3-portability.patch b/sys-kernel/linux-headers/files/libc-4.3-portability.patch
374 deleted file mode 100644
375 index b71e4b5..0000000
376 --- a/sys-kernel/linux-headers/files/libc-4.3-portability.patch
377 +++ /dev/null
378 @@ -1,120 +0,0 @@
379 -diff -urN a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h
380 ---- a/include/uapi/linux/if_ether.h 2015-11-02 12:36:00.000000000 -0600
381 -+++ b/include/uapi/linux/if_ether.h 2015-11-06 21:07:36.109409947 -0600
382 -@@ -22,6 +22,7 @@
383 - #define _UAPI_LINUX_IF_ETHER_H
384 -
385 - #include <linux/types.h>
386 -+#include <linux/libc-compat.h>
387 -
388 - /*
389 - * IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
390 -@@ -134,12 +135,12 @@
391 - /*
392 - * This is an Ethernet frame header.
393 - */
394 --
395 -+#if __UAPI_DEF_ETHHDR
396 - struct ethhdr {
397 - unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
398 - unsigned char h_source[ETH_ALEN]; /* source ether addr */
399 - __be16 h_proto; /* packet type ID field */
400 - } __attribute__((packed));
401 --
402 -+#endif
403 -
404 - #endif /* _UAPI_LINUX_IF_ETHER_H */
405 -diff -urN a/include/uapi/linux/kernel.h b/include/uapi/linux/kernel.h
406 ---- a/include/uapi/linux/kernel.h 2015-11-02 12:36:00.000000000 -0600
407 -+++ b/include/uapi/linux/kernel.h 2015-11-06 20:59:38.595400307 -0600
408 -@@ -1,7 +1,9 @@
409 - #ifndef _UAPI_LINUX_KERNEL_H
410 - #define _UAPI_LINUX_KERNEL_H
411 -
412 -+#ifdef __GLIBC__
413 - #include <linux/sysinfo.h>
414 -+#endif
415 -
416 - /*
417 - * 'kernel.h' contains some often-used function prototypes etc
418 -diff -urN a/include/uapi/linux/libc-compat.h b/include/uapi/linux/libc-compat.h
419 ---- a/include/uapi/linux/libc-compat.h 2015-11-02 12:36:00.000000000 -0600
420 -+++ b/include/uapi/linux/libc-compat.h 2015-11-06 21:09:14.645411936 -0600
421 -@@ -48,13 +48,18 @@
422 - #ifndef _UAPI_LIBC_COMPAT_H
423 - #define _UAPI_LIBC_COMPAT_H
424 -
425 --/* We have included glibc headers... */
426 --#if defined(__GLIBC__)
427 -+#ifndef __KERNEL__ /* we're used from userspace */
428 -
429 --/* Coordinate with glibc netinet/in.h header. */
430 -+#ifdef _NETINET_IF_ETHER_H /* musl */
431 -+#define __UAPI_DEF_ETHHDR 0
432 -+#else /* glibc uses __NETINET_IF_ETHER_H, and includes the kernel header. */
433 -+#define __UAPI_DEF_ETHHDR 1
434 -+#endif
435 -+
436 -+/* Coordinate with libc netinet/in.h header. */
437 - #if defined(_NETINET_IN_H)
438 -
439 --/* GLIBC headers included first so don't define anything
440 -+/* libc headers included first so don't define anything
441 - * that would already be defined. */
442 - #define __UAPI_DEF_IN_ADDR 0
443 - #define __UAPI_DEF_IN_IPPROTO 0
444 -@@ -64,15 +69,7 @@
445 - #define __UAPI_DEF_IN_CLASS 0
446 -
447 - #define __UAPI_DEF_IN6_ADDR 0
448 --/* The exception is the in6_addr macros which must be defined
449 -- * if the glibc code didn't define them. This guard matches
450 -- * the guard in glibc/inet/netinet/in.h which defines the
451 -- * additional in6_addr macros e.g. s6_addr16, and s6_addr32. */
452 --#if defined(__USE_MISC) || defined (__USE_GNU)
453 - #define __UAPI_DEF_IN6_ADDR_ALT 0
454 --#else
455 --#define __UAPI_DEF_IN6_ADDR_ALT 1
456 --#endif
457 - #define __UAPI_DEF_SOCKADDR_IN6 0
458 - #define __UAPI_DEF_IPV6_MREQ 0
459 - #define __UAPI_DEF_IPPROTO_V6 0
460 -@@ -80,10 +77,10 @@
461 - #define __UAPI_DEF_IN6_PKTINFO 0
462 - #define __UAPI_DEF_IP6_MTUINFO 0
463 -
464 --#else
465 -+#else /* defined(_NETINET_IN_H) */
466 -
467 - /* Linux headers included first, and we must define everything
468 -- * we need. The expectation is that glibc will check the
469 -+ * we need. The expectation is that libc will check the
470 - * __UAPI_DEF_* defines and adjust appropriately. */
471 - #define __UAPI_DEF_IN_ADDR 1
472 - #define __UAPI_DEF_IN_IPPROTO 1
473 -@@ -93,7 +90,7 @@
474 - #define __UAPI_DEF_IN_CLASS 1
475 -
476 - #define __UAPI_DEF_IN6_ADDR 1
477 --/* We unconditionally define the in6_addr macros and glibc must
478 -+/* We unconditionally define the in6_addr macros and libc must
479 - * coordinate. */
480 - #define __UAPI_DEF_IN6_ADDR_ALT 1
481 - #define __UAPI_DEF_SOCKADDR_IN6 1
482 -@@ -115,7 +112,7 @@
483 - /* If we did not see any headers from any supported C libraries,
484 - * or we are being included in the kernel, then define everything
485 - * that we need. */
486 --#else /* !defined(__GLIBC__) */
487 -+#else /* __KERNEL__ */
488 -
489 - /* Definitions for in.h */
490 - #define __UAPI_DEF_IN_ADDR 1
491 -@@ -138,6 +135,6 @@
492 - /* Definitions for xattr.h */
493 - #define __UAPI_DEF_XATTR 1
494 -
495 --#endif /* __GLIBC__ */
496 -+#endif /* __KERNEL__ */
497 -
498 - #endif /* _UAPI_LIBC_COMPAT_H */
499
500 diff --git a/sys-kernel/linux-headers/files/libc-4.8-portability.patch b/sys-kernel/linux-headers/files/libc-4.8-portability.patch
501 deleted file mode 100644
502 index f03d8e0..0000000
503 --- a/sys-kernel/linux-headers/files/libc-4.8-portability.patch
504 +++ /dev/null
505 @@ -1,176 +0,0 @@
506 -diff -Naur gentoo-headers-base-4.8.orig/include/uapi/linux/if_ether.h gentoo-headers-base-4.8/include/uapi/linux/if_ether.h
507 ---- gentoo-headers-base-4.8.orig/include/uapi/linux/if_ether.h 2016-11-10 14:47:20.000000000 -0800
508 -+++ gentoo-headers-base-4.8/include/uapi/linux/if_ether.h 2016-11-11 16:50:19.820253766 -0800
509 -@@ -22,6 +22,7 @@
510 - #define _UAPI_LINUX_IF_ETHER_H
511 -
512 - #include <linux/types.h>
513 -+#include <linux/libc-compat.h>
514 -
515 - /*
516 - * IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
517 -@@ -138,11 +139,13 @@
518 - * This is an Ethernet frame header.
519 - */
520 -
521 -+#if __UAPI_DEF_ETHHDR
522 - struct ethhdr {
523 - unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
524 - unsigned char h_source[ETH_ALEN]; /* source ether addr */
525 - __be16 h_proto; /* packet type ID field */
526 - } __attribute__((packed));
527 -+#endif
528 -
529 -
530 - #endif /* _UAPI_LINUX_IF_ETHER_H */
531 -diff -Naur gentoo-headers-base-4.8.orig/include/uapi/linux/kernel.h gentoo-headers-base-4.8/include/uapi/linux/kernel.h
532 ---- gentoo-headers-base-4.8.orig/include/uapi/linux/kernel.h 2016-11-10 14:47:20.000000000 -0800
533 -+++ gentoo-headers-base-4.8/include/uapi/linux/kernel.h 2016-11-11 16:50:48.052507106 -0800
534 -@@ -1,7 +1,9 @@
535 - #ifndef _UAPI_LINUX_KERNEL_H
536 - #define _UAPI_LINUX_KERNEL_H
537 -
538 -+#ifdef __GLIBC__
539 - #include <linux/sysinfo.h>
540 -+#endif
541 -
542 - /*
543 - * 'kernel.h' contains some often-used function prototypes etc
544 -diff -Naur gentoo-headers-base-4.8.orig/include/uapi/linux/libc-compat.h gentoo-headers-base-4.8/include/uapi/linux/libc-compat.h
545 ---- gentoo-headers-base-4.8.orig/include/uapi/linux/libc-compat.h 2016-11-10 14:47:20.000000000 -0800
546 -+++ gentoo-headers-base-4.8/include/uapi/linux/libc-compat.h 2016-11-11 17:01:06.673559738 -0800
547 -@@ -48,47 +48,57 @@
548 - #ifndef _UAPI_LIBC_COMPAT_H
549 - #define _UAPI_LIBC_COMPAT_H
550 -
551 --/* We have included glibc headers... */
552 --#if defined(__GLIBC__)
553 -+/* We're used from userspace... */
554 -+#if !defined(__KERNEL__)
555 -
556 --/* Coordinate with glibc net/if.h header. */
557 -+/* Coordinate with libc net/if.h header. */
558 - #if defined(_NET_IF_H) && defined(__USE_MISC)
559 -
560 --/* GLIBC headers included first so don't define anything
561 -+/* libc headers included first so don't define anything
562 - * that would already be defined. */
563 -
564 - #define __UAPI_DEF_IF_IFCONF 0
565 - #define __UAPI_DEF_IF_IFMAP 0
566 - #define __UAPI_DEF_IF_IFNAMSIZ 0
567 - #define __UAPI_DEF_IF_IFREQ 0
568 --/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
569 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 0
570 --/* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
571 -+/* If libc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
572 -+#if !defined(__GLIBC__)
573 -+#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0
574 -+#else
575 - #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
576 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
577 - #endif /* __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO */
578 -+#endif /* !defined(__GLIBC__) */
579 -
580 - #else /* _NET_IF_H */
581 -
582 - /* Linux headers included first, and we must define everything
583 -- * we need. The expectation is that glibc will check the
584 -+ * we need. The expectation is that libc will check the
585 - * __UAPI_DEF_* defines and adjust appropriately. */
586 -
587 - #define __UAPI_DEF_IF_IFCONF 1
588 - #define __UAPI_DEF_IF_IFMAP 1
589 - #define __UAPI_DEF_IF_IFNAMSIZ 1
590 - #define __UAPI_DEF_IF_IFREQ 1
591 --/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
592 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
593 --/* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
594 -+/* If libc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
595 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
596 -
597 - #endif /* _NET_IF_H */
598 -
599 --/* Coordinate with glibc netinet/in.h header. */
600 -+/* Coordinate with libc netinet/if_ether.h */
601 -+#ifdef _NETINET_IF_ETHER_H
602 -+#define __UAPI_DEF_ETHHDR 0
603 -+#else
604 -+/* glibc uses __NETINET_IF_ETHER_H and uses the uapi header */
605 -+#define __UAPI_DEF_ETHHDR 1
606 -+#endif /* _NETINET_IF_ETHER_H */
607 -+
608 -+/* Coordinate with libc netinet/in.h header. */
609 - #if defined(_NETINET_IN_H)
610 -
611 --/* GLIBC headers included first so don't define anything
612 -+/* libc headers included first so don't define anything
613 - * that would already be defined. */
614 - #define __UAPI_DEF_IN_ADDR 0
615 - #define __UAPI_DEF_IN_IPPROTO 0
616 -@@ -98,15 +108,7 @@
617 - #define __UAPI_DEF_IN_CLASS 0
618 -
619 - #define __UAPI_DEF_IN6_ADDR 0
620 --/* The exception is the in6_addr macros which must be defined
621 -- * if the glibc code didn't define them. This guard matches
622 -- * the guard in glibc/inet/netinet/in.h which defines the
623 -- * additional in6_addr macros e.g. s6_addr16, and s6_addr32. */
624 --#if defined(__USE_MISC) || defined (__USE_GNU)
625 - #define __UAPI_DEF_IN6_ADDR_ALT 0
626 --#else
627 --#define __UAPI_DEF_IN6_ADDR_ALT 1
628 --#endif
629 - #define __UAPI_DEF_SOCKADDR_IN6 0
630 - #define __UAPI_DEF_IPV6_MREQ 0
631 - #define __UAPI_DEF_IPPROTO_V6 0
632 -@@ -117,7 +119,7 @@
633 - #else
634 -
635 - /* Linux headers included first, and we must define everything
636 -- * we need. The expectation is that glibc will check the
637 -+ * we need. The expectation is that libc will check the
638 - * __UAPI_DEF_* defines and adjust appropriately. */
639 - #define __UAPI_DEF_IN_ADDR 1
640 - #define __UAPI_DEF_IN_IPPROTO 1
641 -@@ -127,7 +129,7 @@
642 - #define __UAPI_DEF_IN_CLASS 1
643 -
644 - #define __UAPI_DEF_IN6_ADDR 1
645 --/* We unconditionally define the in6_addr macros and glibc must
646 -+/* We unconditionally define the in6_addr macros and libc must
647 - * coordinate. */
648 - #define __UAPI_DEF_IN6_ADDR_ALT 1
649 - #define __UAPI_DEF_SOCKADDR_IN6 1
650 -@@ -168,18 +170,20 @@
651 - /* If we did not see any headers from any supported C libraries,
652 - * or we are being included in the kernel, then define everything
653 - * that we need. */
654 --#else /* !defined(__GLIBC__) */
655 -+#else /* defined(__KERNEL__) */
656 -
657 - /* Definitions for if.h */
658 - #define __UAPI_DEF_IF_IFCONF 1
659 - #define __UAPI_DEF_IF_IFMAP 1
660 - #define __UAPI_DEF_IF_IFNAMSIZ 1
661 - #define __UAPI_DEF_IF_IFREQ 1
662 --/* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */
663 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
664 --/* For the future if glibc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
665 -+/* If libc adds IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO */
666 - #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
667 -
668 -+/* Definitions for if/ether.h */
669 -+#define __UAPI_DEF_ETHHDR 1
670 -+
671 - /* Definitions for in.h */
672 - #define __UAPI_DEF_IN_ADDR 1
673 - #define __UAPI_DEF_IN_IPPROTO 1
674 -@@ -208,6 +212,6 @@
675 - /* Definitions for xattr.h */
676 - #define __UAPI_DEF_XATTR 1
677 -
678 --#endif /* __GLIBC__ */
679 -+#endif /* defined(__KERNEL__) */
680 -
681 - #endif /* _UAPI_LIBC_COMPAT_H */
682
683 diff --git a/sys-kernel/linux-headers/linux-headers-4.14-r1.ebuild b/sys-kernel/linux-headers/linux-headers-4.14-r1.ebuild
684 deleted file mode 100644
685 index 76a3535..0000000
686 --- a/sys-kernel/linux-headers/linux-headers-4.14-r1.ebuild
687 +++ /dev/null
688 @@ -1,58 +0,0 @@
689 -# Copyright 1999-2020 Gentoo Authors
690 -# Distributed under the terms of the GNU General Public License v2
691 -
692 -EAPI=6
693 -
694 -ETYPE="headers"
695 -H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 bfin cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 s390 score sh sparc tile x86 xtensa"
696 -inherit kernel-2
697 -detect_version
698 -
699 -PATCH_VER="1"
700 -SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz
701 - ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}"
702 -
703 -KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 x86"
704 -
705 -DEPEND="app-arch/xz-utils
706 - dev-lang/perl"
707 -RDEPEND="!!media-sound/alsa-headers"
708 -
709 -S=${WORKDIR}/gentoo-headers-base-${PV}
710 -
711 -src_unpack() {
712 - unpack ${A}
713 -}
714 -
715 -src_prepare() {
716 - default
717 -
718 - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}/${PV}"/*.patch
719 - eapply "${FILESDIR}"/libc-4.8-portability.patch
720 -}
721 -
722 -src_install() {
723 - kernel-2_src_install
724 -
725 - # hrm, build system sucks
726 - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
727 - find "${ED}" -depth -type d -delete 2>/dev/null
728 -}
729 -
730 -src_test() {
731 - # Make sure no uapi/ include paths are used by accident.
732 - egrep -r \
733 - -e '# *include.*["<]uapi/' \
734 - "${D}" && die "#include uapi/xxx detected"
735 -
736 - einfo "Possible unescaped attribute/type usage"
737 - egrep -r \
738 - -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
739 - -e '\<([us](8|16|32|64))\>' \
740 - .
741 -
742 - einfo "Missing linux/types.h include"
743 - egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
744 -
745 - emake ARCH=$(tc-arch-kernel) headers_check
746 -}
747
748 diff --git a/sys-kernel/linux-headers/linux-headers-4.15-r1.ebuild b/sys-kernel/linux-headers/linux-headers-4.15-r1.ebuild
749 deleted file mode 100644
750 index 87a839b..0000000
751 --- a/sys-kernel/linux-headers/linux-headers-4.15-r1.ebuild
752 +++ /dev/null
753 @@ -1,58 +0,0 @@
754 -# Copyright 1999-2020 Gentoo Authors
755 -# Distributed under the terms of the GNU General Public License v2
756 -
757 -EAPI="6"
758 -
759 -ETYPE="headers"
760 -H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 bfin cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc tile x86 xtensa"
761 -inherit kernel-2
762 -detect_version
763 -
764 -PATCH_VER="1"
765 -SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz
766 - ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}"
767 -
768 -KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86"
769 -
770 -DEPEND="app-arch/xz-utils
771 - dev-lang/perl"
772 -RDEPEND="!!media-sound/alsa-headers"
773 -
774 -S=${WORKDIR}/gentoo-headers-base-${PV}
775 -
776 -src_unpack() {
777 - unpack ${A}
778 -}
779 -
780 -src_prepare() {
781 - default
782 -
783 - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}/${PV}"/*.patch
784 - eapply "${FILESDIR}"/libc-4.15-portability.patch
785 -}
786 -
787 -src_install() {
788 - kernel-2_src_install
789 -
790 - # hrm, build system sucks
791 - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
792 - find "${ED}" -depth -type d -delete 2>/dev/null
793 -}
794 -
795 -src_test() {
796 - # Make sure no uapi/ include paths are used by accident.
797 - egrep -r \
798 - -e '# *include.*["<]uapi/' \
799 - "${D}" && die "#include uapi/xxx detected"
800 -
801 - einfo "Possible unescaped attribute/type usage"
802 - egrep -r \
803 - -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
804 - -e '\<([us](8|16|32|64))\>' \
805 - .
806 -
807 - einfo "Missing linux/types.h include"
808 - egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
809 -
810 - emake ARCH=$(tc-arch-kernel) headers_check
811 -}
812
813 diff --git a/sys-kernel/linux-headers/linux-headers-4.16-r2.ebuild b/sys-kernel/linux-headers/linux-headers-4.16-r2.ebuild
814 deleted file mode 100644
815 index 6c7b21c..0000000
816 --- a/sys-kernel/linux-headers/linux-headers-4.16-r2.ebuild
817 +++ /dev/null
818 @@ -1,61 +0,0 @@
819 -# Copyright 1999-2020 Gentoo Authors
820 -# Distributed under the terms of the GNU General Public License v2
821 -
822 -EAPI="6"
823 -
824 -ETYPE="headers"
825 -H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 bfin cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc tile x86 xtensa"
826 -inherit kernel-2
827 -detect_version
828 -
829 -PATCH_VER="1"
830 -SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}-r1.tar.xz
831 - ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
832 - https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-base-${PV}-r1.tar.xz
833 - ${PATCH_VER:+https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
834 -"
835 -
836 -KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86"
837 -
838 -DEPEND="app-arch/xz-utils
839 - dev-lang/perl"
840 -RDEPEND="!!media-sound/alsa-headers"
841 -
842 -S=${WORKDIR}/gentoo-headers-base-${PV}
843 -
844 -src_unpack() {
845 - unpack ${A}
846 -}
847 -
848 -src_prepare() {
849 - default
850 -
851 - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}/${PV}"/*.patch
852 - eapply "${FILESDIR}"/libc-4.16-portability.patch
853 -}
854 -
855 -src_install() {
856 - kernel-2_src_install
857 -
858 - # hrm, build system sucks
859 - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
860 - find "${ED}" -depth -type d -delete 2>/dev/null
861 -}
862 -
863 -src_test() {
864 - # Make sure no uapi/ include paths are used by accident.
865 - egrep -r \
866 - -e '# *include.*["<]uapi/' \
867 - "${D}" && die "#include uapi/xxx detected"
868 -
869 - einfo "Possible unescaped attribute/type usage"
870 - egrep -r \
871 - -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
872 - -e '\<([us](8|16|32|64))\>' \
873 - .
874 -
875 - einfo "Missing linux/types.h include"
876 - egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
877 -
878 - emake ARCH=$(tc-arch-kernel) headers_check
879 -}
880
881 diff --git a/sys-kernel/linux-headers/linux-headers-4.17.ebuild b/sys-kernel/linux-headers/linux-headers-4.17.ebuild
882 deleted file mode 100644
883 index bcccca3..0000000
884 --- a/sys-kernel/linux-headers/linux-headers-4.17.ebuild
885 +++ /dev/null
886 @@ -1,58 +0,0 @@
887 -# Copyright 1999-2020 Gentoo Authors
888 -# Distributed under the terms of the GNU General Public License v2
889 -
890 -EAPI="6"
891 -
892 -ETYPE="headers"
893 -H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa"
894 -inherit kernel-2
895 -detect_version
896 -
897 -PATCH_VER="1"
898 -SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz
899 - ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}"
900 -
901 -KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86"
902 -
903 -DEPEND="app-arch/xz-utils
904 - dev-lang/perl"
905 -RDEPEND="!!media-sound/alsa-headers"
906 -
907 -S=${WORKDIR}/gentoo-headers-base-${PV}
908 -
909 -src_unpack() {
910 - unpack ${A}
911 -}
912 -
913 -src_prepare() {
914 - default
915 -
916 - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}"/${PV}/*.patch
917 - eapply "${FILESDIR}"/libc-4.16-portability.patch
918 -}
919 -
920 -src_install() {
921 - kernel-2_src_install
922 -
923 - # hrm, build system sucks
924 - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
925 - find "${ED}" -depth -type d -delete 2>/dev/null
926 -}
927 -
928 -src_test() {
929 - # Make sure no uapi/ include paths are used by accident.
930 - egrep -r \
931 - -e '# *include.*["<]uapi/' \
932 - "${D}" && die "#include uapi/xxx detected"
933 -
934 - einfo "Possible unescaped attribute/type usage"
935 - egrep -r \
936 - -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
937 - -e '\<([us](8|16|32|64))\>' \
938 - .
939 -
940 - einfo "Missing linux/types.h include"
941 - egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
942 -
943 - emake ARCH=$(tc-arch-kernel) headers_check
944 -}
945
946 diff --git a/sys-kernel/linux-headers/linux-headers-4.18.ebuild b/sys-kernel/linux-headers/linux-headers-4.18.ebuild
947 deleted file mode 100644
948 index c005627..0000000
949 --- a/sys-kernel/linux-headers/linux-headers-4.18.ebuild
950 +++ /dev/null
951 @@ -1,61 +0,0 @@
952 -# Copyright 1999-2020 Gentoo Authors
953 -# Distributed under the terms of the GNU General Public License v2
954 -
955 -EAPI="6"
956 -
957 -ETYPE="headers"
958 -H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa"
959 -inherit kernel-2
960 -detect_version
961 -
962 -PATCH_VER="1"
963 -SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz
964 - https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-base-${PV}.tar.xz
965 - ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
966 - ${PATCH_VER:+https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
967 -"
968 -
969 -KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86"
970 -
971 -DEPEND="app-arch/xz-utils
972 - dev-lang/perl"
973 -RDEPEND=""
974 -
975 -S=${WORKDIR}/gentoo-headers-base-${PV}
976 -
977 -src_unpack() {
978 - unpack ${A}
979 -}
980 -
981 -src_prepare() {
982 - default
983 -
984 - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}"/${PV}/*.patch
985 - eapply "${FILESDIR}"/libc-4.16-portability.patch
986 -}
987 -
988 -src_install() {
989 - kernel-2_src_install
990 -
991 - # hrm, build system sucks
992 - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
993 - find "${ED}" -depth -type d -delete 2>/dev/null
994 -}
995 -
996 -src_test() {
997 - # Make sure no uapi/ include paths are used by accident.
998 - egrep -r \
999 - -e '# *include.*["<]uapi/' \
1000 - "${D}" && die "#include uapi/xxx detected"
1001 -
1002 - einfo "Possible unescaped attribute/type usage"
1003 - egrep -r \
1004 - -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
1005 - -e '\<([us](8|16|32|64))\>' \
1006 - .
1007 -
1008 - einfo "Missing linux/types.h include"
1009 - egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
1010 -
1011 - emake ARCH=$(tc-arch-kernel) headers_check
1012 -}
1013
1014 diff --git a/sys-kernel/linux-headers/linux-headers-4.19.ebuild b/sys-kernel/linux-headers/linux-headers-4.19.ebuild
1015 deleted file mode 100644
1016 index c005627..0000000
1017 --- a/sys-kernel/linux-headers/linux-headers-4.19.ebuild
1018 +++ /dev/null
1019 @@ -1,61 +0,0 @@
1020 -# Copyright 1999-2020 Gentoo Authors
1021 -# Distributed under the terms of the GNU General Public License v2
1022 -
1023 -EAPI="6"
1024 -
1025 -ETYPE="headers"
1026 -H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa"
1027 -inherit kernel-2
1028 -detect_version
1029 -
1030 -PATCH_VER="1"
1031 -SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz
1032 - https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-base-${PV}.tar.xz
1033 - ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
1034 - ${PATCH_VER:+https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
1035 -"
1036 -
1037 -KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86"
1038 -
1039 -DEPEND="app-arch/xz-utils
1040 - dev-lang/perl"
1041 -RDEPEND=""
1042 -
1043 -S=${WORKDIR}/gentoo-headers-base-${PV}
1044 -
1045 -src_unpack() {
1046 - unpack ${A}
1047 -}
1048 -
1049 -src_prepare() {
1050 - default
1051 -
1052 - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}"/${PV}/*.patch
1053 - eapply "${FILESDIR}"/libc-4.16-portability.patch
1054 -}
1055 -
1056 -src_install() {
1057 - kernel-2_src_install
1058 -
1059 - # hrm, build system sucks
1060 - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
1061 - find "${ED}" -depth -type d -delete 2>/dev/null
1062 -}
1063 -
1064 -src_test() {
1065 - # Make sure no uapi/ include paths are used by accident.
1066 - egrep -r \
1067 - -e '# *include.*["<]uapi/' \
1068 - "${D}" && die "#include uapi/xxx detected"
1069 -
1070 - einfo "Possible unescaped attribute/type usage"
1071 - egrep -r \
1072 - -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
1073 - -e '\<([us](8|16|32|64))\>' \
1074 - .
1075 -
1076 - einfo "Missing linux/types.h include"
1077 - egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
1078 -
1079 - emake ARCH=$(tc-arch-kernel) headers_check
1080 -}
1081
1082 diff --git a/sys-kernel/linux-headers/linux-headers-4.20.ebuild b/sys-kernel/linux-headers/linux-headers-4.20.ebuild
1083 deleted file mode 100644
1084 index c005627..0000000
1085 --- a/sys-kernel/linux-headers/linux-headers-4.20.ebuild
1086 +++ /dev/null
1087 @@ -1,61 +0,0 @@
1088 -# Copyright 1999-2020 Gentoo Authors
1089 -# Distributed under the terms of the GNU General Public License v2
1090 -
1091 -EAPI="6"
1092 -
1093 -ETYPE="headers"
1094 -H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa"
1095 -inherit kernel-2
1096 -detect_version
1097 -
1098 -PATCH_VER="1"
1099 -SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz
1100 - https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-base-${PV}.tar.xz
1101 - ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
1102 - ${PATCH_VER:+https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
1103 -"
1104 -
1105 -KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86"
1106 -
1107 -DEPEND="app-arch/xz-utils
1108 - dev-lang/perl"
1109 -RDEPEND=""
1110 -
1111 -S=${WORKDIR}/gentoo-headers-base-${PV}
1112 -
1113 -src_unpack() {
1114 - unpack ${A}
1115 -}
1116 -
1117 -src_prepare() {
1118 - default
1119 -
1120 - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}"/${PV}/*.patch
1121 - eapply "${FILESDIR}"/libc-4.16-portability.patch
1122 -}
1123 -
1124 -src_install() {
1125 - kernel-2_src_install
1126 -
1127 - # hrm, build system sucks
1128 - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
1129 - find "${ED}" -depth -type d -delete 2>/dev/null
1130 -}
1131 -
1132 -src_test() {
1133 - # Make sure no uapi/ include paths are used by accident.
1134 - egrep -r \
1135 - -e '# *include.*["<]uapi/' \
1136 - "${D}" && die "#include uapi/xxx detected"
1137 -
1138 - einfo "Possible unescaped attribute/type usage"
1139 - egrep -r \
1140 - -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
1141 - -e '\<([us](8|16|32|64))\>' \
1142 - .
1143 -
1144 - einfo "Missing linux/types.h include"
1145 - egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
1146 -
1147 - emake ARCH=$(tc-arch-kernel) headers_check
1148 -}
1149
1150 diff --git a/sys-kernel/linux-headers/metadata.xml b/sys-kernel/linux-headers/metadata.xml
1151 deleted file mode 100644
1152 index fcf3f04..0000000
1153 --- a/sys-kernel/linux-headers/metadata.xml
1154 +++ /dev/null
1155 @@ -1,11 +0,0 @@
1156 -<?xml version="1.0" encoding="UTF-8"?>
1157 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1158 -<pkgmetadata>
1159 -<maintainer type="project">
1160 - <email>toolchain@g.o</email>
1161 - <name>Gentoo Toolchain Project</name>
1162 -</maintainer>
1163 -<upstream>
1164 - <remote-id type="cpe">cpe:/o:linux:linux_kernel</remote-id>
1165 -</upstream>
1166 -</pkgmetadata>