commit:     8cb1943172985f639f035792878086de0d1ed7e9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 21 05:54:00 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 21 11:06:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cb19431

sys-kernel/gentoo-kernel: Bump to 4.19.105

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-kernel/gentoo-kernel/Manifest                  |  2 +
 .../gentoo-kernel/gentoo-kernel-4.19.105.ebuild    | 76 ++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index e1f9950e3a4..ac2c8b185ee 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -2,6 +2,8 @@ DIST genpatches-4.19-102.base.tar.xz 3110244 BLAKE2B 
35127d29a603bcdeb3257a442f6
 DIST genpatches-4.19-102.extras.tar.xz 17488 BLAKE2B 
3d7cefc14e8ba60f2932605c6f5f333af9f2d60f05a54b64234e34cf67b689f5ac131c16906a4f1c077055dead9550d73fb8437c3d2606b190a2179fbb699bfe
 SHA512 
7ab06588702737c907b5e63ba774eef50f76cfce7c8384e7306f4f7f4f25cbad8e7d558c1507148dea4865ba4bf37ec299e43575c496bd9dd18b995d3445981a
 DIST genpatches-4.19-103.base.tar.xz 3123100 BLAKE2B 
22fe4e84a455f1d36ab79c3b2aa660e75844ac20f2f727ea4827ac31bd270dfc295d39252a0f219ad397757d731680712b6e054ae92e86c64af62f0e279f3410
 SHA512 
e9b5db17747ae8db35805fabd0af3f836ac8d7b851c2ee4ee33db26020412e3592899e10c421e79cc22d7ebc37f93f4f8785f586e34f49e50974ebfa97e8c8af
 DIST genpatches-4.19-103.extras.tar.xz 17500 BLAKE2B 
b2bd771a3f2b53155599c250378ed32c7be3393e4ae3793d3f46aca74b0461ee8ba706ea51d9e7526218a5f80634de4cbbfbea23502bbab4787b7ada96658a15
 SHA512 
2fc476511989f1e6d1f867eeec55d1c0e18e21f504e6e68c65bcda05bc37ae0a679ab3ac09f579769c0ceba2b9b568344ee7bff3448cb2295b36ed7e883001b3
+DIST genpatches-4.19-104.base.tar.xz 3133964 BLAKE2B 
4a47a56d7be225e0e4c3e22456ff9801898de9f36e300da295f909976d9fd36c95de421a233b45227c2d190d4f91f39836eca838d3f5fff1bf8683c877c7ba06
 SHA512 
a710092cf5121e12c861bde4ddb453de3b5ec14a6d5b406775ff3f7670206be3e4ed7cb7457ade2cfa2d644c45843671ee43b6f1928f2950bcd92ae795683f26
+DIST genpatches-4.19-104.extras.tar.xz 17504 BLAKE2B 
4013c6336d35818c8995b7f7cccc5152e66e24ebb3df9e1ce9e7bba2e197a05f786476607dfc6b9fed06565bb6dd92e981f917996366c0b7d4734619e8b3cf58
 SHA512 
552a12d1bca99c85d4d74a19429c1efda5e2e99110d467f64e8d13962ae15ab03de4c923896ed9ae070b3c247d837159c825118c8d0fa503c971432d3d7985d4
 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-19.base.tar.xz 782808 BLAKE2B 
9b0b3e6090e33f5852c3fdd2ee58110f909beea9aac3c2591709fe97ba24003b9c923085f1577309052f94a934dc36be0937ded1df05828b69ddbc6ae31c158c
 SHA512 
866aa0b06f8198739cabd54fcf09308629d00139f9068c255cdf61d96bb0288a5dfea7a46562ed51cfad2e682c29195e0304c442d659f50238cdc38e9e885fbb

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.105.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.105.ebuild
new file mode 100644
index 00000000000..3b0d137453f
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-4.19.105.ebuild
@@ -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
+}

Reply via email to