Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/linux-headers/
Date: Sat, 22 Jun 2019 15:57:50
Message-Id: 1561219058.c6fce3a6d36b9df6bf87ef914fb899c9c97fd480.slyfox@gentoo
1 commit: c6fce3a6d36b9df6bf87ef914fb899c9c97fd480
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 22 15:57:19 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 22 15:57:38 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6fce3a6
7
8 sys-kernel/linux-headers: bump up to 5.1
9
10 This is the first gentoo release where we don't use rip-headers.sh
11 and use upstream tarball directly to provide us headers.
12
13 It will increase time and temporary space to unpack a tarball
14 but it should be comparable or smaller than other toolchain
15 packages like gcc or glibc. It's a reasonable price not to
16 maintain our header ripping tools. More maintainable solution
17 would be for upstream to provide headers-dist Makefile target
18 (and tarballs).
19
20 Reported-by: jamesrutledge <AT> earthlink.net
21 Closes: https://bugs.gentoo.org/686892
22 Package-Manager: Portage-2.3.67, Repoman-2.3.15
23 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
24
25 sys-kernel/linux-headers/Manifest | 2 +
26 sys-kernel/linux-headers/linux-headers-5.1.ebuild | 45 +++++++++++++++++++++++
27 2 files changed, 47 insertions(+)
28
29 diff --git a/sys-kernel/linux-headers/Manifest b/sys-kernel/linux-headers/Manifest
30 index 4f4e3c443f5..efab67e8c98 100644
31 --- a/sys-kernel/linux-headers/Manifest
32 +++ b/sys-kernel/linux-headers/Manifest
33 @@ -10,6 +10,7 @@ DIST gentoo-headers-4.20-1.tar.xz 4040 BLAKE2B 05f8cae4014a6f0ad926e704d5272b052
34 DIST gentoo-headers-4.4-1.tar.xz 6624 BLAKE2B 9cdf0c22520e413f175942c4994dd90b0fed8f72c67332a05e7ed72b901ee04594f4e4a3c0252e0a6e057d9c08c4d653387dc36cda82ce9ef8a16e7317ba9ea0 SHA512 dd8a5c627a9cd373022d7afa1beb126f15694f80452821f31fc5c1a3439635814d205bcbc873a5869946472d86cdec872a44f4870751b96d42e89893fca1b983
35 DIST gentoo-headers-4.9-1.tar.xz 5416 BLAKE2B 2538870b340d4e4b260ada37b0571ba770a4bf93b0f0cf78819b4bf68b8ddc43c314d7fc5d12a78bc71c9bb12306d986ae0ae74159ec7edc7deea371f6b5f015 SHA512 1069f50c58f25ceb8a13c8e53dce6a21e352e2a624da3b9a6d139939e7613e9a97226eb0173fa060ee69443c6a50b53b6d5c6d752dcaebffbe2a78f06cfbe2b6
36 DIST gentoo-headers-5.0-1.tar.xz 4040 BLAKE2B e26c8a76207603b96c63ef556e10d88cf549a318f89b5d07f0f37ac4f50625d0d17b794f8904e0cb35fb2074b3b09ee5fc09a1855779790da6e9fe569017e094 SHA512 51aeb2c5b6e232a193ead486a85b148f59c378d4208a2aecfa6647272fdf248705ce37b7d22baf84b688bbcfa283d16031757b7cd3952d739ef9c20ae71bd615
37 +DIST gentoo-headers-5.1-1.tar.xz 4040 BLAKE2B 556faf2b2ef4dd0ccfc6bbf884e41a3ca0645d4e762121fe22f79950ca20ab07ab7c6179c022107c81b072a4bc1e4c70a750e837a371a9937df8d1bed3e751f6 SHA512 df56638d4b4971ee1cec7355a23bfe125cc6baeece8579ef4b0cd79b5c4015eb7593525815eba55d4a3b30f007c1be499a6b5aefab533ccc564406fe40e1a337
38 DIST gentoo-headers-base-3.18.tar.xz 3776668 BLAKE2B 837a675ecf05ec270549d0ba6b9dcb98fb0e40f22007ebfa3e430152b7149dcfa29c8bbe38c737add07f75642234f1633c1d5ae0170788e8d4f765faf00bbdbe SHA512 6615c604e5e618d26fff5a61691f7827bb05be9790db6c9f8e16e3842bce8f056f9928f85ae5714710b75743b0d0804faba4ba9c76e934e1de22dc03ef6d5535
39 DIST gentoo-headers-base-4.13.tar.xz 7951980 BLAKE2B 8b3b5d9152455b08bf06c275a69168f8a2418584058e23f784d3ab956d72b100b89d398bfeb351d8faa8285cd9ae8942726099ce9aa3fd94b8e0e92b8de1c217 SHA512 3b528e18199d43db3f51c8fb9a5a4c67b9317ea7e9b9fd82fe2cb4d704bbc1253f2af64dc79377ee8ec26511d0893409e3dddbb9a6ae11e8bb7f4ca4d8d3ac9a
40 DIST gentoo-headers-base-4.14.tar.xz 8017944 BLAKE2B e967a3f26fa002f62af72c165cf960e855f5d84dd105b3f136e5ae24f4cdfc9e5f8b217a83955b325ca4bd6bda0a9d4c4de02d8d79fd4aa72191bc63db96183a SHA512 2a4e83a9ee36ffa85b59ebac1e12f4f1c572825b767928a42c4748d924d04f0536bab4d9375ca68c11ad867c226f386c40c7c4d0158d1ab00c838eb5b2f9f21a
41 @@ -24,3 +25,4 @@ DIST gentoo-headers-base-4.4.tar.xz 3911752 BLAKE2B 5031ecd48b99cb0c9c35ca935fa6
42 DIST gentoo-headers-base-4.9.tar.xz 4052748 BLAKE2B e279954c56170fbfa4ebae8dade731825b3d5f0cd5d73a5b33cd93a9c8f5fa140e14edf0d5ac26a452fe8a61b16fdcc851f5329f56e4c8dcf4472a995de44c4c SHA512 a03418cfba7fa4531279d9122411af3e285e962506e8df9279fbbb27ae08a4e30725bd1cf03f48ad523f61f2889195e6c844fa4c7b4ef2f828baf47ef402abfa
43 DIST gentoo-headers-base-5.0-bug-679630.tar.xz 8102772 BLAKE2B b5ee691936b704133373027618b8a281371ee9ebbf6166b33af427d733e48ba3a9ea3f2d7be370b76769d6cae9cff01727d519a21789fcd95cee14d8cb285bf0 SHA512 59ef893a397a75bc0a87653de79be3bfbe12a952b325a679a940b0f59ecc853b3ffbed9a8c7eced81a082c3ba4471c9429841b52d8c64c6d49c69f727314f192
44 DIST gentoo-headers-base-5.0.tar.xz 8077316 BLAKE2B 3ee8472bb6f57b3070f8e8efea98e581cac5be88cc1218c031e04949fb2d4f06a660dc5e968da5dbbdca8b9428700c9427b35c85d5ac53338490fca7dc0ff427 SHA512 dc02d569f3dc8c197aeacafe55582723626c7aa52144a671d13652e6fbd40a468088a644f0206d37a620fd34d306b424c0d0d96260c5241a497689f7ef8b9011
45 +DIST linux-5.1.tar.xz 106244476 BLAKE2B ae3c63ced819737e34f8ec3a78138f87704a2f2956454411e3a4830ec8c0aaf2c288af6ca080f1892540e50f4a422482360010be8641afdeeeaf7231e7d8da97 SHA512 ae96f347badc95f1f3acf506c52b6cc23c0bd09ce8f4ce6705d4b4058b62593059bba1bc603c8d8b00a2f19131e7e56c31ac62b45883a346fa61d655e178f236
46
47 diff --git a/sys-kernel/linux-headers/linux-headers-5.1.ebuild b/sys-kernel/linux-headers/linux-headers-5.1.ebuild
48 new file mode 100644
49 index 00000000000..fcf1ccad796
50 --- /dev/null
51 +++ b/sys-kernel/linux-headers/linux-headers-5.1.ebuild
52 @@ -0,0 +1,45 @@
53 +# Copyright 1999-2019 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI="6"
57 +
58 +ETYPE="headers"
59 +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"
60 +inherit kernel-2
61 +detect_version
62 +
63 +PATCH_VER="1"
64 +SRC_URI="${KERNEL_URI}
65 + ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
66 + ${PATCH_VER:+https://dev.gentoo.org/~slyfox/distfiles/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}
67 +"
68 +
69 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
70 +
71 +DEPEND="app-arch/xz-utils
72 + dev-lang/perl"
73 +RDEPEND=""
74 +
75 +S=${WORKDIR}/linux-${PV}
76 +
77 +src_unpack() {
78 + unpack ${A}
79 +}
80 +
81 +src_prepare() {
82 + default
83 +
84 + [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}"/${PV}/*.patch
85 +}
86 +
87 +src_install() {
88 + kernel-2_src_install
89 +
90 + # hrm, build system sucks
91 + find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
92 + find "${ED}" -depth -type d -delete 2>/dev/null
93 +}
94 +
95 +src_test() {
96 + emake ARCH=$(tc-arch-kernel) headers_check
97 +}