From b721f577804d92621a3414571614634b82ab9efe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 9 Apr 2020 10:43:04 +0200 Subject: [PATCH] sys-kernel/gentoo-kernel: Bump to 5.4.31 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- sys-kernel/gentoo-kernel/Manifest | 2 + .../gentoo-kernel/gentoo-kernel-5.4.31.ebuild | 73 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-5.4.31.ebuild diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 22faf0258c05..547fe4e50bf1 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -6,6 +6,8 @@ DIST genpatches-5.4-27.base.tar.xz 1094072 BLAKE2B cb2895a3729a0d58f734bcaf34f1e DIST genpatches-5.4-27.extras.tar.xz 1744 BLAKE2B 876ee0915d60032a8a8c33ebdd9a8a938666bf06df1e618b568289d7779870cb1b2e0ae30b9b1ca0fb3bda574751c34732e20d7f032dd64135c6230ea9b9e507 SHA512 1586b9e19fa42418003b41ecc0bf7cdc208bdf8fec7f41c4fba1ca7bca643d03e38c3443f724e99e6e19338216527eb901bd95f0e89acb5ac1f0ee9fd9ac3589 DIST genpatches-5.4-29.base.tar.xz 1155296 BLAKE2B b4cddc8f4d7ceb0dd29d58f4b2038b27213eeded93addcd97dcdaf70852850d0af386b350359ff72856b32019f648bd3a4c31e88a0f5688df72ccdaa4acedeb8 SHA512 60fdf8d72e9a0e26832c2fc86297ea701c8e42fb3c0cd6ab69791ef03cd46ad5704eea488ba9174021b7d545e9d65ae4340a77be068dc188111f06ef7ee16940 DIST genpatches-5.4-29.extras.tar.xz 1744 BLAKE2B 624f0f1dc70ec4642864eebcbf7c2c9d05359dd0d801799767943c8758cbe52ab36a3dd42cfdac495b73fd4f732c6f0d3e5d35d7a1b1ea81d99f07945ebe848f SHA512 3991b500d2998c4ce801b29ff2766ed3f86f1f29744598afa131cc1d80fb917076e7e69e6eaca80972117d10eabdfe1bd9ae64ecd8825c1b63b87b360785b695 +DIST genpatches-5.4-31.base.tar.xz 1170496 BLAKE2B 1a85a54d6183ee4c1239c2d96c78617497e1e882e9b5ed386904b965314900c298e4d58cd3c360cdf465c9bb0adea90c4de567eca5e633c7861e7305eece2559 SHA512 171e9550c898e60df630ce85346847325e78ccd2ae979a03581d236643fbc3ae2e10dda0f781a01675cbc5b2defddaa05aba020e044f61143794426f5f02e8a7 +DIST genpatches-5.4-31.extras.tar.xz 1744 BLAKE2B 184c9fce2b55885ee086dbeff4fb55a1d2edfeaa55e30e0e7d672e120569acd85a74bd6f50463305b3dde2154ba68c1fad82b0eb8e66a32a6f2cc87443b397dc SHA512 a45f13e1ac2ed3f6114b94793085b7b80cd40a9be08cf835c574a98e0be7cabb8740b0b22d81a471d9c5b80603f23822513a24620fcc7854dcd9de443355ccb4 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 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.31.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.31.ebuild new file mode 100644 index 000000000000..26593f121ff0 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.31.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##*.} +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts +AMD64_CONFIG_VER=5.4.24.arch1 +AMD64_CONFIG_HASH=c060a2f4e686e06679d9cf9bbab5fdf423e5a402 +# https://git.archlinux32.org/packages/log/core/linux-lts/config +I686_CONFIG_VER=5.4.24.arch1 +I686_CONFIG_HASH=3f4ba0851a9e9a3809fdec4091335182b0f1885a + +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-lts&id=${AMD64_CONFIG_HASH} + -> linux-${AMD64_CONFIG_VER}.amd64.config + ) + x86? ( + https://git.archlinux32.org/packages/plain/core/linux-lts/config?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 +} -- 2.26.2