sys-kernel/gentoo-kernel: Bump to 5.5.6
authorMichał Górny <mgorny@gentoo.org>
Tue, 25 Feb 2020 04:22:31 +0000 (05:22 +0100)
committerMichał Górny <mgorny@gentoo.org>
Tue, 25 Feb 2020 13:42:27 +0000 (14:42 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-kernel/gentoo-kernel/Manifest
sys-kernel/gentoo-kernel/gentoo-kernel-5.5.6.ebuild [new file with mode: 0644]

index c003b6bb0f238f6aa676a66114a86c0099857e7c..05d07f3a62847e40ceb0e94f7b8e81de57520d17 100644 (file)
@@ -8,6 +8,8 @@ DIST genpatches-5.4-22.base.tar.xz 915300 BLAKE2B d178fedfcfdb604ddf37bc23f1fa65
 DIST genpatches-5.4-22.extras.tar.xz 1744 BLAKE2B f11d59a1f630a1fd8b328d62454575e46029bfa35a0f26579677dfd1bf19e7a4c12870d4d673717570d9ceed81a43d6cac515acee003bfca9bba6f3d526b70c5 SHA512 b05d44f5d0b0f3b77396b2de1a720cda33ebc4114381b6d781eb495f31c586e228abb83a9144198f199f2fa2b237d8212a7195de70171097f71bc19a1d259db0
 DIST genpatches-5.5-7.base.tar.xz 227724 BLAKE2B 145760f3866f91db9fc0e17ea0d9590d1a929237904ab673ad1be4e93d70a8edc1e9cb50a3dca71d96bb05299c38e5ef7e47fdf72acf763303f2730512bfaa0b SHA512 14e625f4db186029b6b6cff3e556fcfb56ad62d6d0ab8a9cd26746806d9365ddde1cd6429125343bdb71a8c4822104c54e3aadfe6f2eadeefa046a99fa64bcdb
 DIST genpatches-5.5-7.extras.tar.xz 1744 BLAKE2B 98147f7615e0a2e40ba9e0ae877235bc05ad661112ae4a5162a70bc6ede02c448d1c781b29ec2658a24b64155331aebff34fa8885ba7563b1791651fb0039ce0 SHA512 532cfbee8638bb2a524cada24f796d2b7e8aab23fa825c8957c0743d14f2494ee97d7f04f754b3645869a095edbd82ca99b11717df0345e8d79b910cb6dbd8d7
+DIST genpatches-5.5-8.base.tar.xz 351860 BLAKE2B d712f93bfccd83741ce2436ea16ea85f99b64da74538a48e1bb0815b07f4ef320ec9b1c18a9646e02c18577469017527b23fc28f05ba1294db11c4cac476109e SHA512 e03c885c0a9594847a76853a1317fb5740696adc10aca12824bfe65701962392498b9112fb8541a9e27ba457c83349e04dae06cab698f20ea4fb8e6fda1a0cb8
+DIST genpatches-5.5-8.extras.tar.xz 1740 BLAKE2B c413559748992e0f4b9ce76c1bc3d0168407235db32a45f51365247cf286c7c5e27b219deb08b19f5647f93b6611cd9bc1a1b40ea3417fe521a5b3d716d4575a SHA512 27ccb17ce7e54726f1903ff349ffaaf2a31d844010542ce264e721e784278828f4783a75d17e14311515b2de2ae031eb6245f6e52950ad230575ea9972cc4e66
 DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d
 DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2ddfe423ab423bcc3b9ea8bd9cda65cc7ffa4b1be782c48c867c13e46070af4016f446860f5cf71351f239da1eff6c45a5aa6a SHA512 a5658c8e8464516dffd6f624344e739784cb315d334b2c5105bd5d16022b6366ad4ec00d3692a7b78e2458514175522bc85e834bf19593feff6363b616860258
 DIST linux-4.19.94.tar.xz 103389152 BLAKE2B 291db6f448606a4ba288295b4b1c0b813e736534e4749a152baa1d07fcf52bba2b59e7b4b261594a2deb9ad961afec50a28b4ec126f97033f1c0a36aba9f2961 SHA512 c6017e854ec06054c658042c2e8227d79284ecdadf0a2e1c5da799ca2ac165a266e7d33aa52361d0036ddb3059e3b24f0a68b45ffd84d87394d3f41492f6f9a4
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.6.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.6.ebuild
new file mode 100644 (file)
index 0000000..5bd930f
--- /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.4-arch1
+AMD64_CONFIG_HASH=bc32e3380a53e4cda7fadbd706810437e135bb3f
+# https://git.archlinux32.org/packages/log/core/linux/config.i686
+I686_CONFIG_VER=5.5.2-arch1
+I686_CONFIG_HASH=06ff2f85b50e8d38c79597e1dae4aee8b501f057
+
+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
+}