From: Michał Górny Date: Wed, 22 Apr 2020 06:02:42 +0000 (+0200) Subject: sys-kernel/gentoo-kernel: Bump to 5.4.34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=19fafdf12d66e3fa2ad19870236a43ac7d204227;p=gentoo.git sys-kernel/gentoo-kernel: Bump to 5.4.34 Signed-off-by: Michał Górny --- diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index e7eea57262d0..1271c30bb43e 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.4-32.base.tar.xz 1184244 BLAKE2B 335fa30de35222c3f8bf14d9c2ee6 DIST genpatches-5.4-32.extras.tar.xz 1744 BLAKE2B bf702c213be8e247b5c2e5e25c1d010584e7f227e7bc94c366e770ad71df46c77948c6b9ef47d10cf3dfdecc6fa31f069b35478b750c341d92784d982c99bf21 SHA512 da797e1d8766f310e40e4def65f9dfc95409f3d776cb45a5f00bfab7eb97357e565da4d95df9b425490d77b6ae21939943d39441ad4b8dc33917bd62a0a7b1ef DIST genpatches-5.4-33.base.tar.xz 1249764 BLAKE2B bd95b3601e1228447577e8c345728e467975b9e3559ffd7b89ff09911693e5a1e27aa2d3ff1264b8bcdb6f34b4122b40e96b9955a56ef51a066f80b8f853dc60 SHA512 4fd5d8083e1c810e6ab07426975c7b9b84eb2b68ab12a73297e29a300df1e10b5b2ed3b9cafe72c8a2a63e9868a4cdaad38420d5bd9ece48debfb27a3e41cd53 DIST genpatches-5.4-33.extras.tar.xz 1756 BLAKE2B 09adf1f048f6145e8ca3283491fa6ac76222dc7e8d4473cc3109ec6d8c70945217a6e5fb9a47dd0797e3488d4db2428d92b2e32ff5e4b86baac7a7f5f938558b SHA512 4d631eb175492d2cec311e0cf82b209964c0b24fe322dbae91318b83a6179443a470a15aab99110cae4f9141690e36d5df4054ec6f47c3cbb45a19447fe11a4f +DIST genpatches-5.4-34.base.tar.xz 1263276 BLAKE2B 3165a1ba63e6d908c7be1575cf3e7085737e31b754a6d58e61b99438c87fbb3959f46a45ad1dd21791d37251c82b2323a97914cf7d80bea3a8a11fb1bc979282 SHA512 fd53b6969ee1fc94762941dbceabf74a77519aa104078da964acf2b5d199f91a7ccb045a2222cd0cb2d241343b783a3ee24f2c7ed0ea3be69c7bc658fac0c0e1 +DIST genpatches-5.4-34.extras.tar.xz 1756 BLAKE2B 53bed9e3f8bc694d5d1ea0d2e1ec191d70658283954f7ac60098daa0087d8b16578d60329525aa1f09475bf6c7b926b33c90ed7d94ae458c6dfc97c19dea34f1 SHA512 e37d294f655c9081777121faa017d8ba385eb74d2cc1dd6b773a6994f63a1bd70585661837ffd154e12db1f0efd3c1102136916f2f13682313e352f69adb3854 DIST genpatches-5.5-18.base.tar.xz 663560 BLAKE2B 3b44112e2788825d1205f89ab2930d543c896661638972a2431cad55dae7fed16aa2f881ee5b640a8876de8c472790a2bce87c20fcfe8679dcdb3cb9cab9adcd SHA512 4ef5a6e7d15e63722f19ee06a6722318a57a293298dc1b5b6faab36130d12ad1612be9060b9a00775f4216c5a822b41222c8e6b3feb26976c38fa613e58fe52f 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 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.34.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.34.ebuild new file mode 100644 index 000000000000..1412b2980be3 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.34.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 +}