From ab52aa0718620503d06e0c83b53ef7d5bbaf6104 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 21 May 2020 09:09:27 +0200 Subject: [PATCH] sys-kernel/gentoo-kernel: Bump to 5.4.42 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.42.ebuild | 73 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-5.4.42.ebuild diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 749342c6c9c1..0468b0bd60c8 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.4-39.base.tar.xz 1376580 BLAKE2B a546be9d077e978f8918f4d3903c2 DIST genpatches-5.4-39.extras.tar.xz 1756 BLAKE2B 5b79d2b75579aa2f660b90a00289398c1d271fce5a07726d487d9fee827a1ec42a9325f6162a82ce73d4e76dccd0a8e3ad58e6221a5e8d227f35fbe16bf75958 SHA512 5a14168aa45866d5c90151f2e8c93306d3e85fe0517763c6384d30d196696c30dd99cee709db322ad2e0089059e39325c91b08b566a09c30f41f45f3499c188c DIST genpatches-5.4-40.base.tar.xz 1387836 BLAKE2B 563a3ca82b3e6fad34e37530a9416559e0ede0730897c953ed67364c2ed4aca72e0b10050369779b4c85400784762ff1b672c34d56c0f044be7f28e62c0c2ba8 SHA512 45f02b016db58893b52e7920ad8b4b08bb924fa30df6d9b26546fced609c81f4aa4527026b1b3bb177267eca5e8fa38ad345d36ec1e2d46c2db9263682f05fde DIST genpatches-5.4-40.extras.tar.xz 1756 BLAKE2B 546f44a21973cdce099df5f163c9c655b590c9ee7b2fdbc533f2586ef6b3995cd7348ff32378fda3a991c567000b5d5956680b35374ca1b990f2e1ba698ecb32 SHA512 bcf61ddc04e0673c68e025889264f67525a2c7d66c826dfdfb6e65b38f5c1d12a25e9d4aa6b01ebdd170ea6d72196f972df5bfc284122581e153d4fc2f69edf0 +DIST genpatches-5.4-42.base.tar.xz 1439632 BLAKE2B bc5456a843a80658e996e64aa572d28b71ae2eadc0df785d20365108c7f08d519054af2b5333803152be2aa8be914d247fdcf741f9817efb32900fa2ce78c249 SHA512 f53c61d79823524515a3c320186cb712ac826a272921a224db0bdf8f1d0f9730a07e01bcc14c11ae6500f94464f272fda67ef1fcd3ba4998a92695951b22fe3b +DIST genpatches-5.4-42.extras.tar.xz 1764 BLAKE2B 4f9f10869eb9b41e49b89defb9bd5031303835a6b50daa0448eb3e8537a7cc4ad98ac302b69863147a9ebb12e447aa8f2a94b606a3d96201f347c463ba01b59e SHA512 893f7ce552c09ba1bdc9be487dba6fa0bdc599a930762d01ea147c2d53f2c0e96d1643655f553d646c40a8f70ded0de5c9b41c0f8294172b440fe118364887d2 DIST genpatches-5.6-15.base.tar.xz 292284 BLAKE2B 0d80ef60c429516c2888e18704a4deaf6d293f5e60179b4dff080b1aff0088c69d5629a2bef1f57ccd90ca694460f3d57cfde7ed3274d30e982b506edf2bb5f6 SHA512 afb1c877d5317881deda321c87aae3138b147b45aeb4af5c1c377d87c142626904db59a5b26758a9f873bd8760c26e305487156438a553c9dda11f3ed1801875 DIST genpatches-5.6-15.extras.tar.xz 1756 BLAKE2B b28a36cb3ccbfb9b79757e1684535eb8283157accdfa357d47ee8a699a4837f75f4aa0dfedfbac3d9e402b36bb669d8623f37b0c8b9dc24d095457a0da40ffe0 SHA512 107ab66357f3ae9183488fdf0d963561e1b862dedc0863310d78e6607c380c8dce54d555e1190b6aa8b09c1222e6fd137947b489e84e91a3bf3f98fa7d85df20 DIST genpatches-5.6-16.base.tar.xz 305568 BLAKE2B 90609dd7eb9cda256927fbce372f24898098f933cccfb90d73f88ab0d6b4caca29b3f2e8d016eb344394e9828e5fd493f38b3b2c0f621fd08c99f54acff58fae SHA512 19b460551fe26dd7b7dcf929914710f0d7aa51bca384a5184518d97776e14d2ff40ae74e81c2d1f2c833e9a1b61cb513867b5243994dd54ed4aba62cb49291d3 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.42.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.42.ebuild new file mode 100644 index 000000000000..1412b2980be3 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.42.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 +AMD64_CONFIG_VER=5.4.15-arch1 +AMD64_CONFIG_HASH=dc8d69b59a7a529ec5aaeb6b32b16e59a3cc1569 +# https://git.archlinux32.org/packages/log/core/linux/config.i686 +I686_CONFIG_VER=5.4.15-arch1 +I686_CONFIG_HASH=1ad219bd3f0ab439a81ed01fec7660eeea7daa0e + +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 +} -- 2.26.2