Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/vanilla-kernel/
Date: Fri, 24 Jan 2020 19:18:55
Message-Id: 1579893516.80f6593ffb70de5c6b8a519805c2789aa58fd849.mgorny@gentoo
1 commit: 80f6593ffb70de5c6b8a519805c2789aa58fd849
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 24 05:42:37 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 24 19:18:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80f6593f
7
8 sys-kernel/vanilla-kernel: Bump to 4.19.98
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-kernel/vanilla-kernel/Manifest | 1 +
13 .../vanilla-kernel/vanilla-kernel-4.19.98.ebuild | 73 ++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
17 index b1d4a6b620f..d11f2217529 100644
18 --- a/sys-kernel/vanilla-kernel/Manifest
19 +++ b/sys-kernel/vanilla-kernel/Manifest
20 @@ -2,6 +2,7 @@ DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc6
21 DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2ddfe423ab423bcc3b9ea8bd9cda65cc7ffa4b1be782c48c867c13e46070af4016f446860f5cf71351f239da1eff6c45a5aa6a SHA512 a5658c8e8464516dffd6f624344e739784cb315d334b2c5105bd5d16022b6366ad4ec00d3692a7b78e2458514175522bc85e834bf19593feff6363b616860258
22 DIST linux-4.19.96.tar.xz 103395480 BLAKE2B 1bc24dd40d427e088e1569be4d5964ae92028ce6ce7e549734837040c5043b5ef4aae572b1430ea5c03f67b7f071e18c4f58a24a63dcb342f18aecf2401ab9a8 SHA512 1fb1ee24429f2183b7e6b85d34e4c88f9c2a82ed95de1b7ca2db3d8ee4815ebcd05cdb171f93e1b0e85f9ffbc3a6fa8c66adceb240d3bf9c38afcc32f21c8dcf
23 DIST linux-4.19.97.tar.xz 103398892 BLAKE2B b9e69d52c25ea0d02f61eea31f7d14d109a668c8ec775d1e8f3d0f70527e272172e9cab2b348e5671c466780efe5d16c0c051418bc1b6ad4c508555d9a476a99 SHA512 7988c5ebf453cffa9f89a3fbaa875afc4ca34cbf684158eaeebd1c709ac6224ea8b3581ec5d2ab09aa55ae0e47170ab30dbafb2688cf28456e2e98b6b2ba986a
24 +DIST linux-4.19.98.tar.xz 103395152 BLAKE2B 622b8f8be3b20f40a0fc4029667077dc0cbb6ce319827967b8749067957af271e1794e1184853351b040a6a1ae5f1a68c769e89db8fe91b3e206d3608bcd89be SHA512 701513873826326cedfc2a1dbb7796f0047f7105bd1cb6478595676b5c3be7be71752398dc3c4a638f0853824ff3426ea9d20448264e1b0c126c3f0eba763ac6
25 DIST linux-5.4.12.tar.xz 109451372 BLAKE2B f08d30011b2021724a240f45a4d0a92ba01b97d0d2d33ce0d88aeb6dfb0a2e5a532fd55ad0a2ef0e3ec160cb23b351a09b494382e80b0db85bcfe7cfeaa554dd SHA512 d178d775b5d6204b2f53c38ecf81d52141a5520b63e758992c75a59d983e448db2a0c220a17b62588baaad1eda2d9b4a6a86e757f5d50041170559ef6bbc2da0
26 DIST linux-5.4.13-arch1.i686.config 239816 BLAKE2B e776321fa163759332e7b5e3cca6a8a3f7124fc7a5bdd498f0aeaec1f2a819f27a87ca6f9f3fb0f0b9f28e8ba6f207bb27c5e48a494664d21ea3845e99b1eab4 SHA512 4e083028a140fcd2e65bba3c39e9d7bf9004e114b3233e8c2ab9e67405a3db9179c10a9564407bf19875317a352453f3e02f137297941277f694e687d3b97674
27 DIST linux-5.4.13.arch1.amd64.config 241498 BLAKE2B 3c6d13d84ea75247fae4f4474648abe295fb6ea577d4c9becc58551c3954d35a72edd5937b7bb345f783fe2015940035d5f6766e08e5a9dd6b8723cc69c85ee6 SHA512 3039a333f3000f416bfccd7efdc54c8ea07d9b01b349be87f83b7dcb3e0f13a1f3fb02ccae42412cf28958aa7df42ef73f87e637269c7525476d73682596fa07
28
29 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-4.19.98.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-4.19.98.ebuild
30 new file mode 100644
31 index 00000000000..03ea40f919c
32 --- /dev/null
33 +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-4.19.98.ebuild
34 @@ -0,0 +1,73 @@
35 +# Copyright 2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit kernel-build
41 +
42 +MY_P=linux-${PV}
43 +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts
44 +AMD64_CONFIG_VER=4.19.92-arch1
45 +AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9
46 +# https://git.archlinux32.org/packages/log/core/linux-lts/config
47 +I686_CONFIG_VER=4.19.85-arch1
48 +I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c
49 +
50 +DESCRIPTION="Linux kernel built from vanilla upstream sources"
51 +HOMEPAGE="https://www.kernel.org/"
52 +SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
53 + amd64? (
54 + https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH}
55 + -> linux-${AMD64_CONFIG_VER}.amd64.config
56 + )
57 + x86? (
58 + https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH}
59 + -> linux-${I686_CONFIG_VER}.i686.config
60 + )"
61 +S=${WORKDIR}/${MY_P}
62 +
63 +LICENSE="GPL-2"
64 +KEYWORDS="~amd64 ~x86"
65 +
66 +RDEPEND="
67 + !sys-kernel/vanilla-kernel-bin:${SLOT}"
68 +
69 +pkg_pretend() {
70 + mount-boot_pkg_pretend
71 +
72 + ewarn "This is an experimental package. The built kernel and/or initramfs"
73 + ewarn "may not work at all or fail with your bootloader configuration. Please"
74 + ewarn "make sure to keep a backup kernel available before testing it."
75 +}
76 +
77 +src_prepare() {
78 + default
79 +
80 + # prepare the default config
81 + case ${ARCH} in
82 + amd64)
83 + cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
84 + ;;
85 + x86)
86 + cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
87 + ;;
88 + *)
89 + die "Unsupported arch ${ARCH}"
90 + ;;
91 + esac
92 +
93 + local config_tweaks=(
94 + # shove arch under the carpet!
95 + -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
96 + # we do support x32
97 + -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
98 + # disable signatures
99 + -e '/CONFIG_MODULE_SIG/d'
100 + -e '/CONFIG_SECURITY_LOCKDOWN/d'
101 + # disable compression to allow stripping
102 + -e '/CONFIG_MODULE_COMPRESS/d'
103 + # disable gcc plugins to unbreak distcc
104 + -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
105 + )
106 + sed -i "${config_tweaks[@]}" .config || die
107 +}