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: Thu, 09 Jan 2020 21:36:49
Message-Id: 1578605798.126fd20d75021865af737ca1fe686e90c891b084.mgorny@gentoo
1 commit: 126fd20d75021865af737ca1fe686e90c891b084
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 5 13:19:36 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 9 21:36:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=126fd20d
7
8 sys-kernel/vanilla-kernel: Bump to 4.19.94 LTS
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-kernel/vanilla-kernel/Manifest | 3 +
13 .../vanilla-kernel-4.19.94-r1.ebuild | 71 ++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
17 index 26dcb4ed4d0..5780431307e 100644
18 --- a/sys-kernel/vanilla-kernel/Manifest
19 +++ b/sys-kernel/vanilla-kernel/Manifest
20 @@ -1,3 +1,6 @@
21 +DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d
22 +DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2ddfe423ab423bcc3b9ea8bd9cda65cc7ffa4b1be782c48c867c13e46070af4016f446860f5cf71351f239da1eff6c45a5aa6a SHA512 a5658c8e8464516dffd6f624344e739784cb315d334b2c5105bd5d16022b6366ad4ec00d3692a7b78e2458514175522bc85e834bf19593feff6363b616860258
23 +DIST linux-4.19.94.tar.xz 103389152 BLAKE2B 291db6f448606a4ba288295b4b1c0b813e736534e4749a152baa1d07fcf52bba2b59e7b4b261594a2deb9ad961afec50a28b4ec126f97033f1c0a36aba9f2961 SHA512 c6017e854ec06054c658042c2e8227d79284ecdadf0a2e1c5da799ca2ac165a266e7d33aa52361d0036ddb3059e3b24f0a68b45ffd84d87394d3f41492f6f9a4
24 DIST linux-5.4.10.tar.xz 109453652 BLAKE2B 88706cfc05ec1cc201f08e069dc6ad4f8e6fb49dbef5937208ba1e752e18b46639a5d32d4d0e270a0f2f6ed872aed70beeb2b0367d41fe443437331902a90bb2 SHA512 6328ad7e18b6fa982415b0de75e3384f58ce8428bd8c212871a31f3885a0819d241138d384b2e6d1b74a1d260229a027f9c1674a65f5b6c48e6b25e3024a0974
25 DIST linux-5.4.3-arch1.i686.config 241295 BLAKE2B 795b6286bd1e7dc6aa5c1428e7bf08c204ce6c8cbee57863e9f64f8990790cc4398a7d062b54c89b1b80640f02a40fce028d9397725db0f968e8028b0611a20f SHA512 8c7387ded21c02b9cffee0e6d61a7040c44deae21764f743f7719f0d1c7adf684f6b62a501fe31709787ba741859e55fc3b8a3d3d27e52c09f2d8604212bf0a7
26 DIST linux-5.4.7.arch1-1.amd64.config 241598 BLAKE2B 536cce5cc23cf20e71cba7468a125557f85d8ffc3cb194dced79bd489d39f2e4ed3960816d15d1491007d11b3af466e0a74267f983dfcc5f511f9f566f7e9821 SHA512 8658db603e180c75caf76972d85ecf8a4e9c9cf6e047b4f9fc7cba0fa426f434361528c1c29b5580f116cdd23091bf9afb6635d751f3b90c4e968d16db90eac1
27
28 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-4.19.94-r1.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-4.19.94-r1.ebuild
29 new file mode 100644
30 index 00000000000..18607be7483
31 --- /dev/null
32 +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-4.19.94-r1.ebuild
33 @@ -0,0 +1,71 @@
34 +# Copyright 2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit kernel-build
40 +
41 +MY_P=linux-${PV}
42 +AMD64_CONFIG_VER=4.19.92-arch1
43 +AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9
44 +I686_CONFIG_VER=4.19.85-arch1
45 +I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c
46 +
47 +DESCRIPTION="Linux kernel built from vanilla upstream sources"
48 +HOMEPAGE="https://www.kernel.org/"
49 +SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
50 + amd64? (
51 + https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH}
52 + -> linux-${AMD64_CONFIG_VER}.amd64.config
53 + )
54 + x86? (
55 + https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH}
56 + -> linux-${I686_CONFIG_VER}.i686.config
57 + )"
58 +S=${WORKDIR}/${MY_P}
59 +
60 +LICENSE="GPL-2"
61 +KEYWORDS="~amd64 ~x86"
62 +
63 +RDEPEND="
64 + !sys-kernel/vanilla-kernel-bin:${SLOT}"
65 +
66 +pkg_pretend() {
67 + mount-boot_pkg_pretend
68 +
69 + ewarn "This is an experimental package. The built kernel and/or initramfs"
70 + ewarn "may not work at all or fail with your bootloader configuration. Please"
71 + ewarn "make sure to keep a backup kernel available before testing it."
72 +}
73 +
74 +src_prepare() {
75 + default
76 +
77 + # prepare the default config
78 + case ${ARCH} in
79 + amd64)
80 + cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
81 + ;;
82 + x86)
83 + cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
84 + ;;
85 + *)
86 + die "Unsupported arch ${ARCH}"
87 + ;;
88 + esac
89 +
90 + local config_tweaks=(
91 + # shove arch under the carpet!
92 + -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
93 + # we do support x32
94 + -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
95 + # disable signatures
96 + -e '/CONFIG_MODULE_SIG/d'
97 + -e '/CONFIG_SECURITY_LOCKDOWN/d'
98 + # disable compression to allow stripping
99 + -e '/CONFIG_MODULE_COMPRESS/d'
100 + # disable gcc plugins to unbreak distcc
101 + -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
102 + )
103 + sed -i "${config_tweaks[@]}" .config || die
104 +}