commit:     3bb02341d714b624328494e9440e706e2a2321eb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 12 20:19:27 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep 12 22:58:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bb02341

sys-kernel/gentoo-kernel: Bump to 5.8.9

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-kernel/gentoo-kernel/Manifest                  |   2 +
 .../gentoo-kernel/gentoo-kernel-5.8.9.ebuild       | 134 +++++++++++++++++++++
 2 files changed, 136 insertions(+)

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index 892882ba2b6..29ac9013e87 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -20,6 +20,8 @@ DIST genpatches-5.8-10.base.tar.xz 347544 BLAKE2B 
8cfcdd84b803b8dc1721166d853267
 DIST genpatches-5.8-10.extras.tar.xz 1768 BLAKE2B 
056c24f09a74c2867c767139fcd90af83623aac03e06ae03ebe96decfc4fccfc8b213f93e8b0cfda9bac935d85734c8968f590dd4537ba14f9daa0c249c257fd
 SHA512 
aa1bc1d7f0190cded4d944cad3855358b26bc7dcfc726745da6ff8789662c5b74790284bf659ae8060280086e6b2809c903ce876f0c5b9c9d550a0123ada86af
 DIST genpatches-5.8-11.base.tar.xz 400044 BLAKE2B 
ffa3cbdd4586e142933833859ff3e741a2bf9cfe569aadce43767b671706d256082a07e5c3b11bd9cc849bde645b664c641958590d1ec0b73dd826dab2996f56
 SHA512 
5dab9eb4f0077d5822b736e282696b95993e17d1078691cd14c2201043e9be9c496c56d5f89cfd38fbb5d0c1da433f62d35ff8b9542423524ef701205bc04577
 DIST genpatches-5.8-11.extras.tar.xz 1764 BLAKE2B 
3798c0b54dd3056dfd389db8bbcea775462b218d9670c3322240d90d8f894c89bde55a04a80220e76b0d6fd135c32af1d9f5564795f30e9368f3f58d0d45501f
 SHA512 
958d68e317c0140b2540f757dfabc767e28f1878a2b65012599248edd9ab8ac20e7f1736a0f802f01a9f0f22cc743f1a1f9f4665ac287ba6a477521dee323ab1
+DIST genpatches-5.8-12.base.tar.xz 405720 BLAKE2B 
a34d0390f8297c189a0ad67995b3bf0780ce899d0565b87036723dd0b0e86b22daa9437ac942967ef5274713aafe38e628dc51f1622ab9c1df02ac72065ff37e
 SHA512 
47fcf2cf80c80253c71931db0378a5fd04d724fe8dcb8428f56c7f0a5af8ec3c699ae89ef0a15960a8ac14093d348175b31e4debd92de1aa641223dae4b0b345
+DIST genpatches-5.8-12.extras.tar.xz 1768 BLAKE2B 
232dfb50d4cb331379045b2fc05216c92aa61fc98bd1bd9b697c8cd04f1d1f159f8e2c039d406b540e9b8951494cf7f8ce73db448d0bda2f7c867aabb7bb1190
 SHA512 
82362b149c0df2acfa584ea17a16205b9e0e48c9754f33c8a13e820eaeb9715ef849d9f9ae1b9d4dcaee43245e7d65f71d59c0d4c7476e373765eed4ec4a7037
 DIST genpatches-5.8-5.base.tar.xz 216176 BLAKE2B 
8c57c2b91b6a395b490fedcee8e0f5ba8c7698903d0e1017fb66bb3d5ced1c6675fcd6e7ecc2405ccd237fd9ef4c641b10a0b4c32403c757ada5ccec3dbf0f26
 SHA512 
64bf8a331ba97a1d86159dff23c46c94c63f07158e66f9e86b02de6cc1a4476064fb6a924573c93fa117ea88bf6d6bb05f89c82c1883700af9fcdbbfaa5b72bc
 DIST genpatches-5.8-5.extras.tar.xz 1768 BLAKE2B 
b49e51d13c594029950911a1c7689b13710b8102330a475edb774f967b6162a036cb830b3cc25187e0ee3ec577d607baae036d136111ae1c64b7bebf1f544fe0
 SHA512 
a3fa7af02966567b5a2f4caab584ae19d7a1b955d2c8e599355b1ee5f3aed8971c26ecca6ab453280ea7bd8c9c004b53045848934d121f52474046293a2f554d
 DIST genpatches-5.8-6.base.tar.xz 253496 BLAKE2B 
691638688887676a60639683b75a51a281642bb7cdf51439dc2871a72e8e9fbd3121a93767ccd0f17e95627eba5876e3f119905c3fb93292b16393f3736d2a4c
 SHA512 
352c4f32780e24e4e9721e3792377070806cc756dc68f3266ad3140f5508c303c52c6573736915dfc27f92501a5b56f0fcb25e76916f338e5e737bf75fbb939d

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.9.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.9.ebuild
new file mode 100644
index 00000000000..1527024779c
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.8.9.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-build
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.8.5
+CONFIG_HASH=af8da8d54d21231fd8c7b943216bb985f0a4e223
+
+DESCRIPTION="Linux kernel built with Gentoo patches"
+HOMEPAGE="https://www.kernel.org/";
+SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 
1).x/${MY_P}.tar.xz
+       
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+       
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
+       amd64? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
+                       -> kernel-x86_64-fedora.config.${CONFIG_VER}
+       )
+       arm64? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
+                       -> kernel-aarch64-fedora.config.${CONFIG_VER}
+       )
+       ppc64? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
+                       -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+       )
+       x86? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
+                       -> kernel-i686-fedora.config.${CONFIG_VER}
+       )"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="debug"
+REQUIRED_USE="arm? ( savedconfig )"
+
+RDEPEND="
+       !sys-kernel/vanilla-kernel:${SLOT}
+       !sys-kernel/vanilla-kernel-bin:${SLOT}"
+BDEPEND="
+       debug? ( dev-util/dwarves )"
+
+pkg_pretend() {
+       ewarn "Starting with 5.7.9, Distribution Kernels are switching from 
Arch"
+       ewarn "Linux configs to Fedora.  Please keep a backup kernel just in 
case."
+
+       kernel-install_pkg_pretend
+}
+
+src_prepare() {
+       local PATCHES=(
+               # meh, genpatches have no directory
+               "${WORKDIR}"/*.patch
+       )
+       default
+
+       # prepare the default config
+       case ${ARCH} in
+               amd64)
+                       cp 
"${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+                       ;;
+               arm)
+                       return
+                       ;;
+               arm64)
+                       cp 
"${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+                       ;;
+               ppc64)
+                       cp 
"${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+                       ;;
+               x86)
+                       cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" 
.config || die
+                       ;;
+               *)
+                       die "Unsupported arch ${ARCH}"
+                       ;;
+       esac
+
+       local config_tweaks=(
+               # replace (none) with gentoo
+               -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
+               # we do support x32
+               -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
+               # disable signatures
+               -e '/CONFIG_MODULE_SIG/d'
+               -e '/CONFIG_SECURITY_LOCKDOWN/d'
+               -e '/CONFIG_KEXEC_SIG/d'
+               -e '/CONFIG_KEXEC_BZIMAGE_VERIFY_SIG/d'
+               -e '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d'
+               -e '/CONFIG_SIGNATURE/d'
+               # remove massive array of LSMs
+               -e 's/CONFIG_LSM=.*/CONFIG_LSM="yama"/'
+               -e 
's/CONFIG_DEFAULT_SECURITY_SELINUX=y/CONFIG_DEFAULT_SECURITY_DAC=y/'
+               # nobody actually wants fips
+               -e '/CONFIG_CRYPTO_FIPS/d'
+               # these tests are really not necessary
+               -e 
's/.*CONFIG_CRYPTO_MANAGER_DISABLE_TESTS.*/CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y/'
+               # probably not needed by anybody but developers
+               -e '/CONFIG_CRYPTO_STATS/d'
+               # 1000hz is excessive for laptops
+               -e 's/CONFIG_HZ_1000=y/CONFIG_HZ_300=y/'
+               # nobody is using this kernel on insane super computers
+               -e 's/CONFIG_NR_CPUS=.*/CONFIG_NR_CPUS=512/'
+               # we're not actually producing live patches for folks
+               -e 's/CONFIG_LIVEPATCH=y/CONFIG_LIVEPATCH=n/'
+               # this slows down networking in general
+               -e 's/CONFIG_IP_FIB_TRIE_STATS=y/CONFIG_IP_FIB_TRIE_STATS=n/'
+               # include font for normal and hidpi screens
+               -e 
's/.*CONFIG_FONTS.*/CONFIG_FONTS=y\nCONFIG_FONT_8x16=y\nCONFIG_FONT_TER16x32=y/'
+               # we don't need to actually install system headers from this 
ebuild
+               -e '/CONFIG_HEADERS_INSTALL/d'
+               # enable /proc/config.gz, used by linux-info.eclass
+               -e 
'/CONFIG_IKCONFIG/s:.*:CONFIG_IKCONFIG=y\nCONFIG_IKCONFIG_PROC=y:'
+       )
+       use debug || config_tweaks+=(
+               -e '/CONFIG_DEBUG_INFO/d'
+               -e '/CONFIG_DEBUG_RODATA_TEST/d'
+               -e '/CONFIG_DEBUG_VM/d'
+               -e '/CONFIG_DEBUG_SHIRQ/d'
+               -e '/CONFIG_DEBUG_LIST/d'
+               -e '/CONFIG_BUG_ON_DATA_CORRUPTION/d'
+               -e '/CONFIG_TORTURE_TEST/d'
+               -e '/CONFIG_BOOTTIME_TRACING/d'
+               -e '/CONFIG_RING_BUFFER_BENCHMARK/d'
+               -e '/CONFIG_X86_DECODER_SELFTEST/d'
+               -e '/CONFIG_KGDB/d'
+       )
+       sed -i "${config_tweaks[@]}" .config || die
+}

Reply via email to