1 |
commit: bae961877133c2c63b5477c2c3434885870abf48 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 24 05:43:21 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 24 19:18:37 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bae96187 |
7 |
|
8 |
sys-kernel/gentoo-kernel: Bump to 4.19.98 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-kernel/gentoo-kernel/Manifest | 2 + |
13 |
.../gentoo-kernel/gentoo-kernel-4.19.98.ebuild | 83 ++++++++++++++++++++++ |
14 |
2 files changed, 85 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest |
17 |
index ed1022ec929..dd1947d1be6 100644 |
18 |
--- a/sys-kernel/gentoo-kernel/Manifest |
19 |
+++ b/sys-kernel/gentoo-kernel/Manifest |
20 |
@@ -2,6 +2,8 @@ DIST genpatches-4.19-95.base.tar.xz 2780232 BLAKE2B cc5ba5e36acb8834ca2313ec134a |
21 |
DIST genpatches-4.19-95.extras.tar.xz 17492 BLAKE2B 5138c0138058e5dde744a056bf5068cc1db98cd3a52375d30ca72007d89d5c2b87e1493f1c3cc83cc7d0f1f489783ddf98f1b6d76b33ced4a7f18ae13e1b61cc SHA512 a1d5428a4aa5484dd26e4548a8796f54884541d4012e7591e0bf3c5f63fd9af242fa1719c5bda8e956e0be69f207adedfd0061ccbc00963ceb1272c03edb0e1a |
22 |
DIST genpatches-4.19-96.base.tar.xz 2796188 BLAKE2B 6f8506b0a275b8ae1d215fe4d3812a5d895c05f07db16f560e6cfb8d4945e9a9bc10afcf537c165f96fc111657ba2191c6720be15a49726e92cf6277f9aa1e5d SHA512 62334fd0c23acbbf3c0bfcecc6970501b7c500e24e628130e2d541b29363782757feb3b915e9b3d1210c538fde87d9eb6b64694af5110d55789efd29c8ccce5e |
23 |
DIST genpatches-4.19-96.extras.tar.xz 17496 BLAKE2B 11ccad1f1a7d67cbf5f39023b90321bfe8df1bbdb00a2e213f6a2dcb83445cf4e375de7465b266908f50540fe1e16280eeba99b03e2da8dfd96d72396c3a5ec6 SHA512 cd95d65fa56236e6303a22d5a9749912f70aeaee899c57f9c545e13696111dbcfbfee3757a42184164cae56f703b2af9072298dfaba35419bf05fe196692007d |
24 |
+DIST genpatches-4.19-97.base.tar.xz 2820340 BLAKE2B ff5f1b20776414a30d1f24291c6ae75887e6d63ed6501f400a0d55b375ed18172f1eddbb9aa3426c9bbc23f0cb6766d2152c05bf97f511ba6e25ce7a8238c1df SHA512 e27450fa0af491e06206fa911f52c61dd9fa74c8a1003bd2fa7212cba30050f85501825f9855962684903cb7cd817e8f42c649b85fd791d78596608ceb5e15a5 |
25 |
+DIST genpatches-4.19-97.extras.tar.xz 17488 BLAKE2B a96cac0a53187a9b05216e66122e70f828889b7a955282309f4e27bb44a90ceaba4b66acd1a9bf9a2a3d7b97be2eb62be6c6d4c0a71475a9dc05dc3b4b6c3820 SHA512 aef2f865e488d96c73c35f9f26a801eef4f41ac7f0ce78fa3263f3dbfdaecc67fa6a9d46c8fa4f0b1e7d0e8815743385de0c7105fe1851830498400ae1309209 |
26 |
DIST genpatches-5.4-12.base.tar.xz 449796 BLAKE2B c0d88dd19d2e71c877bfc4320801a4ed617444accad16440512ceb721e127200db522153db73640e3b00c66561eb497a09775f71d4a3ba528718850350ad9ad1 SHA512 edc638f64933078b2a6601b88ba030283cceed5e739ce43d1748d6d46196d75e02477ae30775f653bf664bc046b117164cd62572f32099a82816c536bdde4c2d |
27 |
DIST genpatches-5.4-12.extras.tar.xz 1740 BLAKE2B c9586b5120c0b177ce236f469ffc7412e7fa94cc97fd7b67b7bd888758c238fea15eb457fea847c6b4b7bc9475377c6c24c8a617e4cecee3360340234872d445 SHA512 771bb67ccc837bbfb3aeb129fb9110e3dc9972868fc43a6a5f2dc5ea2bcdacfecf65151e32427af34411238bcc1683438a99081bf09e1733cd5c8a09968a8d09 |
28 |
DIST genpatches-5.4-13.base.tar.xz 505168 BLAKE2B bf428eef66887c47006dd9713d7b5ffc4ed508d2d9a4e5a8f81eec5d39953779067307b30f5c2a94be047a1f7e149b02df8bfaebba9674474e3e44b4501c86db SHA512 e5690f03ea20f250443f9ff4857bd9c104637dfb4df15615841843035eca7283a4c12380db78cb7f6f9e3cc772a6d256d00584ad26ed72afe4706d3365ff2dcd |
29 |
|
30 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.98.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.98.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..4c339a8d3f8 |
33 |
--- /dev/null |
34 |
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.98.ebuild |
35 |
@@ -0,0 +1,83 @@ |
36 |
+# Copyright 2020 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+inherit kernel-build |
42 |
+ |
43 |
+MY_P=linux-4.19.94 |
44 |
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} - 1)) |
45 |
+# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts |
46 |
+AMD64_CONFIG_VER=4.19.92-arch1 |
47 |
+AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9 |
48 |
+# https://git.archlinux32.org/packages/log/core/linux-lts/config |
49 |
+I686_CONFIG_VER=4.19.85-arch1 |
50 |
+I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c |
51 |
+ |
52 |
+DESCRIPTION="Linux kernel built with Gentoo patches" |
53 |
+HOMEPAGE="https://www.kernel.org/" |
54 |
+SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
55 |
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
56 |
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
57 |
+ amd64? ( |
58 |
+ https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH} |
59 |
+ -> linux-${AMD64_CONFIG_VER}.amd64.config |
60 |
+ ) |
61 |
+ x86? ( |
62 |
+ https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH} |
63 |
+ -> linux-${I686_CONFIG_VER}.i686.config |
64 |
+ )" |
65 |
+S=${WORKDIR}/${MY_P} |
66 |
+ |
67 |
+LICENSE="GPL-2" |
68 |
+KEYWORDS="~amd64 ~x86" |
69 |
+ |
70 |
+RDEPEND=" |
71 |
+ !sys-kernel/vanilla-kernel:${SLOT} |
72 |
+ !sys-kernel/vanilla-kernel-bin:${SLOT}" |
73 |
+ |
74 |
+pkg_pretend() { |
75 |
+ mount-boot_pkg_pretend |
76 |
+ |
77 |
+ ewarn "This is an experimental package. The built kernel and/or initramfs" |
78 |
+ ewarn "may not work at all or fail with your bootloader configuration. Please" |
79 |
+ ewarn "make sure to keep a backup kernel available before testing it." |
80 |
+} |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ local PATCHES=( |
84 |
+ # meh, genpatches have no directory |
85 |
+ # (skip most patch release patches, we just fetch newer sources) |
86 |
+ "${WORKDIR}"/109[4-9]*.patch |
87 |
+ "${WORKDIR}"/[2-9]*.patch |
88 |
+ ) |
89 |
+ default |
90 |
+ |
91 |
+ # prepare the default config |
92 |
+ case ${ARCH} in |
93 |
+ amd64) |
94 |
+ cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die |
95 |
+ ;; |
96 |
+ x86) |
97 |
+ cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die |
98 |
+ ;; |
99 |
+ *) |
100 |
+ die "Unsupported arch ${ARCH}" |
101 |
+ ;; |
102 |
+ esac |
103 |
+ |
104 |
+ local config_tweaks=( |
105 |
+ # shove arch under the carpet! |
106 |
+ -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
107 |
+ # we do support x32 |
108 |
+ -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
109 |
+ # disable signatures |
110 |
+ -e '/CONFIG_MODULE_SIG/d' |
111 |
+ -e '/CONFIG_SECURITY_LOCKDOWN/d' |
112 |
+ # disable compression to allow stripping |
113 |
+ -e '/CONFIG_MODULE_COMPRESS/d' |
114 |
+ # disable gcc plugins to unbreak distcc |
115 |
+ -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d' |
116 |
+ ) |
117 |
+ sed -i "${config_tweaks[@]}" .config || die |
118 |
+} |