From: Michał Górny Date: Thu, 2 Apr 2020 07:00:52 +0000 (+0200) Subject: sys-kernel/gentoo-kernel: Bump to 5.5.14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=73d7677dcf2be37b7b873d5e9f307e200391b989;p=gentoo.git sys-kernel/gentoo-kernel: Bump to 5.5.14 Signed-off-by: Michał Górny --- diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 80e96775b270..22faf0258c05 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.4-29.base.tar.xz 1155296 BLAKE2B b4cddc8f4d7ceb0dd29d58f4b2038 DIST genpatches-5.4-29.extras.tar.xz 1744 BLAKE2B 624f0f1dc70ec4642864eebcbf7c2c9d05359dd0d801799767943c8758cbe52ab36a3dd42cfdac495b73fd4f732c6f0d3e5d35d7a1b1ea81d99f07945ebe848f SHA512 3991b500d2998c4ce801b29ff2766ed3f86f1f29744598afa131cc1d80fb917076e7e69e6eaca80972117d10eabdfe1bd9ae64ecd8825c1b63b87b360785b695 DIST genpatches-5.5-13.base.tar.xz 558584 BLAKE2B e519cc21b25b2c91766c22e86ecef80a6e3516e8a5f666c2452ad8836fb46540fb44ee38df90ddc94a3c7d23fe544e229c247ae200d691869300d8bd979dc5ad SHA512 917610eca9038eeb22d98ce373705607e16b33c66d5846010345a6258d24c34ab44894b2140d6afa9dde7abd05fe6061c90c396bf0940449d77936b15e552479 DIST genpatches-5.5-13.extras.tar.xz 1744 BLAKE2B ca1c8f785f746c31303f27c4eb013ce7dee2d8dd5fd6ebfde1c71a521b696a56bd3e6d97721e929c8637acb20a3faa7c212aa5cbb9bcff1833f82246f16e64fa SHA512 4bdd6eecd6aab145011deedc989b2c2c451840b631df0bd8bb8191b2dffd2a58436b4b9e1656a9cdca6c024b8cfabe911a1bb95c3b4fcd29f3aede4a317fc923 +DIST genpatches-5.5-16.base.tar.xz 643056 BLAKE2B e8e6cc1eedddd9aecd22058a16c7f3d0e54611fe912e2cb2f3b27340d7f9a3dfa6c2326bf29181b4870a327ae0651ea0d4cd4bc2f7a6ce32a59a6419d374ad9e SHA512 e3ae0e1e16e5838f7d1c88394f0020f722a3aa93343b7d704f42ce9173be1de8749ac7d47d071a48a16565210093f7bf77f548b5a4e9f2632b071a4ee141aedf +DIST genpatches-5.5-16.extras.tar.xz 1740 BLAKE2B 77cf2f7232b07ef0646f5e636af9cce0945e8707e2c9ac38f9a69a7dac3ea49615311ab737e1a008b46cc1b40533657901f8d541a64c2798bbc456e730c4b132 SHA512 6214039d90a01fd61e6bdc8370a7f37ba95ff23e1273622ec80271e256852a8fe84b500635c67c890bdce6de985ebcd6351d06dd546ddded23bb39828d35ce72 DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2ddfe423ab423bcc3b9ea8bd9cda65cc7ffa4b1be782c48c867c13e46070af4016f446860f5cf71351f239da1eff6c45a5aa6a SHA512 a5658c8e8464516dffd6f624344e739784cb315d334b2c5105bd5d16022b6366ad4ec00d3692a7b78e2458514175522bc85e834bf19593feff6363b616860258 DIST linux-4.19.94.tar.xz 103389152 BLAKE2B 291db6f448606a4ba288295b4b1c0b813e736534e4749a152baa1d07fcf52bba2b59e7b4b261594a2deb9ad961afec50a28b4ec126f97033f1c0a36aba9f2961 SHA512 c6017e854ec06054c658042c2e8227d79284ecdadf0a2e1c5da799ca2ac165a266e7d33aa52361d0036ddb3059e3b24f0a68b45ffd84d87394d3f41492f6f9a4 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.14.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.14.ebuild new file mode 100644 index 000000000000..46f0dc57842a --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.14.ebuild @@ -0,0 +1,73 @@ +# 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##*.} + 2 )) +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux +AMD64_CONFIG_VER=5.5.5-arch1 +AMD64_CONFIG_HASH=e4d4ca36741d228042185e2a9047cd88fb5b4169 +# https://git.archlinux32.org/packages/log/core/linux/config.i686 +I686_CONFIG_VER=5.5.6-arch1 +I686_CONFIG_HASH=7d53d8a42f68648bce5b002aaf8c2b14e6298275 + +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://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=${AMD64_CONFIG_HASH} + -> linux-${AMD64_CONFIG_VER}.amd64.config + ) + x86? ( + https://git.archlinux32.org/packages/plain/core/linux/config.i686?id=${I686_CONFIG_HASH} + -> linux-${I686_CONFIG_VER}.i686.config + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die + ;; + x86) + cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local config_tweaks=( + # shove arch under the carpet! + -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' + # disable compression to allow stripping + -e '/CONFIG_MODULE_COMPRESS/d' + # disable gcc plugins to unbreak distcc + -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d' + ) + sed -i "${config_tweaks[@]}" .config || die +}