From 4686dd07fce6392a7f14c3cb7d133a1bac9d679e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 21 May 2020 09:09:54 +0200 Subject: [PATCH] sys-kernel/gentoo-kernel: Bump to 5.6.14 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.6.14.ebuild | 73 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-5.6.14.ebuild diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 0468b0bd60c8..e30d5c6db0f3 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -10,6 +10,8 @@ DIST genpatches-5.6-15.base.tar.xz 292284 BLAKE2B 0d80ef60c429516c2888e18704a4de 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 DIST genpatches-5.6-16.extras.tar.xz 1752 BLAKE2B 5d723106dfd00b958b1b2c59132d2443bde590175a55e3d6db73464bd8acd6284631eb0fef8fb552417ffb8af67061f7c8c4c5caaa53d703baf2c8fcd1319444 SHA512 aee1de432c1c329bdc847446ff07227a7352ab3f9ceaa03d87aa08abd51b9aa1146e4416c6c665a4958c2acf726d06993f116029bd6524a75e1eb09c923e2282 +DIST genpatches-5.6-18.base.tar.xz 389688 BLAKE2B 27a5c88470a1aa05bcfe356d1af6a9f2c6cf99ddd40e46bd98f8cfd36d876a9902e5b0d73b633f790b6998354190f4601d9adf88208d35ea8174e186477abf2f SHA512 41c91df0f6770559a9d5c1d7a42b1e706b525ea1a16847f9d276c36341d7595fba3bf84d154485212be8011603bab0fcb1ee6f8c99ce9bc70e021281ccc5e63f +DIST genpatches-5.6-18.extras.tar.xz 1764 BLAKE2B 4be4af62876189a64efc04c95a553b90343e1995101843cbf2ea6762c7294e16d129569fc9d252b04bf5b724cceaaac8b73e37d099f755487efe1d67ba6223bf SHA512 61384f3b6d583ec030fa9e9a19863837c8b734c92eb0d560fe69e68650b2eddb26c6755e599137d74726da85747c9303db10c115eb8d199087e5f057a84ad2a1 DIST linux-5.4.15-arch1.amd64.config 241498 BLAKE2B 2ba5eab2455c909878c36c6084718331042d0f6ab42127868ffb1522f4b53de38879e5707328968e943d1fa44cc504626af52b733829e943532931b49a612834 SHA512 582577bfe4139a8f50c5881cd5a9f24dc3da3124e464756f9efc3d39894eac378483d052e1142730585e40a45641166d309b5e1b5e379f4a5ea2d5ebb2d3314b DIST linux-5.4.15-arch1.i686.config 241195 BLAKE2B d3332b83a3d57c450bb1d5e85d83c71f3be730a15775b7e1d89cec2d72d28f1921987c63d95fe7bea6778efe0012ece6186449f07f6aca35ccf86805186c0f4c SHA512 187d88bdde7325d46b4bfee8d59ace88ab7dc377606b411e1249f9deee2b571ec42bac52c29d26d67bfadece2e77aad6d5e0255a95a84c200757cb05c69160a1 DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.14.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.14.ebuild new file mode 100644 index 000000000000..bc76214540cb --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.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##*.} + 4 )) +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux +AMD64_CONFIG_VER=5.6.8-arch1 +AMD64_CONFIG_HASH=7dcb86e3e6f24c6d5462c5c8d25c3fa09e7e9f55 +# https://git.archlinux32.org/packages/log/core/linux/config.i686 +I686_CONFIG_VER=5.6.8-arch1 +I686_CONFIG_HASH=bc42cce2cca0d42b5cfeb8c6bcbf9f39430791f2 + +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