sys-kernel/gentoo-kernel: Bump to 5.6.4
authorMichał Górny <mgorny@gentoo.org>
Thu, 16 Apr 2020 08:53:50 +0000 (10:53 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 16 Apr 2020 10:24:43 +0000 (12:24 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-kernel/gentoo-kernel/Manifest
sys-kernel/gentoo-kernel/gentoo-kernel-5.6.4.ebuild [new file with mode: 0644]

index 3ebebb7af88f34c31613cfbfda7659ac7db6d9d4..80a81cfee32377542e3ddfaee5070068ba95140e 100644 (file)
@@ -6,6 +6,8 @@ DIST genpatches-5.5-18.base.tar.xz 663560 BLAKE2B 3b44112e2788825d1205f89ab2930d
 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
 DIST genpatches-5.5-19.extras.tar.xz 1740 BLAKE2B 0e3c41a6f03140a067657d85435ec2a6b77cd5486bcab51d781d8310683b31e3ce8dcf389431d166db297e2e0dea719d78bb2ab57ec10b42f1e719386ecd5c40 SHA512 cdb60a030ee7ce4cbca9e58393de2b9de96e0294053e1d6ef62e16508758e879e4406ea1fbc01842d1cb499d524d7fd0a293f082240f0c4b2939e1fd267a4dab
+DIST genpatches-5.6-7.base.tar.xz 39068 BLAKE2B 72665ab749b603ddff485eaa88316f820a96ffa663297c3890a1418e3bf1db19c5030c43ee2d2c5154aaf5caac246866745eadc842293a73e3d87ec748740ae2 SHA512 b8b8cbe3d79b141af6fab0b9052b71fc64d89eec593f184ebb3f57409434a38de529432c053d2e7f6307bcc60a01254f1d4f1cd8c52ba7bbf522575afe7059f0
+DIST genpatches-5.6-7.extras.tar.xz 1744 BLAKE2B c30863a8e9f6ad56887e9e93c5d40cc27106dfb0e06edecda8bbc7b4568c83747e2f0dfefabc6d192b86cdc077732561ebb0cd7cc13f662148fa2bd8eebd7684 SHA512 9a2b410a47a00872df9b1f0adf5e1e95489ddf1c741eeffdf9e343be505a91da421319230797c9fc2efb1c95f635696a98ac60cfa1d589d505ccf1d863332760
 DIST linux-5.4.15-arch1.amd64.config 241498 BLAKE2B 2ba5eab2455c909878c36c6084718331042d0f6ab42127868ffb1522f4b53de38879e5707328968e943d1fa44cc504626af52b733829e943532931b49a612834 SHA512 582577bfe4139a8f50c5881cd5a9f24dc3da3124e464756f9efc3d39894eac378483d052e1142730585e40a45641166d309b5e1b5e379f4a5ea2d5ebb2d3314b
 DIST linux-5.4.15-arch1.i686.config 241195 BLAKE2B d3332b83a3d57c450bb1d5e85d83c71f3be730a15775b7e1d89cec2d72d28f1921987c63d95fe7bea6778efe0012ece6186449f07f6aca35ccf86805186c0f4c SHA512 187d88bdde7325d46b4bfee8d59ace88ab7dc377606b411e1249f9deee2b571ec42bac52c29d26d67bfadece2e77aad6d5e0255a95a84c200757cb05c69160a1
 DIST linux-5.4.24.arch1.amd64.config 241418 BLAKE2B b24fbeb04cb63b5f0ec7ea935b21302aec92552f1a8108c204f8529803d5eb23dc6124529ca0f9fc394af051b0d3725698fb5df95d6af25274cb51146e3c052b SHA512 d180f3cea5c9c357d482d8533dec7e641b782f501c15f749a5a5347fe737fab93a43a95e12391fcbe3d93a90d673c91b890cb66d219a8f8247074d222959e9cd
@@ -14,5 +16,8 @@ DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6
 DIST linux-5.5.5-arch1.amd64.config 243885 BLAKE2B 088e76a9981a64cd6163667fd09cc02148f15cc53812a429d1f5e22dc893823f57041e581ec957f38504c1fbb5aa0c7886847d1ea4cdc44d5ab245dcc304edc3 SHA512 e6958e1fd35e2a900fa6c81e68e35b42496e245829b8bfd85d9d351dcdf8bbea93d25a0edf74871beababb4ba28cd7a731e589e68e047ac972d973ea8c20d3ac
 DIST linux-5.5.6-arch1.i686.config 243301 BLAKE2B c5fdd9dc2a0baed1ea421faa8f254d6ece47e89b78fc4c25c38369b53acc1f954978f2f86eda23b77d20a35096a596944f9c433db66008278ed2b8140823ce62 SHA512 b2d75bb1826a4dfad10aa5b6fa9cce2684d5de2dabc6da165e192e5a33cbd6eeaff4d7f236e074f4c099830e01e767bd6bc14a70d644057dce59288ae9704877
 DIST linux-5.5.tar.xz 110713660 BLAKE2B 36b990d3650c409652206c319c93c0cf68885334050bc286b479c8b844bc47354547e19eebb58caafb026b96d134f39f0c7ce38b4eebe9da7ea6d1610a1e2af2 SHA512 fa74fdabb5e63384a39e54da05b86a9ae9ea16179524b041fbbdffc7177e80b53600ae98d76be127ba216148f9dc55fe07ab20637e22c6d6030cb4aa09eb2f86
+DIST linux-5.6.3-arch1.amd64.config 246166 BLAKE2B 150977291d2e9f44bb58894ce8511fc507274b1e06d7fb88d623e649b30a99bbef878b46bbbc4f148fca7460b47ec930c421dc90cd67787658a2809465137f41 SHA512 6a9bfb99cbafad5dd1d7835b0e5b4571913a126b9d160c0516b8c15187a852c449d86360b414d8a249b9a43ec8e7ae8bc9365e3cbcda9c953fb5791949356280
+DIST linux-5.6.3-arch1.i686.config 245339 BLAKE2B 537b5445869089f6e0ef8782dba018a1b2d15362df61eecd84401a51c6f79a1f47b2dc8b79c62b4966b3e08dcc21d4fbbc47f5ba81227110e041d2f3fc731197 SHA512 93d9e93b82d66e0ddac0785beec07440914c2e8bdc2f3a069595fa736832ba72c0ac5416aeb9b6af237f725300d99d434ca3c7db7d4178b212799b8b33bc39f2
+DIST linux-5.6.tar.xz 111785252 BLAKE2B 8dbe02a8ca7fd3dcf512a15c5d8098c1e7f94257e65173fed43fcc45480e4ab790df8cd39bbbb4e2a21dc9a00385bc9bbe98215a31e7f7e1d9c8f21cd8ace69e SHA512 80846fe2b4e4a7ff471d2dde28a8216ae807a3209f959e93d39ea4fc9a189ea28ec3db9d303b3fe15a28c2cb90e7446876678e93e23353c2d6f262e364a06bc9
 DIST tinycorelinux-10.1-amd64.qcow2 16842752 BLAKE2B e013e76503c335739a9623c0901ca791937a0e6b177854535cadec1e2c2cd2df588283ed3128cf652595f32264fbfe5b3bd3a8c97665fd4da344e308535be366 SHA512 c3aeb20ff8769da9211694b7f701907cc7ae7582cdfad2c2fdc008d97ebcbd9dc08245b4e8f8450e1cb304bd705345a11fe79f901a47979fee91443841d55641
 DIST tinycorelinux-10.1-x86.qcow2 14876672 BLAKE2B 3c760eb7438b13261e52ecfaa33a53649ced95f1ab40aae52134b8cdc31a16d7aa0d6a6dd716e268ed148e9d77a10b7c700b141b61d70c82d271ffe88e8e2a3c SHA512 9964538dc42f232a11949f74b61d46422ea5da3bdc253a217119bd0b8a750c40fd2da0b07157067be9ac0226472614f210a1248114df0d331df390979867a895
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.4.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.4.ebuild
new file mode 100644 (file)
index 0000000..942c58a
--- /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##*.} + 3 ))
+# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux
+AMD64_CONFIG_VER=5.6.3-arch1
+AMD64_CONFIG_HASH=08a7fa88eaa91ef8b0e1f71b496d4097c3702e8d
+# https://git.archlinux32.org/packages/log/core/linux/config.i686
+I686_CONFIG_VER=5.6.3-arch1
+I686_CONFIG_HASH=de86e84e5ed3bf7ff6c978eb32b6f7a03341feb7
+
+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
+}