From 551fad9fadbcdbba14f53a2bfd68b1fbb8f95a6e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 18 Apr 2020 07:37:52 +0200 Subject: [PATCH] sys-kernel/gentoo-kernel: Bump to 5.5.18 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.5.18.ebuild | 73 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-5.5.18.ebuild diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index bcb38373a332..5839644b8bd7 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.5-18.base.tar.xz 663560 BLAKE2B 3b44112e2788825d1205f89ab2930d DIST genpatches-5.5-18.extras.tar.xz 1744 BLAKE2B b236b4a9dd3180e1b984febea0f2f16742dad42eeae3c97f927ca946d08013e06b465d71cd0bcfc91b02929d9c2dcfcd2801706b7495dd5acad4178515286ce8 SHA512 507cdbffd6d419b2ca1c6a65683e2e95723fcd2d71066c4579d44877808bd8eb829586229bd31faa27e1a721691e1b30f0c3dc084a5947ef0acdd136bf071a87 DIST genpatches-5.5-19.base.tar.xz 677808 BLAKE2B 4de5b85677fa35c6340610ebd91f659253a297ad7ec065758d6f32d33eda294c8b683a0d2660c2bdc145ff751a48d59e4c36d7df330aedc000f41e57381b479b SHA512 d31f1123b493259f134cea8abdc8c25c2e83a696b0043109910ff296d581e5ff723114f6677a688f50ace99764556b559db5ad7df223ca90bfd693664c575850 DIST genpatches-5.5-19.extras.tar.xz 1740 BLAKE2B 0e3c41a6f03140a067657d85435ec2a6b77cd5486bcab51d781d8310683b31e3ce8dcf389431d166db297e2e0dea719d78bb2ab57ec10b42f1e719386ecd5c40 SHA512 cdb60a030ee7ce4cbca9e58393de2b9de96e0294053e1d6ef62e16508758e879e4406ea1fbc01842d1cb499d524d7fd0a293f082240f0c4b2939e1fd267a4dab +DIST genpatches-5.5-20.base.tar.xz 750164 BLAKE2B e8469c3093f66567538585f9650a7a4d6a51c81aeb05248b1f44dcd1551eee9273ab0b24954530d9e0fb39d276514710ff6a7f4ab52f5bd69a784ae37ea666f0 SHA512 aeebddbd233f53ffc61f2932c755b903f3c67437094e6f4478aa1a3d6fafa1401c3b5d508fb67b84cb07efce229dae1451f7df9b89a486dcdedf593fc9404007 +DIST genpatches-5.5-20.extras.tar.xz 1744 BLAKE2B 4ca85454446b99cffcda2e738789de908acb09bf0195066c79cd03ac466b32d532f6d21fc50b744c0feb935591c0180512319af2e89c10a8bf7f30400f91c489 SHA512 c4f12364b694278130eb5172446b29d94f5216ab8ead2d7ad18ab44329dcee585a67fba3c0f9ed0059474db178186fc00c75703637340d27e99265dfd6f4abc2 DIST genpatches-5.6-7.base.tar.xz 39068 BLAKE2B 72665ab749b603ddff485eaa88316f820a96ffa663297c3890a1418e3bf1db19c5030c43ee2d2c5154aaf5caac246866745eadc842293a73e3d87ec748740ae2 SHA512 b8b8cbe3d79b141af6fab0b9052b71fc64d89eec593f184ebb3f57409434a38de529432c053d2e7f6307bcc60a01254f1d4f1cd8c52ba7bbf522575afe7059f0 DIST genpatches-5.6-7.extras.tar.xz 1744 BLAKE2B c30863a8e9f6ad56887e9e93c5d40cc27106dfb0e06edecda8bbc7b4568c83747e2f0dfefabc6d192b86cdc077732561ebb0cd7cc13f662148fa2bd8eebd7684 SHA512 9a2b410a47a00872df9b1f0adf5e1e95489ddf1c741eeffdf9e343be505a91da421319230797c9fc2efb1c95f635696a98ac60cfa1d589d505ccf1d863332760 DIST linux-5.4.15-arch1.amd64.config 241498 BLAKE2B 2ba5eab2455c909878c36c6084718331042d0f6ab42127868ffb1522f4b53de38879e5707328968e943d1fa44cc504626af52b733829e943532931b49a612834 SHA512 582577bfe4139a8f50c5881cd5a9f24dc3da3124e464756f9efc3d39894eac378483d052e1142730585e40a45641166d309b5e1b5e379f4a5ea2d5ebb2d3314b diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.18.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.18.ebuild new file mode 100644 index 000000000000..46f0dc57842a --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.18.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 +} -- 2.26.2