1 |
commit: 0355020bb712c0d92f519e06cdcb32258d5fe277 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 27 12:14:21 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 27 14:16:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0355020b |
7 |
|
8 |
sys-kernel/vanilla-kernel: Bump to 5.4.61 |
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.61.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 aec239d62f5..ef094b327cd 100644 |
18 |
--- a/sys-kernel/vanilla-kernel/Manifest |
19 |
+++ b/sys-kernel/vanilla-kernel/Manifest |
20 |
@@ -8,6 +8,7 @@ DIST kernel-x86_64-fedora.config.5.7.8 192882 BLAKE2B 23044bd3625d1ced686950c132 |
21 |
DIST kernel-x86_64-fedora.config.5.8.1 200074 BLAKE2B 05673cc7c5ae861faff6e823b8fadb9ce2f00864cc955d78733945abe6fa5842b5b74d0e41129cea92607bd907598b39127740dabd377cb25a2fbbcd54eae8b6 SHA512 c601c380163c66c9e351508dbc7ad3f10214eb04895257f721c808e8fa685770b9c898f48b3b05a5f76832fbf8c91e63278539dd9ef3e2c571997c844ecc7c8b |
22 |
DIST kernel-x86_64.config.5.4.21 184907 BLAKE2B 0eb2b07c14cea7545350fcdf3a94f2a531f0137c502ebda9299cacf44da5385686e2049b480b28bc153c9d413d453cfe682b9655eefe70428cb720f57c7bd200 SHA512 f3b3ee6841555ac3a9cc11536a7d44e1a5a8df2bab14ba341fda7df1ceb0de45cf1c799a1d54a64f2858fd1272d348bb52cf269ffa396878c5402baf2730237f |
23 |
DIST linux-5.4.60.tar.xz 109583396 BLAKE2B 1f6296eb9be00329b1eb015eafb4a965c575ded58b8618cfc0af3d15072c424afbbc029fad4d65e0af3bccc5963c4304c14b4a9d4763cfaec9b4596834a0f9b0 SHA512 fb9ebada932c17d0adbc099a1df31a7d97afe3be694665b1f8171e7159bda84a36a435ceecfdce6d492d8e5075ed4253c68029dcdf952e75a3fe7ee36646327b |
24 |
+DIST linux-5.4.61.tar.xz 109579356 BLAKE2B 78e8ee2fcd0e8cce8f536ba907a24676b5aafa662d97eb5c02f97150b0be4616dc564542503d4250d3fd8a674598cd2d3fdcaa34c880e0f3df558c4b5da8b24c SHA512 1c2d7226dc8b4b6ca468a7082b42ac14bdf9f2ff4d0824737cb6a2e959b2c5da320877efe8b6dc7fd66200daadfe5ac424d8c8abc52888358e45ee594f60937d |
25 |
DIST linux-5.7.17.tar.xz 112744000 BLAKE2B ef73f9c940d678465d1ff2c4eb880b6878827f563942666aab0fb49be9c24d6a12a78a2c569c9cb35023c82a195945b392ca00a933726701c0cff092f71141b6 SHA512 e4618e3d28882b81699892eb04b266a3e0b508806d02bd9671c84027a5a343535561b7094755ab6358ffd72e9ce5a2296b126ce9218a334b260c31535e2de59f |
26 |
DIST linux-5.8.3.tar.xz 114473912 BLAKE2B 9d2913bbaf4afabd8f654abd0a2a3c62df043a613cbc2518944f5889d1a760ab6401e76d0b67b0cc9fbe05c8a0e280fe9b2ebf125f50ff5962f097956642fd8e SHA512 a23973139bf105e202621f6181be366e1a933aefd1da9a347d3a19c0917ba16dd271b5c8d90a8c527791fb0f7535a1cc1bbecd118598b500c881d16ff7d64157 |
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.61.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.61.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..d2655d6349c |
32 |
--- /dev/null |
33 |
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.61.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 |
+} |