1 |
commit: 1d83c8651b3d5b8e4b57b7868267c682bc13b43c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 1 06:24:17 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 1 13:17:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d83c865 |
7 |
|
8 |
sys-kernel/vanilla-kernel: Bump to 5.4.55 |
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.55.ebuild | 76 ++++++++++++++++++++++ |
14 |
2 files changed, 77 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest |
17 |
index 5a451ea435e..127ff100cf4 100644 |
18 |
--- a/sys-kernel/vanilla-kernel/Manifest |
19 |
+++ b/sys-kernel/vanilla-kernel/Manifest |
20 |
@@ -7,6 +7,7 @@ DIST linux-5.4.15-arch1.i686.config 241195 BLAKE2B d3332b83a3d57c450bb1d5e85d83c |
21 |
DIST linux-5.4.40.tar.xz 109535980 BLAKE2B 4857f032d5333f3c16f0947f51d6fe632527cfd78e6c556b62f5356848ef3280244eef7ffaaa136589b10e151aad3087593f3518fd0fc6958d4647b786401169 SHA512 c8785d30f7b88f3a6e565789974ecf1a055900ab4b66e358070547506aecab57b5d34afb77140cb2aeb803498c407d34f7fc11c29fbba00f6d4dedea8dd8788a |
22 |
DIST linux-5.4.52.tar.xz 109563772 BLAKE2B 32995d32bfc9ee5d6a5669941897890fc765765f8a141740486f4ad6000fcdd4e4c7f3e9c8fdc7357fba70947cce99d493e8657321c0c836c4930075eacec7eb SHA512 ed0eac6cc07f9e3bc455c82f1594fb0a5310430d3abc3cc2058e1c75af7608aa1b6f70790573873d7e9e4fafdd17cd0bdd5624c6eed5d51dd1da12a873d78a8e |
23 |
DIST linux-5.4.53.tar.xz 109574076 BLAKE2B 3e15c19449149415e560cf2b602fec20d60d2b35187283edb4421e4909c3fc8d9c734eba60e7fcca6f3694feb95246cb7295b57e96773fc8d69b8a5ef14e55be SHA512 bf0c0164969ffe52792c15d24f630cb33cee60801252fb6e45b751f5cf6cf807dc8c97c77caff6fdc53d754b87715f27779978f0f5ecfb83836f9a8342f21615 |
24 |
+DIST linux-5.4.55.tar.xz 109570356 BLAKE2B 87ae06ef810727428acd8d7b823309c71b36d6cbf4614e3230d632aecc74bfc45cc7b363a77062f26073dae3d5199200908e21a64e276bfaa66e71648a3c91fe SHA512 6ce15984395698b28932ab1d66165e491588fd924e4880e4dca2c5665b636fb271b8028dd23354b81640ce7e12989807a71360144cb87708b7f239e021b2b56c |
25 |
DIST linux-5.7.10.tar.xz 112722840 BLAKE2B 5b76a6b99ea0b1e38278db62951147edd2f0dcbc7c28d6fbf955beaa25344c62ee5b4d8c1c80e9e980a44d77b31dfc152b7e1d0fe0e57f5968f25b0d8a6d2dca SHA512 9568f87d593ae56dee4c7b8594f495a9c971558a3c73de8bb27336877bd5e71500ec08d880c5854e52ce338775bb9c30a98c1b9cdb789dbedba95bd3d86362ca |
26 |
DIST tinycorelinux-10.1-amd64.qcow2 16842752 BLAKE2B e013e76503c335739a9623c0901ca791937a0e6b177854535cadec1e2c2cd2df588283ed3128cf652595f32264fbfe5b3bd3a8c97665fd4da344e308535be366 SHA512 c3aeb20ff8769da9211694b7f701907cc7ae7582cdfad2c2fdc008d97ebcbd9dc08245b4e8f8450e1cb304bd705345a11fe79f901a47979fee91443841d55641 |
27 |
DIST tinycorelinux-10.1-x86.qcow2 14876672 BLAKE2B 3c760eb7438b13261e52ecfaa33a53649ced95f1ab40aae52134b8cdc31a16d7aa0d6a6dd716e268ed148e9d77a10b7c700b141b61d70c82d271ffe88e8e2a3c SHA512 9964538dc42f232a11949f74b61d46422ea5da3bdc253a217119bd0b8a750c40fd2da0b07157067be9ac0226472614f210a1248114df0d331df390979867a895 |
28 |
|
29 |
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.55.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.55.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..751244a438b |
32 |
--- /dev/null |
33 |
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.55.ebuild |
34 |
@@ -0,0 +1,76 @@ |
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 |
+ x86? ( |
55 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config |
56 |
+ -> kernel-i686.config.${CONFIG_VER} |
57 |
+ )" |
58 |
+S=${WORKDIR}/${MY_P} |
59 |
+ |
60 |
+LICENSE="GPL-2" |
61 |
+KEYWORDS="~amd64 ~x86" |
62 |
+IUSE="debug" |
63 |
+ |
64 |
+RDEPEND=" |
65 |
+ !sys-kernel/vanilla-kernel-bin:${SLOT}" |
66 |
+BDEPEND=" |
67 |
+ debug? ( dev-util/dwarves )" |
68 |
+ |
69 |
+pkg_pretend() { |
70 |
+ ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" |
71 |
+ ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
72 |
+ |
73 |
+ kernel-install_pkg_pretend |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ |
79 |
+ # prepare the default config |
80 |
+ case ${ARCH} in |
81 |
+ amd64) |
82 |
+ cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die |
83 |
+ ;; |
84 |
+ x86) |
85 |
+ cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die |
86 |
+ ;; |
87 |
+ *) |
88 |
+ die "Unsupported arch ${ARCH}" |
89 |
+ ;; |
90 |
+ esac |
91 |
+ |
92 |
+ local config_tweaks=( |
93 |
+ # shove arch under the carpet! |
94 |
+ -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
95 |
+ # we do support x32 |
96 |
+ -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
97 |
+ # disable signatures |
98 |
+ -e '/CONFIG_MODULE_SIG/d' |
99 |
+ -e '/CONFIG_SECURITY_LOCKDOWN/d' |
100 |
+ ) |
101 |
+ use debug || config_tweaks+=( |
102 |
+ -e '/CONFIG_DEBUG_INFO/d' |
103 |
+ ) |
104 |
+ [[ ${ARCH} == x86 ]] && config_tweaks+=( |
105 |
+ # fix autoenabling 64bit |
106 |
+ -e '2i\ |
107 |
+# CONFIG_64BIT is not set' |
108 |
+ ) |
109 |
+ sed -i "${config_tweaks[@]}" .config || die |
110 |
+} |