1 |
commit: 3ae21e6c561fed65a1dd52de1eb8e91f7258044f |
2 |
Author: layman <layman <AT> localhost> |
3 |
AuthorDate: Fri Dec 28 23:03:20 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 28 23:05:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=3ae21e6c |
7 |
|
8 |
sys-kernel/linux-headers: remove older versions |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
sys-kernel/linux-headers/Manifest | 3 -- |
14 |
sys-kernel/linux-headers/linux-headers-4.13.ebuild | 56 -------------------- |
15 |
sys-kernel/linux-headers/linux-headers-4.14.ebuild | 58 -------------------- |
16 |
sys-kernel/linux-headers/linux-headers-4.15.ebuild | 58 -------------------- |
17 |
.../linux-headers/linux-headers-4.16-r1.ebuild | 61 ---------------------- |
18 |
sys-kernel/linux-headers/linux-headers-4.16.ebuild | 61 ---------------------- |
19 |
6 files changed, 297 deletions(-) |
20 |
|
21 |
diff --git a/sys-kernel/linux-headers/Manifest b/sys-kernel/linux-headers/Manifest |
22 |
index c8ab26c..139a59c 100644 |
23 |
--- a/sys-kernel/linux-headers/Manifest |
24 |
+++ b/sys-kernel/linux-headers/Manifest |
25 |
@@ -1,4 +1,3 @@ |
26 |
-DIST gentoo-headers-4.13-1.tar.xz 4096 BLAKE2B a0506c6aec14d8d710863cc3f7b5ce6cc067af245cc96dbf83f10f02ba83d580f900c9cf8b09b496370d580a9b9cd935738d8b4b0cb987836490894fba01cf23 SHA512 14236185c8810b88d94ff0533fe59e84599c2d4e5c7507c37cb458b6728eed69b581df7f8654d5323454ec359e93490c4dcbbb1ee58a66f2586047c93f0f1aa6 |
27 |
DIST gentoo-headers-4.14-1.tar.xz 4080 BLAKE2B 5d8bb4453d3b0b739922a86e0e45120fe5ad57c3310ff6a94830a3a7561fb3b5eef7805ff171bdf0d5582fc91848fad948162e63ec4922280c8ed68ba58d50e1 SHA512 e0f806db641c99f3f71e27fde29705685745c9c03b901c943cab5af84e2e9c3af96f5d2d10d8f5328ec7e4dba28b378f534317bf1bee597d429557b981f0a865 |
28 |
DIST gentoo-headers-4.15-1.tar.xz 4068 BLAKE2B fc99b99637a11dc0cc6b4d79be3e32242f4b4f3c86a4618b3a51839e902ebad045b335f531ca41c10a6a597111f2cf77a0ae17518fb17a8441b26f1bd98c19e7 SHA512 cb973625381ac0115344d9aa1ddd927d75f0c11961526844a9da6a0aebcd28b488a7af3b423ac8358808d998d9d00d51156780905a04c01c6c512215cad6de7d |
29 |
DIST gentoo-headers-4.16-1.tar.xz 4044 BLAKE2B c35efb14266d7d7f06de79f584c6e13a700c38793d7df399e668d5de269088d8a441a10e9d0b7acc5b6d1a116343d516aba58a4823cf51845fe9913dea81cb76 SHA512 a1fdf775bc27e5db2ccf1f86f12e78a25a4127673eb0a87639d548dc6246b81e5df0e8d56c0314ba833fe82d2825f8620addd408782e2f5152fb0b056b870d7c |
30 |
@@ -6,11 +5,9 @@ DIST gentoo-headers-4.17-1.tar.xz 4072 BLAKE2B 7de125ac87b0344a5ff7dfbbe3d15d62c |
31 |
DIST gentoo-headers-4.18-1.tar.xz 4040 BLAKE2B fc4462bc8e59a58658c6bd2669840d7105f6bcde5e7cc2633f53ae4aaf44a67aebef24d944d9d3edb95abb4110ddeeb86a6fc0cbebcf6cbe23b59b97c16a0daf SHA512 8f58df3a5e5bf26e06c300354ec1e468f40593601e6645dc1b51491f5a678020598c1c72f72e616b499f503d98da4d4bf9cdf804a15cac73f51b7877756dd7fb |
32 |
DIST gentoo-headers-4.19-1.tar.xz 4040 BLAKE2B 4ccaf4fb6bde84f0b1f29534cf2f6effca48cb81d63b33086a1ec667069bcb57a3c3d5697c50bff8521343954d01d9c27139d62a9cf2c9f5f12bc0461441f4af SHA512 511accdfd104d9cc84b568132f1eb822f97d35120a438768c313c2cc2651197414dae7af05db81e26b32fb4febbf1e0812030fcb98395f6f65271f6605dc7bb6 |
33 |
DIST gentoo-headers-4.20-1.tar.xz 4040 BLAKE2B 05f8cae4014a6f0ad926e704d5272b05228b91e29a4e14269695cd665110c054a69f0ecab5dec5d23c430cce0726aa7c5c34c85edde0df34dd0e7f8dd5ff7cb6 SHA512 19fa005b648e7dead85edc1b779595c392c28b4699cc4352e6996bbe37fb49de4d2d6b632303338e4db99a4e2e01b56ba1f3777646a416358dc509fb15623f99 |
34 |
-DIST gentoo-headers-base-4.13.tar.xz 7951980 BLAKE2B 8b3b5d9152455b08bf06c275a69168f8a2418584058e23f784d3ab956d72b100b89d398bfeb351d8faa8285cd9ae8942726099ce9aa3fd94b8e0e92b8de1c217 SHA512 3b528e18199d43db3f51c8fb9a5a4c67b9317ea7e9b9fd82fe2cb4d704bbc1253f2af64dc79377ee8ec26511d0893409e3dddbb9a6ae11e8bb7f4ca4d8d3ac9a |
35 |
DIST gentoo-headers-base-4.14.tar.xz 8017944 BLAKE2B e967a3f26fa002f62af72c165cf960e855f5d84dd105b3f136e5ae24f4cdfc9e5f8b217a83955b325ca4bd6bda0a9d4c4de02d8d79fd4aa72191bc63db96183a SHA512 2a4e83a9ee36ffa85b59ebac1e12f4f1c572825b767928a42c4748d924d04f0536bab4d9375ca68c11ad867c226f386c40c7c4d0158d1ab00c838eb5b2f9f21a |
36 |
DIST gentoo-headers-base-4.15.tar.xz 8199628 BLAKE2B 79a4f694a8335ed4bf1df94ab7829f41d3476165d0ce822a13e47461d7e3ee4cdb5e88acb9960a92ba1142adeb9951c19e17405c37b80d461b8577c7d1dfa37a SHA512 7698ae90e356cb6105d3b1fc5351264774428b5caa405e8695925965ab2ff3a08c0dfe3587a69a87405ecc45c6cd3040c3a9f751d6e6dc8eddf8b28ded4e2584 |
37 |
DIST gentoo-headers-base-4.16-r1.tar.xz 8227040 BLAKE2B 95b2d64a614430e49d849ab54c58cbc3a850faea1bb5d9f7f43733d7b745ceb5ea3d1f8cc4dbb36c20797ae7d10bd736b99d17f5bfd0cdb90ecedb4eeb0f8610 SHA512 9b7cc82a322bd43dbf07c63d465200c87b838252e449028a363f3ff10921fe3889b503f20184168c7413d792c3d33b4324d89c89b95c8143a4a3c9c3e7e2d28e |
38 |
-DIST gentoo-headers-base-4.16.tar.xz 8222256 BLAKE2B a5065cb49b549ea5eff33bc3a60ed070511cc463258666c30681aceaba97a108be059e4fc175bd6ba4dd0b27cf8bab14e0a8225346811eaacb4ddf8b2ba5a147 SHA512 2a5beadc61532d23f999c24101f3ab6db5d184a7327fa26330e318ac6b5b38b14c0e73ead2f550707b4e24c1f4f1a11c306c97608d98d530978fdeb43b4d58d9 |
39 |
DIST gentoo-headers-base-4.17.tar.xz 7908432 BLAKE2B b0f39145db10dba1998e3facfb0565dd240ba26ce4b2744cfaaca8cfa2890f70a69cf65464163e053a05b0bf4d464f251d90f1cc266de604da2f8dc0889b34c3 SHA512 4d1f8f7a392a8ffdd1144c1d3126473f91cddfe1f750e9c7916e75aec4c571c1c3d2508c0967db12d8ed3e27623c8b2a5e2a47ff1710d55fbba91a84ec8434d4 |
40 |
DIST gentoo-headers-base-4.18.tar.xz 7878256 BLAKE2B 9a97fed9ae4d16af57bb4aa069cceeb357ca79314ab57b6fbaec0dde75f9504b166a3b0017582bc00fc10b74298fcd4468332ef210e90e1e3daa4681b88e45f2 SHA512 c623b3962fe06150ecad60fa6c7c89e0ad83fad4c8886513f9948352ce0044420d8eb8ccdaa08f7bc957b892472041dd42709fbf396c93a0d0292ff7edbc713e |
41 |
DIST gentoo-headers-base-4.19.tar.xz 7956220 BLAKE2B 5b6868188b6cb505556b8f307972be6b27c0201e8287f6a2c4d0ac8bf16cfe048cb05afacf879731ba81de5e2a8c5afc4adad007e00b12efb8b2a158a666f4dd SHA512 ef0f159cb31651bf8e00c31d8ac807e64413c7bf88807e1ab4779524db10eec4726b65af0fad034a0cb2e000cd61a6008bcc174828061ffaf633c170dd09645c |
42 |
|
43 |
diff --git a/sys-kernel/linux-headers/linux-headers-4.13.ebuild b/sys-kernel/linux-headers/linux-headers-4.13.ebuild |
44 |
deleted file mode 100644 |
45 |
index 85e216f..0000000 |
46 |
--- a/sys-kernel/linux-headers/linux-headers-4.13.ebuild |
47 |
+++ /dev/null |
48 |
@@ -1,56 +0,0 @@ |
49 |
-# Copyright 1999-2018 Gentoo Foundation |
50 |
-# Distributed under the terms of the GNU General Public License v2 |
51 |
- |
52 |
-EAPI="5" |
53 |
- |
54 |
-ETYPE="headers" |
55 |
-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" |
56 |
-inherit kernel-2 |
57 |
-detect_version |
58 |
- |
59 |
-PATCH_VER="1" |
60 |
-SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz |
61 |
- ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}" |
62 |
- |
63 |
-KEYWORDS="amd64 arm arm64 ~mips ppc x86" |
64 |
- |
65 |
-DEPEND="app-arch/xz-utils |
66 |
- dev-lang/perl" |
67 |
-RDEPEND="!!media-sound/alsa-headers" |
68 |
- |
69 |
-S=${WORKDIR}/gentoo-headers-base-${PV} |
70 |
- |
71 |
-src_unpack() { |
72 |
- unpack ${A} |
73 |
-} |
74 |
- |
75 |
-src_prepare() { |
76 |
- [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV} |
77 |
- epatch "${FILESDIR}"/libc-4.8-portability.patch |
78 |
-} |
79 |
- |
80 |
-src_install() { |
81 |
- kernel-2_src_install |
82 |
- |
83 |
- # hrm, build system sucks |
84 |
- find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete |
85 |
- find "${ED}" -depth -type d -delete 2>/dev/null |
86 |
-} |
87 |
- |
88 |
-src_test() { |
89 |
- # Make sure no uapi/ include paths are used by accident. |
90 |
- egrep -r \ |
91 |
- -e '# *include.*["<]uapi/' \ |
92 |
- "${D}" && die "#include uapi/xxx detected" |
93 |
- |
94 |
- einfo "Possible unescaped attribute/type usage" |
95 |
- egrep -r \ |
96 |
- -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \ |
97 |
- -e '\<([us](8|16|32|64))\>' \ |
98 |
- . |
99 |
- |
100 |
- einfo "Missing linux/types.h include" |
101 |
- egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h |
102 |
- |
103 |
- emake ARCH=$(tc-arch-kernel) headers_check |
104 |
-} |
105 |
|
106 |
diff --git a/sys-kernel/linux-headers/linux-headers-4.14.ebuild b/sys-kernel/linux-headers/linux-headers-4.14.ebuild |
107 |
deleted file mode 100644 |
108 |
index e327111..0000000 |
109 |
--- a/sys-kernel/linux-headers/linux-headers-4.14.ebuild |
110 |
+++ /dev/null |
111 |
@@ -1,58 +0,0 @@ |
112 |
-# Copyright 1999-2017 Gentoo Foundation |
113 |
-# Distributed under the terms of the GNU General Public License v2 |
114 |
- |
115 |
-EAPI=6 |
116 |
- |
117 |
-ETYPE="headers" |
118 |
-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" |
119 |
-inherit kernel-2 |
120 |
-detect_version |
121 |
- |
122 |
-PATCH_VER="1" |
123 |
-SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz |
124 |
- ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}" |
125 |
- |
126 |
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86" |
127 |
- |
128 |
-DEPEND="app-arch/xz-utils |
129 |
- dev-lang/perl" |
130 |
-RDEPEND="!!media-sound/alsa-headers" |
131 |
- |
132 |
-S=${WORKDIR}/gentoo-headers-base-${PV} |
133 |
- |
134 |
-src_unpack() { |
135 |
- unpack ${A} |
136 |
-} |
137 |
- |
138 |
-src_prepare() { |
139 |
- default |
140 |
- |
141 |
- [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV} |
142 |
- epatch "${FILESDIR}"/libc-4.8-portability.patch |
143 |
-} |
144 |
- |
145 |
-src_install() { |
146 |
- kernel-2_src_install |
147 |
- |
148 |
- # hrm, build system sucks |
149 |
- find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete |
150 |
- find "${ED}" -depth -type d -delete 2>/dev/null |
151 |
-} |
152 |
- |
153 |
-src_test() { |
154 |
- # Make sure no uapi/ include paths are used by accident. |
155 |
- egrep -r \ |
156 |
- -e '# *include.*["<]uapi/' \ |
157 |
- "${D}" && die "#include uapi/xxx detected" |
158 |
- |
159 |
- einfo "Possible unescaped attribute/type usage" |
160 |
- egrep -r \ |
161 |
- -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \ |
162 |
- -e '\<([us](8|16|32|64))\>' \ |
163 |
- . |
164 |
- |
165 |
- einfo "Missing linux/types.h include" |
166 |
- egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h |
167 |
- |
168 |
- emake ARCH=$(tc-arch-kernel) headers_check |
169 |
-} |
170 |
|
171 |
diff --git a/sys-kernel/linux-headers/linux-headers-4.15.ebuild b/sys-kernel/linux-headers/linux-headers-4.15.ebuild |
172 |
deleted file mode 100644 |
173 |
index dc0eb77..0000000 |
174 |
--- a/sys-kernel/linux-headers/linux-headers-4.15.ebuild |
175 |
+++ /dev/null |
176 |
@@ -1,58 +0,0 @@ |
177 |
-# Copyright 1999-2018 Gentoo Foundation |
178 |
-# Distributed under the terms of the GNU General Public License v2 |
179 |
- |
180 |
-EAPI="6" |
181 |
- |
182 |
-ETYPE="headers" |
183 |
-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" |
184 |
-inherit kernel-2 |
185 |
-detect_version |
186 |
- |
187 |
-PATCH_VER="1" |
188 |
-SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz |
189 |
- ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}" |
190 |
- |
191 |
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86" |
192 |
- |
193 |
-DEPEND="app-arch/xz-utils |
194 |
- dev-lang/perl" |
195 |
-RDEPEND="!!media-sound/alsa-headers" |
196 |
- |
197 |
-S=${WORKDIR}/gentoo-headers-base-${PV} |
198 |
- |
199 |
-src_unpack() { |
200 |
- unpack ${A} |
201 |
-} |
202 |
- |
203 |
-src_prepare() { |
204 |
- default |
205 |
- |
206 |
- [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV} |
207 |
- epatch "${FILESDIR}"/libc-4.15-portability.patch |
208 |
-} |
209 |
- |
210 |
-src_install() { |
211 |
- kernel-2_src_install |
212 |
- |
213 |
- # hrm, build system sucks |
214 |
- find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete |
215 |
- find "${ED}" -depth -type d -delete 2>/dev/null |
216 |
-} |
217 |
- |
218 |
-src_test() { |
219 |
- # Make sure no uapi/ include paths are used by accident. |
220 |
- egrep -r \ |
221 |
- -e '# *include.*["<]uapi/' \ |
222 |
- "${D}" && die "#include uapi/xxx detected" |
223 |
- |
224 |
- einfo "Possible unescaped attribute/type usage" |
225 |
- egrep -r \ |
226 |
- -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \ |
227 |
- -e '\<([us](8|16|32|64))\>' \ |
228 |
- . |
229 |
- |
230 |
- einfo "Missing linux/types.h include" |
231 |
- egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h |
232 |
- |
233 |
- emake ARCH=$(tc-arch-kernel) headers_check |
234 |
-} |
235 |
|
236 |
diff --git a/sys-kernel/linux-headers/linux-headers-4.16-r1.ebuild b/sys-kernel/linux-headers/linux-headers-4.16-r1.ebuild |
237 |
deleted file mode 100644 |
238 |
index 809c610..0000000 |
239 |
--- a/sys-kernel/linux-headers/linux-headers-4.16-r1.ebuild |
240 |
+++ /dev/null |
241 |
@@ -1,61 +0,0 @@ |
242 |
-# Copyright 1999-2018 Gentoo Foundation |
243 |
-# Distributed under the terms of the GNU General Public License v2 |
244 |
- |
245 |
-EAPI="6" |
246 |
- |
247 |
-ETYPE="headers" |
248 |
-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" |
249 |
-inherit kernel-2 |
250 |
-detect_version |
251 |
- |
252 |
-PATCH_VER="1" |
253 |
-SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}-r1.tar.xz |
254 |
- ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz} |
255 |
- https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-base-${PV}-r1.tar.xz |
256 |
- ${PATCH_VER:+https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-${PV}-${PATCH_VER}.tar.xz} |
257 |
-" |
258 |
- |
259 |
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86" |
260 |
- |
261 |
-DEPEND="app-arch/xz-utils |
262 |
- dev-lang/perl" |
263 |
-RDEPEND="!!media-sound/alsa-headers" |
264 |
- |
265 |
-S=${WORKDIR}/gentoo-headers-base-${PV} |
266 |
- |
267 |
-src_unpack() { |
268 |
- unpack ${A} |
269 |
-} |
270 |
- |
271 |
-src_prepare() { |
272 |
- default |
273 |
- |
274 |
- [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV} |
275 |
- epatch "${FILESDIR}"/libc-4.16-portability.patch |
276 |
-} |
277 |
- |
278 |
-src_install() { |
279 |
- kernel-2_src_install |
280 |
- |
281 |
- # hrm, build system sucks |
282 |
- find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete |
283 |
- find "${ED}" -depth -type d -delete 2>/dev/null |
284 |
-} |
285 |
- |
286 |
-src_test() { |
287 |
- # Make sure no uapi/ include paths are used by accident. |
288 |
- egrep -r \ |
289 |
- -e '# *include.*["<]uapi/' \ |
290 |
- "${D}" && die "#include uapi/xxx detected" |
291 |
- |
292 |
- einfo "Possible unescaped attribute/type usage" |
293 |
- egrep -r \ |
294 |
- -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \ |
295 |
- -e '\<([us](8|16|32|64))\>' \ |
296 |
- . |
297 |
- |
298 |
- einfo "Missing linux/types.h include" |
299 |
- egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h |
300 |
- |
301 |
- emake ARCH=$(tc-arch-kernel) headers_check |
302 |
-} |
303 |
|
304 |
diff --git a/sys-kernel/linux-headers/linux-headers-4.16.ebuild b/sys-kernel/linux-headers/linux-headers-4.16.ebuild |
305 |
deleted file mode 100644 |
306 |
index f8e7153..0000000 |
307 |
--- a/sys-kernel/linux-headers/linux-headers-4.16.ebuild |
308 |
+++ /dev/null |
309 |
@@ -1,61 +0,0 @@ |
310 |
-# Copyright 1999-2018 Gentoo Foundation |
311 |
-# Distributed under the terms of the GNU General Public License v2 |
312 |
- |
313 |
-EAPI="6" |
314 |
- |
315 |
-ETYPE="headers" |
316 |
-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" |
317 |
-inherit kernel-2 |
318 |
-detect_version |
319 |
- |
320 |
-PATCH_VER="1" |
321 |
-SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz |
322 |
- ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz} |
323 |
- https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-base-${PV}.tar.xz |
324 |
- ${PATCH_VER:+https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-${PV}-${PATCH_VER}.tar.xz} |
325 |
-" |
326 |
- |
327 |
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86" |
328 |
- |
329 |
-DEPEND="app-arch/xz-utils |
330 |
- dev-lang/perl" |
331 |
-RDEPEND="!!media-sound/alsa-headers" |
332 |
- |
333 |
-S=${WORKDIR}/gentoo-headers-base-${PV} |
334 |
- |
335 |
-src_unpack() { |
336 |
- unpack ${A} |
337 |
-} |
338 |
- |
339 |
-src_prepare() { |
340 |
- default |
341 |
- |
342 |
- [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV} |
343 |
- epatch "${FILESDIR}"/libc-4.16-portability.patch |
344 |
-} |
345 |
- |
346 |
-src_install() { |
347 |
- kernel-2_src_install |
348 |
- |
349 |
- # hrm, build system sucks |
350 |
- find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete |
351 |
- find "${ED}" -depth -type d -delete 2>/dev/null |
352 |
-} |
353 |
- |
354 |
-src_test() { |
355 |
- # Make sure no uapi/ include paths are used by accident. |
356 |
- egrep -r \ |
357 |
- -e '# *include.*["<]uapi/' \ |
358 |
- "${D}" && die "#include uapi/xxx detected" |
359 |
- |
360 |
- einfo "Possible unescaped attribute/type usage" |
361 |
- egrep -r \ |
362 |
- -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \ |
363 |
- -e '\<([us](8|16|32|64))\>' \ |
364 |
- . |
365 |
- |
366 |
- einfo "Missing linux/types.h include" |
367 |
- egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h |
368 |
- |
369 |
- emake ARCH=$(tc-arch-kernel) headers_check |
370 |
-} |