1 |
commit: a7c3ea927ff0ac45ebf48b67e817dba59afd9d9f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 17 16:57:07 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 17 19:23:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7c3ea92 |
7 |
|
8 |
sys-kernel/vanilla-kernel: Bump to 5.4.66 |
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.66.ebuild | 129 +++++++++++++++++++++ |
14 |
2 files changed, 130 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest |
17 |
index f627e886182..e0dc31e38c1 100644 |
18 |
--- a/sys-kernel/vanilla-kernel/Manifest |
19 |
+++ b/sys-kernel/vanilla-kernel/Manifest |
20 |
@@ -21,6 +21,7 @@ DIST linux-5.4.62.tar.xz 109580336 BLAKE2B 4cc346ae1b9def22ddbab11ea9a73eeedeb74 |
21 |
DIST linux-5.4.63.tar.xz 109583360 BLAKE2B f1afaf0d30b26ce325e9b7e4c8b328749f466796839ff7bc63b4ee14215627347dad38c168efa7099dc964d4378ac8ca94de7771339446acc51a75e9377442a0 SHA512 1e97faea4c5f4a814d207f0a850cd5dd4aab33259f5501d54fea3f5487aab3e7b38af3f38d9c2bb127222d859e8ad6cdc0d19e10e42ec455b53d3728b085353d |
22 |
DIST linux-5.4.64.tar.xz 109593152 BLAKE2B f0bea4ef1fac7a4744848d6328175d1cd200023eba9398bc46511e88e7ad51b559732202d642df60bb5032004e42aae753eb9d7b049781d12303f48e3aece6bc SHA512 135e62581e9bef772a5c68a2b1945bbe09689d5d8bda41a09efdd7ba7cd99afa8010c4157a5d23badeb8b6f9832c53ffda49d1dd6c5862f01b9756ceca9ebcec |
23 |
DIST linux-5.4.65.tar.xz 109587504 BLAKE2B 3cc1040e324ba0ffb95b1b075621264623a1f17b929b77af4231dfff0a494fbab2d4acbe20fcd39bc216ac21ad425ed8ff3b703b46aebf9df7009626621b8f8b SHA512 f457e7cf3f1a241a187ab8251238e0fad5308ca0f30623908ddaead32041797db02438a4a926c73b504774516db400e9c95427f4f24f60efbde65bb9e7926f0f |
24 |
+DIST linux-5.4.66.tar.xz 109584352 BLAKE2B 5b2f08dfac6069f2a5a842de69b572691d4d6857f07c38c3fee2e2d327b3ddfd2ed7c17e18ef60bfaad3f36161ca61d8796ac537b2a783c5a6580d0abae49357 SHA512 06cfd689542805cb843b19993242adee5d41a383ae6f4c730073f4d56e78a2d9e92f8d012de7635a67290c83cf204302a839ca8d4395869a4c0d4e2457283c05 |
25 |
DIST linux-5.7.17.tar.xz 112744000 BLAKE2B ef73f9c940d678465d1ff2c4eb880b6878827f563942666aab0fb49be9c24d6a12a78a2c569c9cb35023c82a195945b392ca00a933726701c0cff092f71141b6 SHA512 e4618e3d28882b81699892eb04b266a3e0b508806d02bd9671c84027a5a343535561b7094755ab6358ffd72e9ce5a2296b126ce9218a334b260c31535e2de59f |
26 |
DIST linux-5.7.18.tar.xz 112759392 BLAKE2B 22fb5388521bd824a8ecbde7484db3319817eaebc6c74b5f615b872ec18b1cf6abd6b9aed651400bfee2b12e2d759a066ea79412021202a05b8fa1934b9b14aa SHA512 d84a1dfb3ae6fad1f4ca3b42bbd01e9b6e1543e23f319237bc4db2381770df5a30d799cf5ed6ca85c5ece6779502327afdb4892452f612b9e4dbca3305c9901c |
27 |
DIST linux-5.7.19.tar.xz 112742648 BLAKE2B 408fdc49f8a341f6d7c0fead1ddc1b0816caf4a7393286127440a6ec1b513cd413067d6e56180310cc9d634b95c9583b7f38ae4711cd115f4ac2f08918e6b916 SHA512 c64aacd11f90dd1fb4f163ba3757ba52543c8a3c3932b9600109ad2b8ac97c8819d430067266e1e347998b5e9df92f7c0f1945a73142442ba5bccd41439a4988 |
28 |
|
29 |
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.66.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.66.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..ee1e12c459a |
32 |
--- /dev/null |
33 |
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.66.ebuild |
34 |
@@ -0,0 +1,129 @@ |
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 |
+ ppc64? ( |
59 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config |
60 |
+ -> kernel-ppc64le.config.${CONFIG_VER} |
61 |
+ ) |
62 |
+ x86? ( |
63 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config |
64 |
+ -> kernel-i686.config.${CONFIG_VER} |
65 |
+ )" |
66 |
+S=${WORKDIR}/${MY_P} |
67 |
+ |
68 |
+LICENSE="GPL-2" |
69 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
70 |
+IUSE="debug" |
71 |
+ |
72 |
+RDEPEND=" |
73 |
+ !sys-kernel/vanilla-kernel-bin:${SLOT}" |
74 |
+BDEPEND=" |
75 |
+ debug? ( dev-util/dwarves )" |
76 |
+ |
77 |
+pkg_pretend() { |
78 |
+ ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" |
79 |
+ ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
80 |
+ |
81 |
+ kernel-install_pkg_pretend |
82 |
+} |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ default |
86 |
+ |
87 |
+ # prepare the default config |
88 |
+ case ${ARCH} in |
89 |
+ amd64) |
90 |
+ cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die |
91 |
+ ;; |
92 |
+ arm64) |
93 |
+ cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die |
94 |
+ ;; |
95 |
+ ppc64) |
96 |
+ cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die |
97 |
+ ;; |
98 |
+ x86) |
99 |
+ cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die |
100 |
+ ;; |
101 |
+ *) |
102 |
+ die "Unsupported arch ${ARCH}" |
103 |
+ ;; |
104 |
+ esac |
105 |
+ |
106 |
+ local config_tweaks=( |
107 |
+ # replace (none) with gentoo |
108 |
+ -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
109 |
+ # we do support x32 |
110 |
+ -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
111 |
+ # disable signatures |
112 |
+ -e '/CONFIG_MODULE_SIG/d' |
113 |
+ -e '/CONFIG_SECURITY_LOCKDOWN/d' |
114 |
+ -e '/CONFIG_KEXEC_SIG/d' |
115 |
+ -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
116 |
+ -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
117 |
+ -e '/CONFIG_SIGNATURE/d' |
118 |
+ # remove massive array of LSMs |
119 |
+ -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
120 |
+ -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
121 |
+ # nobody actually wants fips |
122 |
+ -e '/CONFIG_CRYPTO_FIPS/d' |
123 |
+ # these tests are really not necessary |
124 |
+ -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
125 |
+ # probably not needed by anybody but developers |
126 |
+ -e '/CONFIG_CRYPTO_STATS/d' |
127 |
+ # 1000hz is excessive for laptops |
128 |
+ -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
129 |
+ # nobody is using this kernel on insane super computers |
130 |
+ -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
131 |
+ # we're not actually producing live patches for folks |
132 |
+ -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
133 |
+ # this slows down networking in general |
134 |
+ -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
135 |
+ # include font for normal and hidpi screens |
136 |
+ -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
137 |
+ # we don't need to actually install system headers from this ebuild |
138 |
+ -e '/CONFIG_HEADERS_INSTALL/d' |
139 |
+ # enable /proc/config.gz, used by linux-info.eclass |
140 |
+ -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
141 |
+ # WireGuard was backported to 5.4 but we use old configs (#739128) |
142 |
+ -e '$aCONFIG_WIREGUARD=m' |
143 |
+ ) |
144 |
+ use debug || config_tweaks+=( |
145 |
+ -e '/CONFIG_DEBUG_INFO/d' |
146 |
+ -e '/CONFIG_DEBUG_RODATA_TEST/d' |
147 |
+ -e '/CONFIG_DEBUG_VM/d' |
148 |
+ -e '/CONFIG_DEBUG_SHIRQ/d' |
149 |
+ -e '/CONFIG_DEBUG_LIST/d' |
150 |
+ -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
151 |
+ -e '/CONFIG_TORTURE_TEST/d' |
152 |
+ -e '/CONFIG_BOOTTIME_TRACING/d' |
153 |
+ -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
154 |
+ -e '/CONFIG_X86_DECODER_SELFTEST/d' |
155 |
+ -e '/CONFIG_KGDB/d' |
156 |
+ ) |
157 |
+ [[ ${ARCH} == x86 ]] && config_tweaks+=( |
158 |
+ # fix autoenabling 64bit |
159 |
+ -e '2i\ |
160 |
+# CONFIG_64BIT is not set' |
161 |
+ ) |
162 |
+ sed -i "${config_tweaks[@]}" .config || die |
163 |
+} |