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: Mon, 27 Jan 2020 09:48:42
Message-Id: 1580118506.dc4cac6be68a0c9e8c018a8d386992ca580871bc.mgorny@gentoo
1 commit: dc4cac6be68a0c9e8c018a8d386992ca580871bc
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 27 07:23:46 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 27 09:48:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc4cac6b
7
8 sys-kernel/vanilla-kernel: Bump to 5.4.15
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-5.4.15.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 d11f2217529..54eb456d028 100644
18 --- a/sys-kernel/vanilla-kernel/Manifest
19 +++ b/sys-kernel/vanilla-kernel/Manifest
20 @@ -8,6 +8,7 @@ DIST linux-5.4.13-arch1.i686.config 239816 BLAKE2B e776321fa163759332e7b5e3cca6a
21 DIST linux-5.4.13.arch1.amd64.config 241498 BLAKE2B 3c6d13d84ea75247fae4f4474648abe295fb6ea577d4c9becc58551c3954d35a72edd5937b7bb345f783fe2015940035d5f6766e08e5a9dd6b8723cc69c85ee6 SHA512 3039a333f3000f416bfccd7efdc54c8ea07d9b01b349be87f83b7dcb3e0f13a1f3fb02ccae42412cf28958aa7df42ef73f87e637269c7525476d73682596fa07
22 DIST linux-5.4.13.tar.xz 109463864 BLAKE2B d610a2bf375c9147b26d6e314c1e86b9f32453572c1e8a859be3ac5fa42d7ba647334ef76a92a7e1e61f78fa256692bec3d62003589017840a37947d9d5b1de0 SHA512 e7aaa541ccf66ca8373fe53794786c8b819da824b17acc497d5080f4fff5bef90bab1da531fa8f62a013f40472f5c1dfafb4bd4f42ecc1bf851042d22e72c4a7
23 DIST linux-5.4.14.tar.xz 109457772 BLAKE2B eb0286a193b29754562771905db13e6d2140dc577d88be8e8f91f0ab77b9adbe915bb74e89e10e5dce3763f3efce6204c973f5d3341dba9e11ecb544500be5a3 SHA512 8bf032249dd98ee557cccc3f75ea451386c3cb0a2a0f17344672856220ff98ec86f6f745d15fc09a8c5fae6ceecaaa76fd2067963eae0e942c98d56141b4e537
24 +DIST linux-5.4.15.tar.xz 109461584 BLAKE2B 0384ac416aaca05ac73e77fae2cf85b2d773f343aa9a95191818a237354904b2c36404cbe08e373be832fa9f17c7961362dfe3be50f8cfe040c2eaddbab37da1 SHA512 be890d2f893e4470bf51ea84e60088e33420083ffd39e50d204a063e8405176035f2364333657ebabdd68bd4635ae3ea535d0c939de6c88e3e118c3619be1866
25 DIST linux-5.4.7-arch1.i686.config 241295 BLAKE2B da45f2de600fafdb48e9bb37e6f7a8ea57ed31dc6fb47062bcee694db0b824844c0556ad6a88afa33bf3a365f50c9ac6326389cfa87d0e47a012252fa1444536 SHA512 dcfd9c03cbafeeb942fd37c1f18432aeeacaff438cb88528e17aa8c28bae20090695a2acad08a707e66ecaa5851aa47b012baa6d9274c617fa8c71cde641e8ec
26 DIST linux-5.4.7.arch1-1.amd64.config 241598 BLAKE2B 536cce5cc23cf20e71cba7468a125557f85d8ffc3cb194dced79bd489d39f2e4ed3960816d15d1491007d11b3af466e0a74267f983dfcc5f511f9f566f7e9821 SHA512 8658db603e180c75caf76972d85ecf8a4e9c9cf6e047b4f9fc7cba0fa426f434361528c1c29b5580f116cdd23091bf9afb6635d751f3b90c4e968d16db90eac1
27 DIST tinycorelinux-10.1-amd64.qcow2 16842752 BLAKE2B e013e76503c335739a9623c0901ca791937a0e6b177854535cadec1e2c2cd2df588283ed3128cf652595f32264fbfe5b3bd3a8c97665fd4da344e308535be366 SHA512 c3aeb20ff8769da9211694b7f701907cc7ae7582cdfad2c2fdc008d97ebcbd9dc08245b4e8f8450e1cb304bd705345a11fe79f901a47979fee91443841d55641
28
29 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.15.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.15.ebuild
30 new file mode 100644
31 index 00000000000..a561b6b07c1
32 --- /dev/null
33 +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.15.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
44 +AMD64_CONFIG_VER=5.4.13.arch1
45 +AMD64_CONFIG_HASH=9eed969590614a38d370a9fe04a4f5d38ba5e06e
46 +# https://git.archlinux32.org/packages/log/core/linux/config.i686
47 +I686_CONFIG_VER=5.4.13-arch1
48 +I686_CONFIG_HASH=95f890a9f9131e7a0e01a4f3e9c5ee423756a233
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&id=${AMD64_CONFIG_HASH}
55 + -> linux-${AMD64_CONFIG_VER}.amd64.config
56 + )
57 + x86? (
58 + https://git.archlinux32.org/packages/plain/core/linux/config.i686?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 +}