1 |
commit: 0a1dd37b71a323410ce444d09337d3cc4c1384fc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 28 08:23:49 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 28 08:37:37 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a1dd37b |
7 |
|
8 |
sys-kernel/gentoo-kernel: Remove redundant versions |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-kernel/gentoo-kernel/Manifest | 22 ---- |
13 |
.../gentoo-kernel/gentoo-kernel-5.4.64.ebuild | 137 --------------------- |
14 |
.../gentoo-kernel/gentoo-kernel-5.4.66.ebuild | 137 --------------------- |
15 |
.../gentoo-kernel/gentoo-kernel-5.4.68.ebuild | 137 --------------------- |
16 |
.../gentoo-kernel/gentoo-kernel-5.4.69.ebuild | 137 --------------------- |
17 |
.../gentoo-kernel/gentoo-kernel-5.4.70.ebuild | 137 --------------------- |
18 |
.../gentoo-kernel/gentoo-kernel-5.4.71.ebuild | 137 --------------------- |
19 |
.../gentoo-kernel/gentoo-kernel-5.8.12.ebuild | 134 -------------------- |
20 |
.../gentoo-kernel/gentoo-kernel-5.8.13.ebuild | 134 -------------------- |
21 |
.../gentoo-kernel/gentoo-kernel-5.8.14.ebuild | 134 -------------------- |
22 |
.../gentoo-kernel/gentoo-kernel-5.8.15.ebuild | 134 -------------------- |
23 |
.../gentoo-kernel/gentoo-kernel-5.9.0.ebuild | 134 -------------------- |
24 |
12 files changed, 1514 deletions(-) |
25 |
|
26 |
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest |
27 |
index b967341a816..0b837dc3048 100644 |
28 |
--- a/sys-kernel/gentoo-kernel/Manifest |
29 |
+++ b/sys-kernel/gentoo-kernel/Manifest |
30 |
@@ -1,29 +1,7 @@ |
31 |
-DIST genpatches-5.4-65.base.tar.xz 2300512 BLAKE2B 7ed1f7694782a2f2aba5448d4e2786b813d1caaa6d3da986ad429834c73f15c29268dd1cf3e3fbc63a913717cdd707084d5c1d0a9a0d0a91a558e44d1605927c SHA512 3109881309ec0354ab91924b6e45e8ecad18e13ecbcdd86adc4626668557ce6324ccb942d9a62ca02d7093fd221e90e8b8e9f33ce8c009676122ffc100576f61 |
32 |
-DIST genpatches-5.4-65.extras.tar.xz 1768 BLAKE2B 07e18047c9d88d73325933496d70d645acc6d07bf70d531a4e4602b85c6dacded40d9fae716bfa4654672be78f0d6029700cf4b5b368f3bdbec485218f74abeb SHA512 b3421a90b0e664a64e49b4e87c4392871d425577995cbd15cc420d3f4a1a101706bd19e32aefc077144d6da955c442c7635552f8987f1af707af05868aa61a2c |
33 |
-DIST genpatches-5.4-67.base.tar.xz 2335352 BLAKE2B ae98701f88da8c3ab823499c6d5683c80adaface3b23d0e5671deb4e8005a6aa8f9ef3c4ff4b0fb1475ca33de7790c59c56571795122ac4bfed6f1c6e4ae8049 SHA512 1d039a98cb29a76f0b5d26cf2ef72cbeef469746e31afc513f6f5f88841e9fa4c96fe34e92748e61a6f6f5a6d8ac68783126e6bcc696bd0106747b8a93a9b940 |
34 |
-DIST genpatches-5.4-67.extras.tar.xz 1768 BLAKE2B 6e6718c80465485c0271d46231d45412e4bb7e713caed3a333b27f1a655048c2ccea871d5331fc4d6413ddbeb2776df02acf00ad1c399a1d86e65615f05d5c69 SHA512 7da85f2ff8f50f43ae1eb814e34402fa8a55629c7b8e9b362ad657974be2ac60489157adf474f91c05587475d89deb1cb1511c5241b80885d695651bfb122af3 |
35 |
-DIST genpatches-5.4-69.base.tar.xz 2362320 BLAKE2B 5f0a1f950d6b4edd2eb2189256e128350df0d9682c218527e8f2c8283cdebefddaddaabb7d77e3f8bc8a09d4fb23fea37a9208ffe3c3bbf748eb5e05df85ba28 SHA512 d323506ceb6d8cdb01ff7be8ee80d6b7d5a72fc7a2411d96a84f58ae12392f2f72565413878cc7b4abf9221bdcd0b505d8dc5ee5920945aebbe6984250f13d88 |
36 |
-DIST genpatches-5.4-69.extras.tar.xz 1768 BLAKE2B ab83c9bd71bb08d7356aa93c27c3596911fe67fcadfe97a80313d2a038001be7ccada663ab25aee1d5cc348b220d3c82970d08bd3ebd538a729918a7487e0a1a SHA512 6a780c1a4ab2d2acd313e45c3fca0ae013104e916961855c76b4bc2c4f732f8eec27240b728677bf8e3c0042694605f477e672af41e5e4e50e266320d126fc32 |
37 |
-DIST genpatches-5.4-70.base.tar.xz 2483716 BLAKE2B ec87f655614a22728baa721a291616f3c5f0516ec25dfcfba74ce72a8236e132dc2c66bc8b551cdac6cdd170d29a54545b05fec5d853afba33e70b23b7dd50da SHA512 246f449d7720de05a8527ce19ea47ebf79dfe970d87087674630416b438d31fe499b8fd053b7ea19ad81248435345b56544774eeb6298475145ae59b9ef718ae |
38 |
-DIST genpatches-5.4-70.extras.tar.xz 1772 BLAKE2B b7dcaf96dabb3dcb2ffac6532b59b9eff8e9e55e309b02b4d774a3c665e4499f0353bfb91ed81f1cbc73b852f0de50adc6a03dc36e8e7beb88f0cf62a5fd9a42 SHA512 3fedd41a60c6941f9ee18485c92b67c3dc69d0b36a134adb89c246106d043e10afcc9114f5448ea4164b956934e2dc9efb1f3af95c2bd1a67eaeef5253b07630 |
39 |
-DIST genpatches-5.4-71.base.tar.xz 2499052 BLAKE2B f19927e24c884ed8849b9572b5d199d8e9d1ad57137af70658016cee341e4a45d0e974996138c61880c39adb83616d6399e798e5fdd020c6275becd57a9d56b3 SHA512 dad3be3fa63d809458b08b7da7f45c2a0c126ca1df75ed156b2f54a93204b4504d42e678a74df79618e137b7b565fbc97e108e2807c97cd1b4a8d0bec69151a4 |
40 |
-DIST genpatches-5.4-71.extras.tar.xz 1772 BLAKE2B e462c7bf461058db545a11d05d6f6de16d0868a4f162874682425424f07e6b78019ce65ba9bd51aa413433894cea8561cba33837b66dd600351f36c563a0edb0 SHA512 ba9930a24342f7ccb5514688913e2517c726137317563ce301dbf383d484a6243c04e4d7e6ba427c0269009f979aea8c623e677e9d7f763275c1e299519d2ee4 |
41 |
-DIST genpatches-5.4-72.base.tar.xz 2519916 BLAKE2B 1998698004dea3a4dfa3866b96937902ca455766129d8e62b627e72f69aae4661abf37e46dfc996dec4232099c77cf910ad6f56baec527990aa94b1eff0c2184 SHA512 f6a48c095635a2fc8fa058ca40fbf272768da52993d924669544ff73d0c8b8f0d1bccabdbaaa5c8c1092a69008a1d527e9613a8c6862b55832738c0a80d55302 |
42 |
-DIST genpatches-5.4-72.extras.tar.xz 1768 BLAKE2B 8a25411510431be8515a339398b5d8d43d7739089f62c1e8158ca79ac793e7bfacc39b8e43d2f5e2667125ae7342bc943480804dd7b63df3e42400d9b662133b SHA512 955413633bcc16fe215e9769cec6dce68c3d8faf13659342db6a795d3e042ecccff9a6722cdb0abc87220ca301caeaccb6f25588f19da44642e358a8dee46916 |
43 |
DIST genpatches-5.4-73.base.tar.xz 2527064 BLAKE2B 6e0b392681d6e5e709a02c1c8f15fe06ef1651f1530506982feec7fd436aa04ea75079eeb5d3a61c91bcbb46c59a232cb8cb67c62fa7b2e8b289591142dd9430 SHA512 db987b95895fc37243e3697f3ef8f33787489e173fefb84ad09a6600898b2b9b285d9113e6f867aab0c3d5b4c65398f4bcbc40a4220f3cf2b355da9def209dae |
44 |
DIST genpatches-5.4-73.extras.tar.xz 1772 BLAKE2B 7475a0907f287fef28ee8bf220932528107bbac0d612dc05de6ca8b2dd86ddf37d9acea31ab2977a677f6ea3a19c594737b23e504da405fa811c4d0faf00b94a SHA512 751898547b1f60070f1d8431cd89daff55e33473c8fe68415a15e3b8079ae2d3e44318815ba47a1ce9750feb1cac1812eb8eb7765426b204eb1357993cc68cb0 |
45 |
-DIST genpatches-5.8-15.base.tar.xz 498912 BLAKE2B 429c079f836b9dc6d2086fe818f4e705264f002bcfcf4e5bdbe144af53aca53c8bfc1c0ac23aa33939bc59111e2194747088bbccff61015fd59ac0e3150aab62 SHA512 936414eaaa159a84bf016080332a8ba29c2024c02e5b83ed559df7b1a910ba405093e5ed36d54a346091a534f1389eba99b95852b23328a92e2f7ba5b07723ee |
46 |
-DIST genpatches-5.8-15.extras.tar.xz 1772 BLAKE2B 690935cb537f442dd48dea34000bc444b9c2861b259ebb156722f1027ba281111b037fafe4cfdb71e68c40603f2dcb27d2639d949d4e4fbada8811fce2716329 SHA512 8dcc4ebb194603036323dcc559b5827d02c6a678b2f162191e306fe6ae52cc860e651937962ac8b52e2a4e229b1326a2cb24f938638556b0ddf4369f140f997b |
47 |
-DIST genpatches-5.8-16.base.tar.xz 525416 BLAKE2B 53b0e2548b25b93999650cdf8eb920447367305049349a468b954f84368f803d2e1fd591fe4c01722515568257f1457a7480650a2debb1e9196bc41cebc07b5c SHA512 b708d0ad5303cabd7ba73b28391c138bf443c0af1dfc8296eb528e1a16cf00763a5a36aec1cb7bd0b0e9c9b0d844d4a135e2f1f5cf4ddbfa9742d7e05e0a4c0d |
48 |
-DIST genpatches-5.8-16.extras.tar.xz 1772 BLAKE2B 60238a48924010a7ebe1214de7835522ad1ad5b156dd3bba13d315ad753f69ce7b82a5265bd4f8d8631699304526fd44279ba27413f10cc4f19e1a60880cf30b SHA512 f9760259d90cae491252c409c6521ca5285bc0f7655795055db8bbf7c5e2ca65948ffc5541d2c4499f6255e4462884a90cc3b2db485f37e6133ba03c1a519751 |
49 |
-DIST genpatches-5.8-17.base.tar.xz 547680 BLAKE2B ea21c869fba01bfa213444c19deb4e8c3bf312746ec0b17e6f407dac00e8c19c6d60e4e243ff5e16605b413c3aa763db9a8d91907fbd57c7443ef48b7f93a344 SHA512 7d66e6cad6a4aea50fb996608c45896c52cfb1797da24a486c9cfd0afd3121886fdba4ba91a044af2774c92805232ce988bd0b82cea0618c29c17f2cc3407905 |
50 |
-DIST genpatches-5.8-17.extras.tar.xz 1768 BLAKE2B 937be9f6fb92f23e8604b609de34c6f51e8e873203c9f7e6dea545f213d4be90e3d0c173b703bb6956c6d79097ea0f25528bb249a22d7edcfaec1be8f2ca636e SHA512 3409282b77cad9c06d13f814d1904819ea967b2c499c64a03bc188ca31aee991b7100946324c719d35cd4e5e30072f33e9e7ebb70986e1d4d386c47ab0ce8577 |
51 |
-DIST genpatches-5.8-18.base.tar.xz 592676 BLAKE2B 1379f3d881dbb85cb8306e4b1bfbabb298435728d5e8c76dd6955aa88fd2b464f2d58b27a7afc07f7eba06f057fd03b225e3d85da6e0555dc2c47389597ca1fb SHA512 da23d12de59794f57c466f0e28603da3674770c40c59afe3688882ece1d537c1b11eb0f6c4732e5afebf46f921642a3925f7361532720cb26fcbd4de42064207 |
52 |
-DIST genpatches-5.8-18.extras.tar.xz 1772 BLAKE2B fece8aa842736f29f1ca6b3317ff60be6243ab2610fcc3b8e102bae44831f0801b977a42dcdff6b8ae1af32f43a312962865c282f48e087bae163d18d2d6c328 SHA512 ac9cf075daa86b7033cecd753959058031bd8856db5bb7aebb8426eff7ffc28b2e03e656ae679d8f6bdb628b1ae9ca79bae7317564a3737fa02f0ebdc11db284 |
53 |
DIST genpatches-5.8-19.base.tar.xz 596728 BLAKE2B ceb6cd57b593b5a2c02f00cefc61035ea765c9bb2bb2f9f8721e7503a149c8ad2ee6b1b3765b6d038e5d34bef2f0e0278acb7f3a8168d31d341ac0a9b58b8590 SHA512 f36c11a008e7965e0e113c3a7d87dbf40b87d87c7a801970a73367dcaaa07e7fc3356a114d339d68f16342d9f3c6601cf4746b9aa96d01d0c5efe2dbfaafabff |
54 |
DIST genpatches-5.8-19.extras.tar.xz 1772 BLAKE2B c42390c17040a6557054835df177fe87ee124bcdcea91e1a63d50ed8e07a10044d639616497e02082fbb67a708ed408bd1e94a3c9d5b7c7b0c7daeca2bfc65df SHA512 3ba07566f1e721521676b862ca51654638400eeda4f216cdfb860b0639b7a611b2ff2e9659007486841e9a1afa8c05a9454abae87abbc7dff8af396bd0d7100a |
55 |
-DIST genpatches-5.9-1.base.tar.xz 4004 BLAKE2B 8a4577d42262fa901186acc60d28221d00e5c9140886705f018d9989f818d96ee4d9a6586b292e7b1d945bea9e2408e3161a73e0999defe1b7f99d0a339eb7be SHA512 d6ba1051f9561aa30d7b196336c34930285d613e8119b152f1d6cc447cb22db5ac07c25f89d4ceddf58c9370c42699d0250a31449be2da3c591896b0c87d8718 |
56 |
-DIST genpatches-5.9-1.extras.tar.xz 1764 BLAKE2B 32d29f0448aef113ba9c9591c5d3b671d00d07abde9f35f365b48168887913bb2da95a8a52b852453307cabb111115a26178be4cbcc016e53a26a31f783a9df7 SHA512 df007dc98c1acdd31773f7dcf8aeb22812aa55e5593e8509b6a8762f2dcf06c95d69ad7cdce992e7a5fe730754bef26242acdc4e4da51ee29206fabb86c9cb0e |
57 |
DIST genpatches-5.9-2.base.tar.xz 9332 BLAKE2B cfccc2ebc7e067c7326f95627470a01f818f3c64db87ca26406bd3fa71429593a4460cf82d5891961eee69cbce667c850439f512650131013025491804486510 SHA512 af9c158cf65c5aa5d678d4ffeb7395051a9706521684f3a984f47d6ad581652978eb8f0a4de0132a3603b63fa7f34fb8b18a76bca5d4d312672c89f3fa221fa8 |
58 |
DIST genpatches-5.9-2.extras.tar.xz 1768 BLAKE2B 1e9312bc96d30b85ff628a67bed4bf2ded3eb2231d804158d343d64ce6a1be3d313bcdf84406cfa34045df9aa239ae1ed476f838ff466e0df96b60b28caa15b8 SHA512 58b19bd67b573657c44861d65792fb7fed0c430a554e95b2dc41a3f53ec8a50e68f89130a68ae0167de9ba98076326ae843264d76a178efaecece90121d0f337 |
59 |
DIST kernel-aarch64-fedora.config.5.8.5 215148 BLAKE2B c71380f46c1b37e9e17bab6d78907114369b377bcbdb54afa2c35b6a222937fd061f25309d8de0cc78ef2329ede7192722270acceeaa3da4629a5f58d8fee809 SHA512 e86e2c60e88b1ea5968db1a471d7d928ccb3146fe850f8f2813ef315f2de0cbfa0daa2f6828dee71acb2299f65f05fc0b6f1572a82fb146ae9f53a905fe94e97 |
60 |
|
61 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.64.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.64.ebuild |
62 |
deleted file mode 100644 |
63 |
index a207c4ae5ec..00000000000 |
64 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.64.ebuild |
65 |
+++ /dev/null |
66 |
@@ -1,137 +0,0 @@ |
67 |
-# Copyright 2020 Gentoo Authors |
68 |
-# Distributed under the terms of the GNU General Public License v2 |
69 |
- |
70 |
-EAPI=7 |
71 |
- |
72 |
-inherit kernel-build |
73 |
- |
74 |
-MY_P=linux-${PV%.*} |
75 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) |
76 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
77 |
-CONFIG_VER=5.4.21 |
78 |
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea |
79 |
- |
80 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
81 |
-HOMEPAGE="https://www.kernel.org/" |
82 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
83 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
84 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
85 |
- amd64? ( |
86 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config |
87 |
- -> kernel-x86_64.config.${CONFIG_VER} |
88 |
- ) |
89 |
- arm64? ( |
90 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config |
91 |
- -> kernel-aarch64.config.${CONFIG_VER} |
92 |
- ) |
93 |
- ppc64? ( |
94 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config |
95 |
- -> kernel-ppc64le.config.${CONFIG_VER} |
96 |
- ) |
97 |
- x86? ( |
98 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config |
99 |
- -> kernel-i686.config.${CONFIG_VER} |
100 |
- )" |
101 |
-S=${WORKDIR}/${MY_P} |
102 |
- |
103 |
-LICENSE="GPL-2" |
104 |
-KEYWORDS="amd64 arm64 ~ppc64 x86" |
105 |
-IUSE="debug" |
106 |
- |
107 |
-RDEPEND=" |
108 |
- !sys-kernel/vanilla-kernel:${SLOT} |
109 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
110 |
-BDEPEND=" |
111 |
- debug? ( dev-util/dwarves )" |
112 |
- |
113 |
-pkg_pretend() { |
114 |
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" |
115 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
116 |
- |
117 |
- kernel-install_pkg_pretend |
118 |
-} |
119 |
- |
120 |
-src_prepare() { |
121 |
- local PATCHES=( |
122 |
- # meh, genpatches have no directory |
123 |
- "${WORKDIR}"/*.patch |
124 |
- ) |
125 |
- default |
126 |
- |
127 |
- # prepare the default config |
128 |
- case ${ARCH} in |
129 |
- amd64) |
130 |
- cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die |
131 |
- ;; |
132 |
- arm64) |
133 |
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die |
134 |
- ;; |
135 |
- ppc64) |
136 |
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die |
137 |
- ;; |
138 |
- x86) |
139 |
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die |
140 |
- ;; |
141 |
- *) |
142 |
- die "Unsupported arch ${ARCH}" |
143 |
- ;; |
144 |
- esac |
145 |
- |
146 |
- local config_tweaks=( |
147 |
- # replace (none) with gentoo |
148 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
149 |
- # we do support x32 |
150 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
151 |
- # disable signatures |
152 |
- -e '/CONFIG_MODULE_SIG/d' |
153 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
154 |
- -e '/CONFIG_KEXEC_SIG/d' |
155 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
156 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
157 |
- -e '/CONFIG_SIGNATURE/d' |
158 |
- # remove massive array of LSMs |
159 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
160 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
161 |
- # nobody actually wants fips |
162 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
163 |
- # these tests are really not necessary |
164 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
165 |
- # probably not needed by anybody but developers |
166 |
- -e '/CONFIG_CRYPTO_STATS/d' |
167 |
- # 1000hz is excessive for laptops |
168 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
169 |
- # nobody is using this kernel on insane super computers |
170 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
171 |
- # we're not actually producing live patches for folks |
172 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
173 |
- # this slows down networking in general |
174 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
175 |
- # include font for normal and hidpi screens |
176 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
177 |
- # we don't need to actually install system headers from this ebuild |
178 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
179 |
- # enable /proc/config.gz, used by linux-info.eclass |
180 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
181 |
- # WireGuard was backported to 5.4 but we use old configs (#739128) |
182 |
- -e '$aCONFIG_WIREGUARD=m' |
183 |
- ) |
184 |
- use debug || config_tweaks+=( |
185 |
- -e '/CONFIG_DEBUG_INFO/d' |
186 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
187 |
- -e '/CONFIG_DEBUG_VM/d' |
188 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
189 |
- -e '/CONFIG_DEBUG_LIST/d' |
190 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
191 |
- -e '/CONFIG_TORTURE_TEST/d' |
192 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
193 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
194 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
195 |
- -e '/CONFIG_KGDB/d' |
196 |
- ) |
197 |
- [[ ${ARCH} == x86 ]] && config_tweaks+=( |
198 |
- # fix autoenabling 64bit |
199 |
- -e '2i\ |
200 |
-# CONFIG_64BIT is not set' |
201 |
- ) |
202 |
- sed -i "${config_tweaks[@]}" .config || die |
203 |
-} |
204 |
|
205 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.66.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.66.ebuild |
206 |
deleted file mode 100644 |
207 |
index 8748c518e3d..00000000000 |
208 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.66.ebuild |
209 |
+++ /dev/null |
210 |
@@ -1,137 +0,0 @@ |
211 |
-# Copyright 2020 Gentoo Authors |
212 |
-# Distributed under the terms of the GNU General Public License v2 |
213 |
- |
214 |
-EAPI=7 |
215 |
- |
216 |
-inherit kernel-build |
217 |
- |
218 |
-MY_P=linux-${PV%.*} |
219 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) |
220 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
221 |
-CONFIG_VER=5.4.21 |
222 |
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea |
223 |
- |
224 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
225 |
-HOMEPAGE="https://www.kernel.org/" |
226 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
227 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
228 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
229 |
- amd64? ( |
230 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config |
231 |
- -> kernel-x86_64.config.${CONFIG_VER} |
232 |
- ) |
233 |
- arm64? ( |
234 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config |
235 |
- -> kernel-aarch64.config.${CONFIG_VER} |
236 |
- ) |
237 |
- ppc64? ( |
238 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config |
239 |
- -> kernel-ppc64le.config.${CONFIG_VER} |
240 |
- ) |
241 |
- x86? ( |
242 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config |
243 |
- -> kernel-i686.config.${CONFIG_VER} |
244 |
- )" |
245 |
-S=${WORKDIR}/${MY_P} |
246 |
- |
247 |
-LICENSE="GPL-2" |
248 |
-KEYWORDS="~amd64 arm64 ~ppc64 ~x86" |
249 |
-IUSE="debug" |
250 |
- |
251 |
-RDEPEND=" |
252 |
- !sys-kernel/vanilla-kernel:${SLOT} |
253 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
254 |
-BDEPEND=" |
255 |
- debug? ( dev-util/dwarves )" |
256 |
- |
257 |
-pkg_pretend() { |
258 |
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" |
259 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
260 |
- |
261 |
- kernel-install_pkg_pretend |
262 |
-} |
263 |
- |
264 |
-src_prepare() { |
265 |
- local PATCHES=( |
266 |
- # meh, genpatches have no directory |
267 |
- "${WORKDIR}"/*.patch |
268 |
- ) |
269 |
- default |
270 |
- |
271 |
- # prepare the default config |
272 |
- case ${ARCH} in |
273 |
- amd64) |
274 |
- cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die |
275 |
- ;; |
276 |
- arm64) |
277 |
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die |
278 |
- ;; |
279 |
- ppc64) |
280 |
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die |
281 |
- ;; |
282 |
- x86) |
283 |
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die |
284 |
- ;; |
285 |
- *) |
286 |
- die "Unsupported arch ${ARCH}" |
287 |
- ;; |
288 |
- esac |
289 |
- |
290 |
- local config_tweaks=( |
291 |
- # replace (none) with gentoo |
292 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
293 |
- # we do support x32 |
294 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
295 |
- # disable signatures |
296 |
- -e '/CONFIG_MODULE_SIG/d' |
297 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
298 |
- -e '/CONFIG_KEXEC_SIG/d' |
299 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
300 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
301 |
- -e '/CONFIG_SIGNATURE/d' |
302 |
- # remove massive array of LSMs |
303 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
304 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
305 |
- # nobody actually wants fips |
306 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
307 |
- # these tests are really not necessary |
308 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
309 |
- # probably not needed by anybody but developers |
310 |
- -e '/CONFIG_CRYPTO_STATS/d' |
311 |
- # 1000hz is excessive for laptops |
312 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
313 |
- # nobody is using this kernel on insane super computers |
314 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
315 |
- # we're not actually producing live patches for folks |
316 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
317 |
- # this slows down networking in general |
318 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
319 |
- # include font for normal and hidpi screens |
320 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
321 |
- # we don't need to actually install system headers from this ebuild |
322 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
323 |
- # enable /proc/config.gz, used by linux-info.eclass |
324 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
325 |
- # WireGuard was backported to 5.4 but we use old configs (#739128) |
326 |
- -e '$aCONFIG_WIREGUARD=m' |
327 |
- ) |
328 |
- use debug || config_tweaks+=( |
329 |
- -e '/CONFIG_DEBUG_INFO/d' |
330 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
331 |
- -e '/CONFIG_DEBUG_VM/d' |
332 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
333 |
- -e '/CONFIG_DEBUG_LIST/d' |
334 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
335 |
- -e '/CONFIG_TORTURE_TEST/d' |
336 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
337 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
338 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
339 |
- -e '/CONFIG_KGDB/d' |
340 |
- ) |
341 |
- [[ ${ARCH} == x86 ]] && config_tweaks+=( |
342 |
- # fix autoenabling 64bit |
343 |
- -e '2i\ |
344 |
-# CONFIG_64BIT is not set' |
345 |
- ) |
346 |
- sed -i "${config_tweaks[@]}" .config || die |
347 |
-} |
348 |
|
349 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.68.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.68.ebuild |
350 |
deleted file mode 100644 |
351 |
index ff0e401cd76..00000000000 |
352 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.68.ebuild |
353 |
+++ /dev/null |
354 |
@@ -1,137 +0,0 @@ |
355 |
-# Copyright 2020 Gentoo Authors |
356 |
-# Distributed under the terms of the GNU General Public License v2 |
357 |
- |
358 |
-EAPI=7 |
359 |
- |
360 |
-inherit kernel-build |
361 |
- |
362 |
-MY_P=linux-${PV%.*} |
363 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) |
364 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
365 |
-CONFIG_VER=5.4.21 |
366 |
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea |
367 |
- |
368 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
369 |
-HOMEPAGE="https://www.kernel.org/" |
370 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
371 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
372 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
373 |
- amd64? ( |
374 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config |
375 |
- -> kernel-x86_64.config.${CONFIG_VER} |
376 |
- ) |
377 |
- arm64? ( |
378 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config |
379 |
- -> kernel-aarch64.config.${CONFIG_VER} |
380 |
- ) |
381 |
- ppc64? ( |
382 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config |
383 |
- -> kernel-ppc64le.config.${CONFIG_VER} |
384 |
- ) |
385 |
- x86? ( |
386 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config |
387 |
- -> kernel-i686.config.${CONFIG_VER} |
388 |
- )" |
389 |
-S=${WORKDIR}/${MY_P} |
390 |
- |
391 |
-LICENSE="GPL-2" |
392 |
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
393 |
-IUSE="debug" |
394 |
- |
395 |
-RDEPEND=" |
396 |
- !sys-kernel/vanilla-kernel:${SLOT} |
397 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
398 |
-BDEPEND=" |
399 |
- debug? ( dev-util/dwarves )" |
400 |
- |
401 |
-pkg_pretend() { |
402 |
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" |
403 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
404 |
- |
405 |
- kernel-install_pkg_pretend |
406 |
-} |
407 |
- |
408 |
-src_prepare() { |
409 |
- local PATCHES=( |
410 |
- # meh, genpatches have no directory |
411 |
- "${WORKDIR}"/*.patch |
412 |
- ) |
413 |
- default |
414 |
- |
415 |
- # prepare the default config |
416 |
- case ${ARCH} in |
417 |
- amd64) |
418 |
- cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die |
419 |
- ;; |
420 |
- arm64) |
421 |
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die |
422 |
- ;; |
423 |
- ppc64) |
424 |
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die |
425 |
- ;; |
426 |
- x86) |
427 |
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die |
428 |
- ;; |
429 |
- *) |
430 |
- die "Unsupported arch ${ARCH}" |
431 |
- ;; |
432 |
- esac |
433 |
- |
434 |
- local config_tweaks=( |
435 |
- # replace (none) with gentoo |
436 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
437 |
- # we do support x32 |
438 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
439 |
- # disable signatures |
440 |
- -e '/CONFIG_MODULE_SIG/d' |
441 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
442 |
- -e '/CONFIG_KEXEC_SIG/d' |
443 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
444 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
445 |
- -e '/CONFIG_SIGNATURE/d' |
446 |
- # remove massive array of LSMs |
447 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
448 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
449 |
- # nobody actually wants fips |
450 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
451 |
- # these tests are really not necessary |
452 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
453 |
- # probably not needed by anybody but developers |
454 |
- -e '/CONFIG_CRYPTO_STATS/d' |
455 |
- # 1000hz is excessive for laptops |
456 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
457 |
- # nobody is using this kernel on insane super computers |
458 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
459 |
- # we're not actually producing live patches for folks |
460 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
461 |
- # this slows down networking in general |
462 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
463 |
- # include font for normal and hidpi screens |
464 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
465 |
- # we don't need to actually install system headers from this ebuild |
466 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
467 |
- # enable /proc/config.gz, used by linux-info.eclass |
468 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
469 |
- # WireGuard was backported to 5.4 but we use old configs (#739128) |
470 |
- -e '$aCONFIG_WIREGUARD=m' |
471 |
- ) |
472 |
- use debug || config_tweaks+=( |
473 |
- -e '/CONFIG_DEBUG_INFO/d' |
474 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
475 |
- -e '/CONFIG_DEBUG_VM/d' |
476 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
477 |
- -e '/CONFIG_DEBUG_LIST/d' |
478 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
479 |
- -e '/CONFIG_TORTURE_TEST/d' |
480 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
481 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
482 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
483 |
- -e '/CONFIG_KGDB/d' |
484 |
- ) |
485 |
- [[ ${ARCH} == x86 ]] && config_tweaks+=( |
486 |
- # fix autoenabling 64bit |
487 |
- -e '2i\ |
488 |
-# CONFIG_64BIT is not set' |
489 |
- ) |
490 |
- sed -i "${config_tweaks[@]}" .config || die |
491 |
-} |
492 |
|
493 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.69.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.69.ebuild |
494 |
deleted file mode 100644 |
495 |
index ff0e401cd76..00000000000 |
496 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.69.ebuild |
497 |
+++ /dev/null |
498 |
@@ -1,137 +0,0 @@ |
499 |
-# Copyright 2020 Gentoo Authors |
500 |
-# Distributed under the terms of the GNU General Public License v2 |
501 |
- |
502 |
-EAPI=7 |
503 |
- |
504 |
-inherit kernel-build |
505 |
- |
506 |
-MY_P=linux-${PV%.*} |
507 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) |
508 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
509 |
-CONFIG_VER=5.4.21 |
510 |
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea |
511 |
- |
512 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
513 |
-HOMEPAGE="https://www.kernel.org/" |
514 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
515 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
516 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
517 |
- amd64? ( |
518 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config |
519 |
- -> kernel-x86_64.config.${CONFIG_VER} |
520 |
- ) |
521 |
- arm64? ( |
522 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config |
523 |
- -> kernel-aarch64.config.${CONFIG_VER} |
524 |
- ) |
525 |
- ppc64? ( |
526 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config |
527 |
- -> kernel-ppc64le.config.${CONFIG_VER} |
528 |
- ) |
529 |
- x86? ( |
530 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config |
531 |
- -> kernel-i686.config.${CONFIG_VER} |
532 |
- )" |
533 |
-S=${WORKDIR}/${MY_P} |
534 |
- |
535 |
-LICENSE="GPL-2" |
536 |
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
537 |
-IUSE="debug" |
538 |
- |
539 |
-RDEPEND=" |
540 |
- !sys-kernel/vanilla-kernel:${SLOT} |
541 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
542 |
-BDEPEND=" |
543 |
- debug? ( dev-util/dwarves )" |
544 |
- |
545 |
-pkg_pretend() { |
546 |
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" |
547 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
548 |
- |
549 |
- kernel-install_pkg_pretend |
550 |
-} |
551 |
- |
552 |
-src_prepare() { |
553 |
- local PATCHES=( |
554 |
- # meh, genpatches have no directory |
555 |
- "${WORKDIR}"/*.patch |
556 |
- ) |
557 |
- default |
558 |
- |
559 |
- # prepare the default config |
560 |
- case ${ARCH} in |
561 |
- amd64) |
562 |
- cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die |
563 |
- ;; |
564 |
- arm64) |
565 |
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die |
566 |
- ;; |
567 |
- ppc64) |
568 |
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die |
569 |
- ;; |
570 |
- x86) |
571 |
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die |
572 |
- ;; |
573 |
- *) |
574 |
- die "Unsupported arch ${ARCH}" |
575 |
- ;; |
576 |
- esac |
577 |
- |
578 |
- local config_tweaks=( |
579 |
- # replace (none) with gentoo |
580 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
581 |
- # we do support x32 |
582 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
583 |
- # disable signatures |
584 |
- -e '/CONFIG_MODULE_SIG/d' |
585 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
586 |
- -e '/CONFIG_KEXEC_SIG/d' |
587 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
588 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
589 |
- -e '/CONFIG_SIGNATURE/d' |
590 |
- # remove massive array of LSMs |
591 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
592 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
593 |
- # nobody actually wants fips |
594 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
595 |
- # these tests are really not necessary |
596 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
597 |
- # probably not needed by anybody but developers |
598 |
- -e '/CONFIG_CRYPTO_STATS/d' |
599 |
- # 1000hz is excessive for laptops |
600 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
601 |
- # nobody is using this kernel on insane super computers |
602 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
603 |
- # we're not actually producing live patches for folks |
604 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
605 |
- # this slows down networking in general |
606 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
607 |
- # include font for normal and hidpi screens |
608 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
609 |
- # we don't need to actually install system headers from this ebuild |
610 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
611 |
- # enable /proc/config.gz, used by linux-info.eclass |
612 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
613 |
- # WireGuard was backported to 5.4 but we use old configs (#739128) |
614 |
- -e '$aCONFIG_WIREGUARD=m' |
615 |
- ) |
616 |
- use debug || config_tweaks+=( |
617 |
- -e '/CONFIG_DEBUG_INFO/d' |
618 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
619 |
- -e '/CONFIG_DEBUG_VM/d' |
620 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
621 |
- -e '/CONFIG_DEBUG_LIST/d' |
622 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
623 |
- -e '/CONFIG_TORTURE_TEST/d' |
624 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
625 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
626 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
627 |
- -e '/CONFIG_KGDB/d' |
628 |
- ) |
629 |
- [[ ${ARCH} == x86 ]] && config_tweaks+=( |
630 |
- # fix autoenabling 64bit |
631 |
- -e '2i\ |
632 |
-# CONFIG_64BIT is not set' |
633 |
- ) |
634 |
- sed -i "${config_tweaks[@]}" .config || die |
635 |
-} |
636 |
|
637 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.70.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.70.ebuild |
638 |
deleted file mode 100644 |
639 |
index ff0e401cd76..00000000000 |
640 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.70.ebuild |
641 |
+++ /dev/null |
642 |
@@ -1,137 +0,0 @@ |
643 |
-# Copyright 2020 Gentoo Authors |
644 |
-# Distributed under the terms of the GNU General Public License v2 |
645 |
- |
646 |
-EAPI=7 |
647 |
- |
648 |
-inherit kernel-build |
649 |
- |
650 |
-MY_P=linux-${PV%.*} |
651 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) |
652 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
653 |
-CONFIG_VER=5.4.21 |
654 |
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea |
655 |
- |
656 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
657 |
-HOMEPAGE="https://www.kernel.org/" |
658 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
659 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
660 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
661 |
- amd64? ( |
662 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config |
663 |
- -> kernel-x86_64.config.${CONFIG_VER} |
664 |
- ) |
665 |
- arm64? ( |
666 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config |
667 |
- -> kernel-aarch64.config.${CONFIG_VER} |
668 |
- ) |
669 |
- ppc64? ( |
670 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config |
671 |
- -> kernel-ppc64le.config.${CONFIG_VER} |
672 |
- ) |
673 |
- x86? ( |
674 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config |
675 |
- -> kernel-i686.config.${CONFIG_VER} |
676 |
- )" |
677 |
-S=${WORKDIR}/${MY_P} |
678 |
- |
679 |
-LICENSE="GPL-2" |
680 |
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
681 |
-IUSE="debug" |
682 |
- |
683 |
-RDEPEND=" |
684 |
- !sys-kernel/vanilla-kernel:${SLOT} |
685 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
686 |
-BDEPEND=" |
687 |
- debug? ( dev-util/dwarves )" |
688 |
- |
689 |
-pkg_pretend() { |
690 |
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" |
691 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
692 |
- |
693 |
- kernel-install_pkg_pretend |
694 |
-} |
695 |
- |
696 |
-src_prepare() { |
697 |
- local PATCHES=( |
698 |
- # meh, genpatches have no directory |
699 |
- "${WORKDIR}"/*.patch |
700 |
- ) |
701 |
- default |
702 |
- |
703 |
- # prepare the default config |
704 |
- case ${ARCH} in |
705 |
- amd64) |
706 |
- cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die |
707 |
- ;; |
708 |
- arm64) |
709 |
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die |
710 |
- ;; |
711 |
- ppc64) |
712 |
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die |
713 |
- ;; |
714 |
- x86) |
715 |
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die |
716 |
- ;; |
717 |
- *) |
718 |
- die "Unsupported arch ${ARCH}" |
719 |
- ;; |
720 |
- esac |
721 |
- |
722 |
- local config_tweaks=( |
723 |
- # replace (none) with gentoo |
724 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
725 |
- # we do support x32 |
726 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
727 |
- # disable signatures |
728 |
- -e '/CONFIG_MODULE_SIG/d' |
729 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
730 |
- -e '/CONFIG_KEXEC_SIG/d' |
731 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
732 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
733 |
- -e '/CONFIG_SIGNATURE/d' |
734 |
- # remove massive array of LSMs |
735 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
736 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
737 |
- # nobody actually wants fips |
738 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
739 |
- # these tests are really not necessary |
740 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
741 |
- # probably not needed by anybody but developers |
742 |
- -e '/CONFIG_CRYPTO_STATS/d' |
743 |
- # 1000hz is excessive for laptops |
744 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
745 |
- # nobody is using this kernel on insane super computers |
746 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
747 |
- # we're not actually producing live patches for folks |
748 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
749 |
- # this slows down networking in general |
750 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
751 |
- # include font for normal and hidpi screens |
752 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
753 |
- # we don't need to actually install system headers from this ebuild |
754 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
755 |
- # enable /proc/config.gz, used by linux-info.eclass |
756 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
757 |
- # WireGuard was backported to 5.4 but we use old configs (#739128) |
758 |
- -e '$aCONFIG_WIREGUARD=m' |
759 |
- ) |
760 |
- use debug || config_tweaks+=( |
761 |
- -e '/CONFIG_DEBUG_INFO/d' |
762 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
763 |
- -e '/CONFIG_DEBUG_VM/d' |
764 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
765 |
- -e '/CONFIG_DEBUG_LIST/d' |
766 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
767 |
- -e '/CONFIG_TORTURE_TEST/d' |
768 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
769 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
770 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
771 |
- -e '/CONFIG_KGDB/d' |
772 |
- ) |
773 |
- [[ ${ARCH} == x86 ]] && config_tweaks+=( |
774 |
- # fix autoenabling 64bit |
775 |
- -e '2i\ |
776 |
-# CONFIG_64BIT is not set' |
777 |
- ) |
778 |
- sed -i "${config_tweaks[@]}" .config || die |
779 |
-} |
780 |
|
781 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.71.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.71.ebuild |
782 |
deleted file mode 100644 |
783 |
index ff0e401cd76..00000000000 |
784 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.71.ebuild |
785 |
+++ /dev/null |
786 |
@@ -1,137 +0,0 @@ |
787 |
-# Copyright 2020 Gentoo Authors |
788 |
-# Distributed under the terms of the GNU General Public License v2 |
789 |
- |
790 |
-EAPI=7 |
791 |
- |
792 |
-inherit kernel-build |
793 |
- |
794 |
-MY_P=linux-${PV%.*} |
795 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) |
796 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
797 |
-CONFIG_VER=5.4.21 |
798 |
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea |
799 |
- |
800 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
801 |
-HOMEPAGE="https://www.kernel.org/" |
802 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
803 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
804 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
805 |
- amd64? ( |
806 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config |
807 |
- -> kernel-x86_64.config.${CONFIG_VER} |
808 |
- ) |
809 |
- arm64? ( |
810 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config |
811 |
- -> kernel-aarch64.config.${CONFIG_VER} |
812 |
- ) |
813 |
- ppc64? ( |
814 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config |
815 |
- -> kernel-ppc64le.config.${CONFIG_VER} |
816 |
- ) |
817 |
- x86? ( |
818 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config |
819 |
- -> kernel-i686.config.${CONFIG_VER} |
820 |
- )" |
821 |
-S=${WORKDIR}/${MY_P} |
822 |
- |
823 |
-LICENSE="GPL-2" |
824 |
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
825 |
-IUSE="debug" |
826 |
- |
827 |
-RDEPEND=" |
828 |
- !sys-kernel/vanilla-kernel:${SLOT} |
829 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
830 |
-BDEPEND=" |
831 |
- debug? ( dev-util/dwarves )" |
832 |
- |
833 |
-pkg_pretend() { |
834 |
- ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" |
835 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
836 |
- |
837 |
- kernel-install_pkg_pretend |
838 |
-} |
839 |
- |
840 |
-src_prepare() { |
841 |
- local PATCHES=( |
842 |
- # meh, genpatches have no directory |
843 |
- "${WORKDIR}"/*.patch |
844 |
- ) |
845 |
- default |
846 |
- |
847 |
- # prepare the default config |
848 |
- case ${ARCH} in |
849 |
- amd64) |
850 |
- cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die |
851 |
- ;; |
852 |
- arm64) |
853 |
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die |
854 |
- ;; |
855 |
- ppc64) |
856 |
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die |
857 |
- ;; |
858 |
- x86) |
859 |
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die |
860 |
- ;; |
861 |
- *) |
862 |
- die "Unsupported arch ${ARCH}" |
863 |
- ;; |
864 |
- esac |
865 |
- |
866 |
- local config_tweaks=( |
867 |
- # replace (none) with gentoo |
868 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
869 |
- # we do support x32 |
870 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
871 |
- # disable signatures |
872 |
- -e '/CONFIG_MODULE_SIG/d' |
873 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
874 |
- -e '/CONFIG_KEXEC_SIG/d' |
875 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
876 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
877 |
- -e '/CONFIG_SIGNATURE/d' |
878 |
- # remove massive array of LSMs |
879 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
880 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
881 |
- # nobody actually wants fips |
882 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
883 |
- # these tests are really not necessary |
884 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
885 |
- # probably not needed by anybody but developers |
886 |
- -e '/CONFIG_CRYPTO_STATS/d' |
887 |
- # 1000hz is excessive for laptops |
888 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
889 |
- # nobody is using this kernel on insane super computers |
890 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
891 |
- # we're not actually producing live patches for folks |
892 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
893 |
- # this slows down networking in general |
894 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
895 |
- # include font for normal and hidpi screens |
896 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
897 |
- # we don't need to actually install system headers from this ebuild |
898 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
899 |
- # enable /proc/config.gz, used by linux-info.eclass |
900 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
901 |
- # WireGuard was backported to 5.4 but we use old configs (#739128) |
902 |
- -e '$aCONFIG_WIREGUARD=m' |
903 |
- ) |
904 |
- use debug || config_tweaks+=( |
905 |
- -e '/CONFIG_DEBUG_INFO/d' |
906 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
907 |
- -e '/CONFIG_DEBUG_VM/d' |
908 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
909 |
- -e '/CONFIG_DEBUG_LIST/d' |
910 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
911 |
- -e '/CONFIG_TORTURE_TEST/d' |
912 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
913 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
914 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
915 |
- -e '/CONFIG_KGDB/d' |
916 |
- ) |
917 |
- [[ ${ARCH} == x86 ]] && config_tweaks+=( |
918 |
- # fix autoenabling 64bit |
919 |
- -e '2i\ |
920 |
-# CONFIG_64BIT is not set' |
921 |
- ) |
922 |
- sed -i "${config_tweaks[@]}" .config || die |
923 |
-} |
924 |
|
925 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.12.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.12.ebuild |
926 |
deleted file mode 100644 |
927 |
index 1527024779c..00000000000 |
928 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.12.ebuild |
929 |
+++ /dev/null |
930 |
@@ -1,134 +0,0 @@ |
931 |
-# Copyright 2020 Gentoo Authors |
932 |
-# Distributed under the terms of the GNU General Public License v2 |
933 |
- |
934 |
-EAPI=7 |
935 |
- |
936 |
-inherit kernel-build |
937 |
- |
938 |
-MY_P=linux-${PV%.*} |
939 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 )) |
940 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
941 |
-CONFIG_VER=5.8.5 |
942 |
-CONFIG_HASH=af8da8d54d21231fd8c7b943216bb985f0a4e223 |
943 |
- |
944 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
945 |
-HOMEPAGE="https://www.kernel.org/" |
946 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
947 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
948 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
949 |
- amd64? ( |
950 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config |
951 |
- -> kernel-x86_64-fedora.config.${CONFIG_VER} |
952 |
- ) |
953 |
- arm64? ( |
954 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config |
955 |
- -> kernel-aarch64-fedora.config.${CONFIG_VER} |
956 |
- ) |
957 |
- ppc64? ( |
958 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config |
959 |
- -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
960 |
- ) |
961 |
- x86? ( |
962 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config |
963 |
- -> kernel-i686-fedora.config.${CONFIG_VER} |
964 |
- )" |
965 |
-S=${WORKDIR}/${MY_P} |
966 |
- |
967 |
-LICENSE="GPL-2" |
968 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
969 |
-IUSE="debug" |
970 |
-REQUIRED_USE="arm? ( savedconfig )" |
971 |
- |
972 |
-RDEPEND=" |
973 |
- !sys-kernel/vanilla-kernel:${SLOT} |
974 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
975 |
-BDEPEND=" |
976 |
- debug? ( dev-util/dwarves )" |
977 |
- |
978 |
-pkg_pretend() { |
979 |
- ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch" |
980 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
981 |
- |
982 |
- kernel-install_pkg_pretend |
983 |
-} |
984 |
- |
985 |
-src_prepare() { |
986 |
- local PATCHES=( |
987 |
- # meh, genpatches have no directory |
988 |
- "${WORKDIR}"/*.patch |
989 |
- ) |
990 |
- default |
991 |
- |
992 |
- # prepare the default config |
993 |
- case ${ARCH} in |
994 |
- amd64) |
995 |
- cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
996 |
- ;; |
997 |
- arm) |
998 |
- return |
999 |
- ;; |
1000 |
- arm64) |
1001 |
- cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
1002 |
- ;; |
1003 |
- ppc64) |
1004 |
- cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
1005 |
- ;; |
1006 |
- x86) |
1007 |
- cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
1008 |
- ;; |
1009 |
- *) |
1010 |
- die "Unsupported arch ${ARCH}" |
1011 |
- ;; |
1012 |
- esac |
1013 |
- |
1014 |
- local config_tweaks=( |
1015 |
- # replace (none) with gentoo |
1016 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
1017 |
- # we do support x32 |
1018 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
1019 |
- # disable signatures |
1020 |
- -e '/CONFIG_MODULE_SIG/d' |
1021 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
1022 |
- -e '/CONFIG_KEXEC_SIG/d' |
1023 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
1024 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
1025 |
- -e '/CONFIG_SIGNATURE/d' |
1026 |
- # remove massive array of LSMs |
1027 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
1028 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
1029 |
- # nobody actually wants fips |
1030 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
1031 |
- # these tests are really not necessary |
1032 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
1033 |
- # probably not needed by anybody but developers |
1034 |
- -e '/CONFIG_CRYPTO_STATS/d' |
1035 |
- # 1000hz is excessive for laptops |
1036 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
1037 |
- # nobody is using this kernel on insane super computers |
1038 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
1039 |
- # we're not actually producing live patches for folks |
1040 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
1041 |
- # this slows down networking in general |
1042 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
1043 |
- # include font for normal and hidpi screens |
1044 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
1045 |
- # we don't need to actually install system headers from this ebuild |
1046 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
1047 |
- # enable /proc/config.gz, used by linux-info.eclass |
1048 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
1049 |
- ) |
1050 |
- use debug || config_tweaks+=( |
1051 |
- -e '/CONFIG_DEBUG_INFO/d' |
1052 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
1053 |
- -e '/CONFIG_DEBUG_VM/d' |
1054 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
1055 |
- -e '/CONFIG_DEBUG_LIST/d' |
1056 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
1057 |
- -e '/CONFIG_TORTURE_TEST/d' |
1058 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
1059 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
1060 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
1061 |
- -e '/CONFIG_KGDB/d' |
1062 |
- ) |
1063 |
- sed -i "${config_tweaks[@]}" .config || die |
1064 |
-} |
1065 |
|
1066 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.13.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.13.ebuild |
1067 |
deleted file mode 100644 |
1068 |
index 1527024779c..00000000000 |
1069 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.13.ebuild |
1070 |
+++ /dev/null |
1071 |
@@ -1,134 +0,0 @@ |
1072 |
-# Copyright 2020 Gentoo Authors |
1073 |
-# Distributed under the terms of the GNU General Public License v2 |
1074 |
- |
1075 |
-EAPI=7 |
1076 |
- |
1077 |
-inherit kernel-build |
1078 |
- |
1079 |
-MY_P=linux-${PV%.*} |
1080 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 )) |
1081 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
1082 |
-CONFIG_VER=5.8.5 |
1083 |
-CONFIG_HASH=af8da8d54d21231fd8c7b943216bb985f0a4e223 |
1084 |
- |
1085 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
1086 |
-HOMEPAGE="https://www.kernel.org/" |
1087 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
1088 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
1089 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
1090 |
- amd64? ( |
1091 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config |
1092 |
- -> kernel-x86_64-fedora.config.${CONFIG_VER} |
1093 |
- ) |
1094 |
- arm64? ( |
1095 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config |
1096 |
- -> kernel-aarch64-fedora.config.${CONFIG_VER} |
1097 |
- ) |
1098 |
- ppc64? ( |
1099 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config |
1100 |
- -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
1101 |
- ) |
1102 |
- x86? ( |
1103 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config |
1104 |
- -> kernel-i686-fedora.config.${CONFIG_VER} |
1105 |
- )" |
1106 |
-S=${WORKDIR}/${MY_P} |
1107 |
- |
1108 |
-LICENSE="GPL-2" |
1109 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
1110 |
-IUSE="debug" |
1111 |
-REQUIRED_USE="arm? ( savedconfig )" |
1112 |
- |
1113 |
-RDEPEND=" |
1114 |
- !sys-kernel/vanilla-kernel:${SLOT} |
1115 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
1116 |
-BDEPEND=" |
1117 |
- debug? ( dev-util/dwarves )" |
1118 |
- |
1119 |
-pkg_pretend() { |
1120 |
- ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch" |
1121 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
1122 |
- |
1123 |
- kernel-install_pkg_pretend |
1124 |
-} |
1125 |
- |
1126 |
-src_prepare() { |
1127 |
- local PATCHES=( |
1128 |
- # meh, genpatches have no directory |
1129 |
- "${WORKDIR}"/*.patch |
1130 |
- ) |
1131 |
- default |
1132 |
- |
1133 |
- # prepare the default config |
1134 |
- case ${ARCH} in |
1135 |
- amd64) |
1136 |
- cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
1137 |
- ;; |
1138 |
- arm) |
1139 |
- return |
1140 |
- ;; |
1141 |
- arm64) |
1142 |
- cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
1143 |
- ;; |
1144 |
- ppc64) |
1145 |
- cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
1146 |
- ;; |
1147 |
- x86) |
1148 |
- cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
1149 |
- ;; |
1150 |
- *) |
1151 |
- die "Unsupported arch ${ARCH}" |
1152 |
- ;; |
1153 |
- esac |
1154 |
- |
1155 |
- local config_tweaks=( |
1156 |
- # replace (none) with gentoo |
1157 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
1158 |
- # we do support x32 |
1159 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
1160 |
- # disable signatures |
1161 |
- -e '/CONFIG_MODULE_SIG/d' |
1162 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
1163 |
- -e '/CONFIG_KEXEC_SIG/d' |
1164 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
1165 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
1166 |
- -e '/CONFIG_SIGNATURE/d' |
1167 |
- # remove massive array of LSMs |
1168 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
1169 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
1170 |
- # nobody actually wants fips |
1171 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
1172 |
- # these tests are really not necessary |
1173 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
1174 |
- # probably not needed by anybody but developers |
1175 |
- -e '/CONFIG_CRYPTO_STATS/d' |
1176 |
- # 1000hz is excessive for laptops |
1177 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
1178 |
- # nobody is using this kernel on insane super computers |
1179 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
1180 |
- # we're not actually producing live patches for folks |
1181 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
1182 |
- # this slows down networking in general |
1183 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
1184 |
- # include font for normal and hidpi screens |
1185 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
1186 |
- # we don't need to actually install system headers from this ebuild |
1187 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
1188 |
- # enable /proc/config.gz, used by linux-info.eclass |
1189 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
1190 |
- ) |
1191 |
- use debug || config_tweaks+=( |
1192 |
- -e '/CONFIG_DEBUG_INFO/d' |
1193 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
1194 |
- -e '/CONFIG_DEBUG_VM/d' |
1195 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
1196 |
- -e '/CONFIG_DEBUG_LIST/d' |
1197 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
1198 |
- -e '/CONFIG_TORTURE_TEST/d' |
1199 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
1200 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
1201 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
1202 |
- -e '/CONFIG_KGDB/d' |
1203 |
- ) |
1204 |
- sed -i "${config_tweaks[@]}" .config || die |
1205 |
-} |
1206 |
|
1207 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.14.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.14.ebuild |
1208 |
deleted file mode 100644 |
1209 |
index 1527024779c..00000000000 |
1210 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.14.ebuild |
1211 |
+++ /dev/null |
1212 |
@@ -1,134 +0,0 @@ |
1213 |
-# Copyright 2020 Gentoo Authors |
1214 |
-# Distributed under the terms of the GNU General Public License v2 |
1215 |
- |
1216 |
-EAPI=7 |
1217 |
- |
1218 |
-inherit kernel-build |
1219 |
- |
1220 |
-MY_P=linux-${PV%.*} |
1221 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 )) |
1222 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
1223 |
-CONFIG_VER=5.8.5 |
1224 |
-CONFIG_HASH=af8da8d54d21231fd8c7b943216bb985f0a4e223 |
1225 |
- |
1226 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
1227 |
-HOMEPAGE="https://www.kernel.org/" |
1228 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
1229 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
1230 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
1231 |
- amd64? ( |
1232 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config |
1233 |
- -> kernel-x86_64-fedora.config.${CONFIG_VER} |
1234 |
- ) |
1235 |
- arm64? ( |
1236 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config |
1237 |
- -> kernel-aarch64-fedora.config.${CONFIG_VER} |
1238 |
- ) |
1239 |
- ppc64? ( |
1240 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config |
1241 |
- -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
1242 |
- ) |
1243 |
- x86? ( |
1244 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config |
1245 |
- -> kernel-i686-fedora.config.${CONFIG_VER} |
1246 |
- )" |
1247 |
-S=${WORKDIR}/${MY_P} |
1248 |
- |
1249 |
-LICENSE="GPL-2" |
1250 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
1251 |
-IUSE="debug" |
1252 |
-REQUIRED_USE="arm? ( savedconfig )" |
1253 |
- |
1254 |
-RDEPEND=" |
1255 |
- !sys-kernel/vanilla-kernel:${SLOT} |
1256 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
1257 |
-BDEPEND=" |
1258 |
- debug? ( dev-util/dwarves )" |
1259 |
- |
1260 |
-pkg_pretend() { |
1261 |
- ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch" |
1262 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
1263 |
- |
1264 |
- kernel-install_pkg_pretend |
1265 |
-} |
1266 |
- |
1267 |
-src_prepare() { |
1268 |
- local PATCHES=( |
1269 |
- # meh, genpatches have no directory |
1270 |
- "${WORKDIR}"/*.patch |
1271 |
- ) |
1272 |
- default |
1273 |
- |
1274 |
- # prepare the default config |
1275 |
- case ${ARCH} in |
1276 |
- amd64) |
1277 |
- cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
1278 |
- ;; |
1279 |
- arm) |
1280 |
- return |
1281 |
- ;; |
1282 |
- arm64) |
1283 |
- cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
1284 |
- ;; |
1285 |
- ppc64) |
1286 |
- cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
1287 |
- ;; |
1288 |
- x86) |
1289 |
- cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
1290 |
- ;; |
1291 |
- *) |
1292 |
- die "Unsupported arch ${ARCH}" |
1293 |
- ;; |
1294 |
- esac |
1295 |
- |
1296 |
- local config_tweaks=( |
1297 |
- # replace (none) with gentoo |
1298 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
1299 |
- # we do support x32 |
1300 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
1301 |
- # disable signatures |
1302 |
- -e '/CONFIG_MODULE_SIG/d' |
1303 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
1304 |
- -e '/CONFIG_KEXEC_SIG/d' |
1305 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
1306 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
1307 |
- -e '/CONFIG_SIGNATURE/d' |
1308 |
- # remove massive array of LSMs |
1309 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
1310 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
1311 |
- # nobody actually wants fips |
1312 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
1313 |
- # these tests are really not necessary |
1314 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
1315 |
- # probably not needed by anybody but developers |
1316 |
- -e '/CONFIG_CRYPTO_STATS/d' |
1317 |
- # 1000hz is excessive for laptops |
1318 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
1319 |
- # nobody is using this kernel on insane super computers |
1320 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
1321 |
- # we're not actually producing live patches for folks |
1322 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
1323 |
- # this slows down networking in general |
1324 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
1325 |
- # include font for normal and hidpi screens |
1326 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
1327 |
- # we don't need to actually install system headers from this ebuild |
1328 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
1329 |
- # enable /proc/config.gz, used by linux-info.eclass |
1330 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
1331 |
- ) |
1332 |
- use debug || config_tweaks+=( |
1333 |
- -e '/CONFIG_DEBUG_INFO/d' |
1334 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
1335 |
- -e '/CONFIG_DEBUG_VM/d' |
1336 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
1337 |
- -e '/CONFIG_DEBUG_LIST/d' |
1338 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
1339 |
- -e '/CONFIG_TORTURE_TEST/d' |
1340 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
1341 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
1342 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
1343 |
- -e '/CONFIG_KGDB/d' |
1344 |
- ) |
1345 |
- sed -i "${config_tweaks[@]}" .config || die |
1346 |
-} |
1347 |
|
1348 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.15.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.15.ebuild |
1349 |
deleted file mode 100644 |
1350 |
index 1527024779c..00000000000 |
1351 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.15.ebuild |
1352 |
+++ /dev/null |
1353 |
@@ -1,134 +0,0 @@ |
1354 |
-# Copyright 2020 Gentoo Authors |
1355 |
-# Distributed under the terms of the GNU General Public License v2 |
1356 |
- |
1357 |
-EAPI=7 |
1358 |
- |
1359 |
-inherit kernel-build |
1360 |
- |
1361 |
-MY_P=linux-${PV%.*} |
1362 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 )) |
1363 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
1364 |
-CONFIG_VER=5.8.5 |
1365 |
-CONFIG_HASH=af8da8d54d21231fd8c7b943216bb985f0a4e223 |
1366 |
- |
1367 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
1368 |
-HOMEPAGE="https://www.kernel.org/" |
1369 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
1370 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
1371 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
1372 |
- amd64? ( |
1373 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config |
1374 |
- -> kernel-x86_64-fedora.config.${CONFIG_VER} |
1375 |
- ) |
1376 |
- arm64? ( |
1377 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config |
1378 |
- -> kernel-aarch64-fedora.config.${CONFIG_VER} |
1379 |
- ) |
1380 |
- ppc64? ( |
1381 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config |
1382 |
- -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
1383 |
- ) |
1384 |
- x86? ( |
1385 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config |
1386 |
- -> kernel-i686-fedora.config.${CONFIG_VER} |
1387 |
- )" |
1388 |
-S=${WORKDIR}/${MY_P} |
1389 |
- |
1390 |
-LICENSE="GPL-2" |
1391 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
1392 |
-IUSE="debug" |
1393 |
-REQUIRED_USE="arm? ( savedconfig )" |
1394 |
- |
1395 |
-RDEPEND=" |
1396 |
- !sys-kernel/vanilla-kernel:${SLOT} |
1397 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
1398 |
-BDEPEND=" |
1399 |
- debug? ( dev-util/dwarves )" |
1400 |
- |
1401 |
-pkg_pretend() { |
1402 |
- ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch" |
1403 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
1404 |
- |
1405 |
- kernel-install_pkg_pretend |
1406 |
-} |
1407 |
- |
1408 |
-src_prepare() { |
1409 |
- local PATCHES=( |
1410 |
- # meh, genpatches have no directory |
1411 |
- "${WORKDIR}"/*.patch |
1412 |
- ) |
1413 |
- default |
1414 |
- |
1415 |
- # prepare the default config |
1416 |
- case ${ARCH} in |
1417 |
- amd64) |
1418 |
- cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
1419 |
- ;; |
1420 |
- arm) |
1421 |
- return |
1422 |
- ;; |
1423 |
- arm64) |
1424 |
- cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
1425 |
- ;; |
1426 |
- ppc64) |
1427 |
- cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
1428 |
- ;; |
1429 |
- x86) |
1430 |
- cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
1431 |
- ;; |
1432 |
- *) |
1433 |
- die "Unsupported arch ${ARCH}" |
1434 |
- ;; |
1435 |
- esac |
1436 |
- |
1437 |
- local config_tweaks=( |
1438 |
- # replace (none) with gentoo |
1439 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
1440 |
- # we do support x32 |
1441 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
1442 |
- # disable signatures |
1443 |
- -e '/CONFIG_MODULE_SIG/d' |
1444 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
1445 |
- -e '/CONFIG_KEXEC_SIG/d' |
1446 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
1447 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
1448 |
- -e '/CONFIG_SIGNATURE/d' |
1449 |
- # remove massive array of LSMs |
1450 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
1451 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
1452 |
- # nobody actually wants fips |
1453 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
1454 |
- # these tests are really not necessary |
1455 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
1456 |
- # probably not needed by anybody but developers |
1457 |
- -e '/CONFIG_CRYPTO_STATS/d' |
1458 |
- # 1000hz is excessive for laptops |
1459 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
1460 |
- # nobody is using this kernel on insane super computers |
1461 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
1462 |
- # we're not actually producing live patches for folks |
1463 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
1464 |
- # this slows down networking in general |
1465 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
1466 |
- # include font for normal and hidpi screens |
1467 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
1468 |
- # we don't need to actually install system headers from this ebuild |
1469 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
1470 |
- # enable /proc/config.gz, used by linux-info.eclass |
1471 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
1472 |
- ) |
1473 |
- use debug || config_tweaks+=( |
1474 |
- -e '/CONFIG_DEBUG_INFO/d' |
1475 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
1476 |
- -e '/CONFIG_DEBUG_VM/d' |
1477 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
1478 |
- -e '/CONFIG_DEBUG_LIST/d' |
1479 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
1480 |
- -e '/CONFIG_TORTURE_TEST/d' |
1481 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
1482 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
1483 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
1484 |
- -e '/CONFIG_KGDB/d' |
1485 |
- ) |
1486 |
- sed -i "${config_tweaks[@]}" .config || die |
1487 |
-} |
1488 |
|
1489 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.0.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.0.ebuild |
1490 |
deleted file mode 100644 |
1491 |
index e7a5b2ccc31..00000000000 |
1492 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.9.0.ebuild |
1493 |
+++ /dev/null |
1494 |
@@ -1,134 +0,0 @@ |
1495 |
-# Copyright 2020 Gentoo Authors |
1496 |
-# Distributed under the terms of the GNU General Public License v2 |
1497 |
- |
1498 |
-EAPI=7 |
1499 |
- |
1500 |
-inherit kernel-build |
1501 |
- |
1502 |
-MY_P=linux-${PV%.*} |
1503 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) |
1504 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
1505 |
-CONFIG_VER=5.9.0 |
1506 |
-CONFIG_HASH=aa6d9438d030fa4682d5d450481085c901503da5 |
1507 |
- |
1508 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
1509 |
-HOMEPAGE="https://www.kernel.org/" |
1510 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
1511 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
1512 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
1513 |
- amd64? ( |
1514 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config |
1515 |
- -> kernel-x86_64-fedora.config.${CONFIG_VER} |
1516 |
- ) |
1517 |
- arm64? ( |
1518 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config |
1519 |
- -> kernel-aarch64-fedora.config.${CONFIG_VER} |
1520 |
- ) |
1521 |
- ppc64? ( |
1522 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config |
1523 |
- -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
1524 |
- ) |
1525 |
- x86? ( |
1526 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config |
1527 |
- -> kernel-i686-fedora.config.${CONFIG_VER} |
1528 |
- )" |
1529 |
-S=${WORKDIR}/${MY_P} |
1530 |
- |
1531 |
-LICENSE="GPL-2" |
1532 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
1533 |
-IUSE="debug" |
1534 |
-REQUIRED_USE="arm? ( savedconfig )" |
1535 |
- |
1536 |
-RDEPEND=" |
1537 |
- !sys-kernel/vanilla-kernel:${SLOT} |
1538 |
- !sys-kernel/vanilla-kernel-bin:${SLOT}" |
1539 |
-BDEPEND=" |
1540 |
- debug? ( dev-util/dwarves )" |
1541 |
- |
1542 |
-pkg_pretend() { |
1543 |
- ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch" |
1544 |
- ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." |
1545 |
- |
1546 |
- kernel-install_pkg_pretend |
1547 |
-} |
1548 |
- |
1549 |
-src_prepare() { |
1550 |
- local PATCHES=( |
1551 |
- # meh, genpatches have no directory |
1552 |
- "${WORKDIR}"/*.patch |
1553 |
- ) |
1554 |
- default |
1555 |
- |
1556 |
- # prepare the default config |
1557 |
- case ${ARCH} in |
1558 |
- amd64) |
1559 |
- cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
1560 |
- ;; |
1561 |
- arm) |
1562 |
- return |
1563 |
- ;; |
1564 |
- arm64) |
1565 |
- cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
1566 |
- ;; |
1567 |
- ppc64) |
1568 |
- cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
1569 |
- ;; |
1570 |
- x86) |
1571 |
- cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
1572 |
- ;; |
1573 |
- *) |
1574 |
- die "Unsupported arch ${ARCH}" |
1575 |
- ;; |
1576 |
- esac |
1577 |
- |
1578 |
- local config_tweaks=( |
1579 |
- # replace (none) with gentoo |
1580 |
- -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":' |
1581 |
- # we do support x32 |
1582 |
- -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:' |
1583 |
- # disable signatures |
1584 |
- -e '/CONFIG_MODULE_SIG/d' |
1585 |
- -e '/CONFIG_SECURITY_LOCKDOWN/d' |
1586 |
- -e '/CONFIG_KEXEC_SIG/d' |
1587 |
- -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d' |
1588 |
- -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' |
1589 |
- -e '/CONFIG_SIGNATURE/d' |
1590 |
- # remove massive array of LSMs |
1591 |
- -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/' |
1592 |
- -e 's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/' |
1593 |
- # nobody actually wants fips |
1594 |
- -e '/CONFIG_CRYPTO_FIPS/d' |
1595 |
- # these tests are really not necessary |
1596 |
- -e 's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/' |
1597 |
- # probably not needed by anybody but developers |
1598 |
- -e '/CONFIG_CRYPTO_STATS/d' |
1599 |
- # 1000hz is excessive for laptops |
1600 |
- -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/' |
1601 |
- # nobody is using this kernel on insane super computers |
1602 |
- -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/' |
1603 |
- # we're not actually producing live patches for folks |
1604 |
- -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/' |
1605 |
- # this slows down networking in general |
1606 |
- -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/' |
1607 |
- # include font for normal and hidpi screens |
1608 |
- -e 's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/' |
1609 |
- # we don't need to actually install system headers from this ebuild |
1610 |
- -e '/CONFIG_HEADERS_INSTALL/d' |
1611 |
- # enable /proc/config.gz, used by linux-info.eclass |
1612 |
- -e '/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:' |
1613 |
- ) |
1614 |
- use debug || config_tweaks+=( |
1615 |
- -e '/CONFIG_DEBUG_INFO/d' |
1616 |
- -e '/CONFIG_DEBUG_RODATA_TEST/d' |
1617 |
- -e '/CONFIG_DEBUG_VM/d' |
1618 |
- -e '/CONFIG_DEBUG_SHIRQ/d' |
1619 |
- -e '/CONFIG_DEBUG_LIST/d' |
1620 |
- -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d' |
1621 |
- -e '/CONFIG_TORTURE_TEST/d' |
1622 |
- -e '/CONFIG_BOOTTIME_TRACING/d' |
1623 |
- -e '/CONFIG_RING_BUFFER_BENCHMARK/d' |
1624 |
- -e '/CONFIG_X86_DECODER_SELFTEST/d' |
1625 |
- -e '/CONFIG_KGDB/d' |
1626 |
- ) |
1627 |
- sed -i "${config_tweaks[@]}" .config || die |
1628 |
-} |