1 |
commit: db2d6befdf05e58476aeb9d194ee9d9bcf783238 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 19 14:54:10 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 19 21:29:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db2d6bef |
7 |
|
8 |
sys-kernel/vanilla-kernel: Bump to 5.4.59 |
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.59.ebuild | 83 ++++++++++++++++++++++ |
14 |
2 files changed, 84 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest |
17 |
index e8c41f55675..1885f82aa55 100644 |
18 |
--- a/sys-kernel/vanilla-kernel/Manifest |
19 |
+++ b/sys-kernel/vanilla-kernel/Manifest |
20 |
@@ -15,6 +15,7 @@ DIST linux-5.4.53.tar.xz 109574076 BLAKE2B 3e15c19449149415e560cf2b602fec20d60d2 |
21 |
DIST linux-5.4.55.tar.xz 109570356 BLAKE2B 87ae06ef810727428acd8d7b823309c71b36d6cbf4614e3230d632aecc74bfc45cc7b363a77062f26073dae3d5199200908e21a64e276bfaa66e71648a3c91fe SHA512 6ce15984395698b28932ab1d66165e491588fd924e4880e4dca2c5665b636fb271b8028dd23354b81640ce7e12989807a71360144cb87708b7f239e021b2b56c |
22 |
DIST linux-5.4.56.tar.xz 109571188 BLAKE2B fc5ae5a5e45f8e2582f267b0c0bceaa0e82b2cf4ce3f6823cda7968ba6984b98fed0e70232e7ad0d90b200e1b1c916d40102be62e54ecb99a15e378d1400d2dc SHA512 317bd383bc396b3867aa7ff804c20d72e27dcbbb78d02dc488528e9a25f3aaaa7a91ad1098b5a0e66d9b3290a42758c1d0631518122593aa521450977d6c62c1 |
23 |
DIST linux-5.4.58.tar.xz 109570484 BLAKE2B 868296844be43f256583b84f32ca44fc3263954bf6830c9bb601c1b70f413ac52f26b82925f0a73a4cd7e6b2070ac20cd097a836603feca18aaa0bb26e8242a6 SHA512 535230c1bd718829efcc78a5f06ba803e182565838ade3628591b5fe2c5ea592ba3245583e6fecc58aef781bbab7069e632e900f0b33474442524d8472acd27b |
24 |
+DIST linux-5.4.59.tar.xz 109572660 BLAKE2B b12e469150c0e09e090d60e31dfb25d83e3c2d9a0e777f49c3eac57e724bef3076cc57f64c1be6462e1c3db70a9d24d49fd19dc8f9c5f89541c868bc45715a4a SHA512 e09805b83a7f632882b3c4a7900ddb5ed78b8ad51b111387fe9428f404c09a6d01216ff93ac7d96b107a32a07ce675f21757921286ea221d4561745c743bd51d |
25 |
DIST linux-5.7.10.tar.xz 112722840 BLAKE2B 5b76a6b99ea0b1e38278db62951147edd2f0dcbc7c28d6fbf955beaa25344c62ee5b4d8c1c80e9e980a44d77b31dfc152b7e1d0fe0e57f5968f25b0d8a6d2dca SHA512 9568f87d593ae56dee4c7b8594f495a9c971558a3c73de8bb27336877bd5e71500ec08d880c5854e52ce338775bb9c30a98c1b9cdb789dbedba95bd3d86362ca |
26 |
DIST linux-5.7.12.tar.xz 112734632 BLAKE2B fb8f51e370f420a6f18329945addb05df3c264d06bcd7f03b6a9582ab2a13f843cd3ce99f6ce39546f882775ef473f335185ea54f38aab03e8956ae946f1e28f SHA512 8630936f2ea67fa4eaeea759f91dd71e35c294947ae6f71953ac3d99e5f93971f8c2b9e0eb18b09a35a3993e7ef648ca17160600aa07ea24f3beed44f3ed5a75 |
27 |
DIST linux-5.7.13.tar.xz 112731816 BLAKE2B 8999dcaa23bf6c07e456b8fcb4b8d07a621737e72eb4f69db02b07bde0a3e73131019751d1c257434ef7380c583a914f5b81d802b82103800f6b44bde0ba4439 SHA512 60af6a81e86f7502b3ab94366107f638ac0656c4cc000d4393ab1b55dae1742cbde161b462a5de504285cd0baad22164dcac52cf38b8a0d98bfd5c638979fd71 |
28 |
|
29 |
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.59.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.59.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..d2655d6349c |
32 |
--- /dev/null |
33 |
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.59.ebuild |
34 |
@@ -0,0 +1,83 @@ |
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://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
44 |
+CONFIG_VER=5.4.21 |
45 |
+CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea |
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://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config |
52 |
+ -> kernel-x86_64.config.${CONFIG_VER} |
53 |
+ ) |
54 |
+ arm64? ( |
55 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config |
56 |
+ -> kernel-aarch64.config.${CONFIG_VER} |
57 |
+ ) |
58 |
+ x86? ( |
59 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config |
60 |
+ -> kernel-i686.config.${CONFIG_VER} |
61 |
+ )" |
62 |
+S=${WORKDIR}/${MY_P} |
63 |
+ |
64 |
+LICENSE="GPL-2" |
65 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
66 |
+IUSE="debug" |
67 |
+ |
68 |
+RDEPEND=" |
69 |
+ !sys-kernel/vanilla-kernel-bin:${SLOT}" |
70 |
+BDEPEND=" |
71 |
+ debug? ( dev-util/dwarves )" |
72 |
+ |
73 |
+pkg_pretend() { |
74 |
+ ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" |
75 |
+ ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
76 |
+ |
77 |
+ kernel-install_pkg_pretend |
78 |
+} |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ |
83 |
+ # prepare the default config |
84 |
+ case ${ARCH} in |
85 |
+ amd64) |
86 |
+ cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die |
87 |
+ ;; |
88 |
+ arm64) |
89 |
+ cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die |
90 |
+ ;; |
91 |
+ x86) |
92 |
+ cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die |
93 |
+ ;; |
94 |
+ *) |
95 |
+ die "Unsupported arch ${ARCH}" |
96 |
+ ;; |
97 |
+ esac |
98 |
+ |
99 |
+ local config_tweaks=( |
100 |
+ # shove arch under the carpet! |
101 |
+ -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
102 |
+ # we do support x32 |
103 |
+ -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
104 |
+ # disable signatures |
105 |
+ -e '/CONFIG_MODULE_SIG/d' |
106 |
+ -e '/CONFIG_SECURITY_LOCKDOWN/d' |
107 |
+ ) |
108 |
+ use debug || config_tweaks+=( |
109 |
+ -e '/CONFIG_DEBUG_INFO/d' |
110 |
+ ) |
111 |
+ [[ ${ARCH} == x86 ]] && config_tweaks+=( |
112 |
+ # fix autoenabling 64bit |
113 |
+ -e '2i\ |
114 |
+# CONFIG_64BIT is not set' |
115 |
+ ) |
116 |
+ sed -i "${config_tweaks[@]}" .config || die |
117 |
+} |