sys-kernel/gentoo-kernel: Bump to 4.19.103
authorMichał Górny <mgorny@gentoo.org>
Wed, 12 Feb 2020 06:02:20 +0000 (07:02 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 12 Feb 2020 10:43:45 +0000 (11:43 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-kernel/gentoo-kernel/Manifest
sys-kernel/gentoo-kernel/gentoo-kernel-4.19.103.ebuild [new file with mode: 0644]

index a6ba8f6908996256b96ca1ba3d5f4c0c5a80827e..0eeae8c719449e5abea8ab7c3991185377aa0c6d 100644 (file)
@@ -2,6 +2,8 @@ DIST genpatches-4.19-100.base.tar.xz 2992824 BLAKE2B 02722c5568726284afa812be3d9
 DIST genpatches-4.19-100.extras.tar.xz 17492 BLAKE2B c896c916f2dfad38b35f1ebd080cb5b66f6bd51b28a77535fc2ae44b11a1a5bee1be52a7d6d5e30b80c635b59e43f40d99c2cea98cf0744374412626a939cc00 SHA512 169dea4d9c41057807c63a8d66aa7fb94d783e841a94a700bc0eb1995e620e6b529658d3899ffc54e5cfde4e9267e385dc2e36786ff0c31acecc0593456f8909
 DIST genpatches-4.19-101.base.tar.xz 3008416 BLAKE2B 920228c1a69dea64f1e9c5f1dded4b01f2de69c92420daf45ede91bfe1db4004989015ae52cfe9013e300779a68bcbabb1af4e17f90db631a43e1ee38885ad32 SHA512 4b1062307426582521d4366bd3802b3adf9bc53c597f9b7dcca335241e797b1c5bd34e637added9633b73d4171bb08f34410350c21f670c07feb6c800a94c5b2
 DIST genpatches-4.19-101.extras.tar.xz 17496 BLAKE2B 824a49411f6ab8f4691fe994ee2da8736a74759dcc7cbae69d807cb9fac3d0890a660e5ee24a8f1fe10e0bf449855c5a9c6e7e523fec057b5ad3af5dd13d1a3e SHA512 1fe7326b95bc4eecbe4e3aada018bd6cd5897810a44ac8c0e031c2052964c917050c775e0a32304c1838c8c00ad9091adda1901818346cbbe3e2a12cd941bf72
+DIST genpatches-4.19-102.base.tar.xz 3110244 BLAKE2B 35127d29a603bcdeb3257a442f632e227069b7452874f571b8c602ea894e4069879de3799a5cdd439f6e81a1d98e5cb4e0c07b9aade5f26c14ae1bef2229629a SHA512 128ac3c560faa733f58f6b657966c9543331ab65379e958a41c63b74badb8ae1da047b57d3a9665aaff6a46440a6046647367cfb93b30e2a7f7cbb0c9f981d94
+DIST genpatches-4.19-102.extras.tar.xz 17488 BLAKE2B 3d7cefc14e8ba60f2932605c6f5f333af9f2d60f05a54b64234e34cf67b689f5ac131c16906a4f1c077055dead9550d73fb8437c3d2606b190a2179fbb699bfe SHA512 7ab06588702737c907b5e63ba774eef50f76cfce7c8384e7306f4f7f4f25cbad8e7d558c1507148dea4865ba4bf37ec299e43575c496bd9dd18b995d3445981a
 DIST genpatches-4.19-99.base.tar.xz 2980172 BLAKE2B 2da82ccc1a3a9f874f30046c4d7ea01730398d27c34be741b3fa64ca7e05972a4ef33f76e28383c488d71489c1eabd33e462c2fbbc8248e6d53486eabb1956e6 SHA512 481042c47ca0f56a3262e9920a1e245197672c51ac32624668974a8af5273d3ff593047bbbb6476b741de611c83c19ad6e4a09e1c1331baaf67c1998ef64bade
 DIST genpatches-4.19-99.extras.tar.xz 17488 BLAKE2B d57f278109d3ea0cbe324e15666f119e2a9ef4ebfe6f9581dffdd6e9f4c11fca47dc08f2375da62928076647352772cedad41a8ab97b312b59a03956dd4a3954 SHA512 ae1f8f8fd8f9da3860e82d8838714248983014257386bab802ec3adf86d694db50db8d6cc9a9d01a2a6936e2ceb740a4f4732e48b1c40eebc8ffd523745d5dca
 DIST genpatches-5.4-16.base.tar.xz 622844 BLAKE2B c9b71a945733efde4ef1c3f4e5929573c4b338d7dfa2cd589ad64c567865eb7d1448f2e32a59548ba2d738aee5219467727fa68a3572a50ffade1cd574ddfd87 SHA512 3a1ad8e9f44076fe00f5fee586d53f3b028e7c2086dfc2a30659415ae6a5f8463623890d0a26965eb9fe33da31b1b03652097a0814602862145d047dc9977b33
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.103.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.103.ebuild
new file mode 100644 (file)
index 0000000..3b0d137
--- /dev/null
@@ -0,0 +1,76 @@
+# 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}"/11*.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
+}