From 10d6fcabcc7eaa5243b2dc51f80002898d1cf803 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 28 Jan 2020 15:13:02 +0100 Subject: [PATCH] sys-kernel/gentoo-kernel: Bump to 4.19.99 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-4.19.99.ebuild | 75 +++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-4.19.99.ebuild diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 294d8ca177c3..c09fc57b0e25 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -4,6 +4,8 @@ DIST genpatches-4.19-96.base.tar.xz 2796188 BLAKE2B 6f8506b0a275b8ae1d215fe4d381 DIST genpatches-4.19-96.extras.tar.xz 17496 BLAKE2B 11ccad1f1a7d67cbf5f39023b90321bfe8df1bbdb00a2e213f6a2dcb83445cf4e375de7465b266908f50540fe1e16280eeba99b03e2da8dfd96d72396c3a5ec6 SHA512 cd95d65fa56236e6303a22d5a9749912f70aeaee899c57f9c545e13696111dbcfbfee3757a42184164cae56f703b2af9072298dfaba35419bf05fe196692007d DIST genpatches-4.19-97.base.tar.xz 2820340 BLAKE2B ff5f1b20776414a30d1f24291c6ae75887e6d63ed6501f400a0d55b375ed18172f1eddbb9aa3426c9bbc23f0cb6766d2152c05bf97f511ba6e25ce7a8238c1df SHA512 e27450fa0af491e06206fa911f52c61dd9fa74c8a1003bd2fa7212cba30050f85501825f9855962684903cb7cd817e8f42c649b85fd791d78596608ceb5e15a5 DIST genpatches-4.19-97.extras.tar.xz 17488 BLAKE2B a96cac0a53187a9b05216e66122e70f828889b7a955282309f4e27bb44a90ceaba4b66acd1a9bf9a2a3d7b97be2eb62be6c6d4c0a71475a9dc05dc3b4b6c3820 SHA512 aef2f865e488d96c73c35f9f26a801eef4f41ac7f0ce78fa3263f3dbfdaecc67fa6a9d46c8fa4f0b1e7d0e8815743385de0c7105fe1851830498400ae1309209 +DIST genpatches-4.19-98.base.tar.xz 2954268 BLAKE2B e96dfdcebaadb6f503e22017ed29a655c0e48fcc31f05743a968e6cc397fb90f4d644f75a520cf54f3178a59e59812344693ac799d87c9b1232782112ce506bb SHA512 c9a6a0d31e527a3e8001cecdd41c11b5fe147fdafe9dc9c4c852e1e4f87ded61f319051a0434036821d1e872c83a00d1b744df3cfbda2a1758a0ac08a0a7ef95 +DIST genpatches-4.19-98.extras.tar.xz 17492 BLAKE2B 93240a4e143b61666ccff5e7de74834e2e88b7e56808e284b3d10295463d74a3e55ed0547bd5fdad8d885531cea249e2a1f6da915d0b83b66c870f38778364bd SHA512 088b33a9c145496fcdf62f9b6dd3dad4f4f7f45b272c91dd3b58dfa51fad5f5a8da3462e07afcd97fd77395d54b2480f4cc17165dae57e4212dbe352d1442836 DIST genpatches-5.4-12.base.tar.xz 449796 BLAKE2B c0d88dd19d2e71c877bfc4320801a4ed617444accad16440512ceb721e127200db522153db73640e3b00c66561eb497a09775f71d4a3ba528718850350ad9ad1 SHA512 edc638f64933078b2a6601b88ba030283cceed5e739ce43d1748d6d46196d75e02477ae30775f653bf664bc046b117164cd62572f32099a82816c536bdde4c2d DIST genpatches-5.4-12.extras.tar.xz 1740 BLAKE2B c9586b5120c0b177ce236f469ffc7412e7fa94cc97fd7b67b7bd888758c238fea15eb457fea847c6b4b7bc9475377c6c24c8a617e4cecee3360340234872d445 SHA512 771bb67ccc837bbfb3aeb129fb9110e3dc9972868fc43a6a5f2dc5ea2bcdacfecf65151e32427af34411238bcc1683438a99081bf09e1733cd5c8a09968a8d09 DIST genpatches-5.4-13.base.tar.xz 505168 BLAKE2B bf428eef66887c47006dd9713d7b5ffc4ed508d2d9a4e5a8f81eec5d39953779067307b30f5c2a94be047a1f7e149b02df8bfaebba9674474e3e44b4501c86db SHA512 e5690f03ea20f250443f9ff4857bd9c104637dfb4df15615841843035eca7283a4c12380db78cb7f6f9e3cc772a6d256d00584ad26ed72afe4706d3365ff2dcd diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.99.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.99.ebuild new file mode 100644 index 000000000000..6bf6d9cfbbde --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.99.ebuild @@ -0,0 +1,75 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-4.19.94 +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} - 1)) +# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts +AMD64_CONFIG_VER=4.19.92-arch1 +AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9 +# https://git.archlinux32.org/packages/log/core/linux-lts/config +I686_CONFIG_VER=4.19.85-arch1 +I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c + +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 + # (skip most patch release patches, we just fetch newer sources) + "${WORKDIR}"/109[4-9]*.patch + "${WORKDIR}"/[2-9]*.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