sys-kernel/gentoo-kernel: Bump to 5.5.8
authorMichał Górny <mgorny@gentoo.org>
Fri, 6 Mar 2020 12:24:55 +0000 (13:24 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 6 Mar 2020 19:55:39 +0000 (20:55 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-kernel/gentoo-kernel/Manifest
sys-kernel/gentoo-kernel/gentoo-kernel-5.5.8.ebuild [new file with mode: 0644]

index e277650630380b14a89f3a7dc1ea09c88043dcd5..5aa855685725ef1836da3cd9d31328615eafc96e 100644 (file)
@@ -6,6 +6,8 @@ DIST genpatches-5.4-23.base.tar.xz 956024 BLAKE2B 5270c606d07a9c593e8428ebf4636c
 DIST genpatches-5.4-23.extras.tar.xz 1744 BLAKE2B a744740c74b52b66f8db5f0a71174b15284bd83c0ca9318c2bc3809586aa914f20239a9a122930df587cf861412d7ce33a7efb74128bfd2dd52516abbe0cf20a SHA512 74f429626747883c5b4c6e8cb6bced6a5dc377a758637b7eded70dc9471121aa8496030f4b00ac0cd9bacb693d89366d10fc34d0827286ade8160038bf9aa1f7
 DIST genpatches-5.4-24.base.tar.xz 1012048 BLAKE2B 88f206f9824bdbe818a159832be638bd37ba274cc06fa245c7e48fe67112383ba3254e6e6433a5ebef792b4b61798aba9d748f8bffac0f62aa9c5536cc934b8d SHA512 bfa30fab2737af4d7e8874831cadec224a634832502f7472c4a018ee98ff698e5134101b06f09ab779e03d62920a29691a12a189ff19e055cfb1effce584b8d9
 DIST genpatches-5.4-24.extras.tar.xz 1740 BLAKE2B 959877a73da6fc757631407722e086c41409309060b275139c092aacc9cb1a7b749638322abf019bf194508d06a73eeef00939dc666f94313a680452b1fc91c2 SHA512 d9c85b2e581bcda49cf34ca90dbcb124c56ab515a8df67a55b08f5e8c0495894376267ba78c966dc9697d88ca8e429e2018d9dedd1a1fddaa7107c6fc74f248b
+DIST genpatches-5.5-10.base.tar.xz 456696 BLAKE2B d26c970cad7ffc6950f92fdd906a85f4e0e6242c6450b7ac0211a2cab8ade3c03112f3220943babbf26f115d35d3ba3dec18ff00c7a5608efadcaf7d417431e3 SHA512 bbd56eac912dac056d8273a9f3c21710fc614619b1bb6b52c48bf5972518a17ae20ad8601fb294a446415d0ecda57501681a4bbf13fe4a493a48a0d2d324e396
+DIST genpatches-5.5-10.extras.tar.xz 1740 BLAKE2B 43ef46fdd52322a5b1f370690e7e39d8a6b835726b4166b5f35f079446042b60c9f59e159a88ac82ffa384ff7dce619140783a7e202d3374e272e140744a6459 SHA512 57affa6ae287b621407d8c8b8d12dcc7a45bb3d68bbd0418737c95df6ef7bdd76ea8a90caec3322b2e3a75ccb159c42fb132e38cf8c62e21d7abd22e98d309c9
 DIST genpatches-5.5-9.base.tar.xz 399476 BLAKE2B a4582c276854d99a15766b0f9ae28326c3ba89d46e513e7265b839788966057fdfc46912695d74dc560cf22db087d20869dbfd69c59250d0b2e59cf56a506d81 SHA512 cb566c2394bf1c98a32343b5be1bc9ecc1a48587443cac39a2e999b09adedb3319726b1321a6d38ae6e6eb39e106dd1e251ed15f127ffb730f6597949df512de
 DIST genpatches-5.5-9.extras.tar.xz 1744 BLAKE2B c8f761afd767cef3ea6c1d79a3eb6e7dbef2d292dfcecd314189d92c020b3016ae8e3f5cfad3a532f34d9c47f01421ba38e3305b381791dc07375d217f3ac9a0 SHA512 5f48330ef699b9704baabb2c8171c80d445790c7876a92b0c7ea49bc29ee8347d87e441b9a51e2eedd069a78fc7011053e6282e54c216852cc9ba080064169d6
 DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.8.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.8.ebuild
new file mode 100644 (file)
index 0000000..46f0dc5
--- /dev/null
@@ -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
+}