1 |
commit: c7bc06d0a7c0420253fa144b1e41b0b132b3b09a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 27 04:22:34 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 27 06:16:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7bc06d0 |
7 |
|
8 |
sys-kernel/vanilla-kernel: Bump to 5.4.68 |
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.68.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 863b1a65c08..4c9d85eafaf 100644 |
18 |
--- a/sys-kernel/vanilla-kernel/Manifest |
19 |
+++ b/sys-kernel/vanilla-kernel/Manifest |
20 |
@@ -23,6 +23,7 @@ DIST linux-5.4.64.tar.xz 109593152 BLAKE2B f0bea4ef1fac7a4744848d6328175d1cd2000 |
21 |
DIST linux-5.4.65.tar.xz 109587504 BLAKE2B 3cc1040e324ba0ffb95b1b075621264623a1f17b929b77af4231dfff0a494fbab2d4acbe20fcd39bc216ac21ad425ed8ff3b703b46aebf9df7009626621b8f8b SHA512 f457e7cf3f1a241a187ab8251238e0fad5308ca0f30623908ddaead32041797db02438a4a926c73b504774516db400e9c95427f4f24f60efbde65bb9e7926f0f |
22 |
DIST linux-5.4.66.tar.xz 109584352 BLAKE2B 5b2f08dfac6069f2a5a842de69b572691d4d6857f07c38c3fee2e2d327b3ddfd2ed7c17e18ef60bfaad3f36161ca61d8796ac537b2a783c5a6580d0abae49357 SHA512 06cfd689542805cb843b19993242adee5d41a383ae6f4c730073f4d56e78a2d9e92f8d012de7635a67290c83cf204302a839ca8d4395869a4c0d4e2457283c05 |
23 |
DIST linux-5.4.67.tar.xz 109587704 BLAKE2B 0870c932888bbd75e04195e2a8106bf83e1df0ba99d1bab625cdd973d4c96d6ca99e8ec2d2cf9633c116c431beaa035046c4b971a9b6e50733eb64051d5f52d6 SHA512 1b1b1db72df2dc4a438ae64f1a099a5e5ca4e9aeec0d18688fdb4310cd8080b57d0c4bd718b715a5b1f608bb372079a0a49994f0cadefe68a8bc4189d5d9d658 |
24 |
+DIST linux-5.4.68.tar.xz 109601148 BLAKE2B 03e25fdfa93a892aa7b8ea0ba4822c1dbf1f8cb498cdb80b3c3f4f8ea2b7d4f02bcecdf3788afc84dd1fbd4de02add0c2a5f9e5d9ededaa02fff4bf5e8310300 SHA512 027f63296a2b3a0fda3eaeed8ac1a3e0075d90469888c76666f355a69f2c81384e9245d31991f74f6fbba657d35ba32bf280a455e7b5abd68b039990f5f8efaa |
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.68.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.68.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..ee1e12c459a |
32 |
--- /dev/null |
33 |
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.68.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 |
+} |