From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AF86413835A for ; Mon, 23 Nov 2020 00:33:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D78D0E083E; Mon, 23 Nov 2020 00:33:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AE7F7E083E for ; Mon, 23 Nov 2020 00:33:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C7CF340D04 for ; Mon, 23 Nov 2020 00:33:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AFA89456 for ; Mon, 23 Nov 2020 00:33:37 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1606091608.6d585ea6112bc5c5b3aaf5f84f62dee1b58a2d2f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/gentoo-kernel/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/gentoo-kernel/Manifest sys-kernel/gentoo-kernel/gentoo-kernel-5.4.79.ebuild X-VCS-Directories: sys-kernel/gentoo-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6d585ea6112bc5c5b3aaf5f84f62dee1b58a2d2f X-VCS-Branch: master Date: Mon, 23 Nov 2020 00:33:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 54b8eafa-4ad4-4f8d-811d-a142ee87c5fa X-Archives-Hash: 91379937883bacc3c2d67a1797fdc0ee commit: 6d585ea6112bc5c5b3aaf5f84f62dee1b58a2d2f Author: Michał Górny gentoo org> AuthorDate: Sun Nov 22 22:36:14 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Nov 23 00:33:28 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d585ea6 sys-kernel/gentoo-kernel: Bump to 5.4.79 Signed-off-by: Michał Górny gentoo.org> sys-kernel/gentoo-kernel/Manifest | 2 + .../gentoo-kernel/gentoo-kernel-5.4.79.ebuild | 94 ++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index d1369e209af..a7a21700bc0 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.4-78.base.tar.xz 2710752 BLAKE2B caf08c588198fa9a364ec299c9918 DIST genpatches-5.4-78.extras.tar.xz 1772 BLAKE2B 2b1790308dfe3bcfbd74ff7293fb0819e3949f0eb3d6ee448e4f7770d9e282505238dfbf4cfc5fcd144df7091816cb7f1c7d3514e9f9741ce4891539ca63fa8c SHA512 1d5814c23702f562b2207a95901b9ac4c5160508a0ac4dfb45468e6500f0a750c7ac4982d86ebd9de8acd26e23974f2893b3961d9aaa30fcaa3be2a217bbe80b DIST genpatches-5.4-79.base.tar.xz 2551752 BLAKE2B 8bd8950877671f66d7227a2cc0ee575ee42372af4e35a740566c61bf198dbb98bff58df33848922c941fb2ae6d91823b4b85ca8b68907eecec023cd046319d36 SHA512 9640b21570a6157542e2317221411c005c5ed17fedf25f3795839d59743b663a66bc3e8bb894a01a2bb9233f5ca8fe54ea1fb2eb1b9a0f0c9e9a5c8e9ee91c88 DIST genpatches-5.4-79.extras.tar.xz 1768 BLAKE2B 4c890e06a2733a06fee44172925a465204b8f435df40583eeeb553de6c2a26197f50ab100ed47b6c104ff5e4344534fd149d84f12e5f43f4c65422ef9a0e2cf5 SHA512 fbea0554d4cdffcbc4f43f9bed3cd57e5a3f79776f5e46d23daa65b884b5fd6fd43e248b04258434e44026669b6d1a707782a01dc217142c954fef2afa5acdff +DIST genpatches-5.4-80.base.tar.xz 2561892 BLAKE2B de5b2235bb041cc87bc9e227aaa7fe8c00796d313b590d375d7b8bff384b326652c71a4715237bb213af15a6bd7ac37ce5ab2b291146917ac852667b09e40305 SHA512 00cb664d33fca3185c6efaae58a4f7464bd8bde19e4b90714786dc9fdf6add1e9af9f8dc47b8d0558086518ccfe247061379a45d20718519dd655f41880d2a58 +DIST genpatches-5.4-80.extras.tar.xz 1772 BLAKE2B b549a8901e55cddb1742e394166f8d948ba67552f1b7488cdaa5b7b3dc1a08370ddf7b32a9b243842e995472ae03837e53ae7e95bed6bee0417874f031f3785f SHA512 bbf37e04615bca2a1fbca6b490bae4665865f4f5221f0268ba2f2ff5779fb3eebb0685654281dc5753b553d20a6864a950661cc75fc425b28844dbd524697caa DIST genpatches-5.9-8.base.tar.xz 443192 BLAKE2B 48c79a97fe1201bab87ba601feac1e05ce12f2db155e53e0a543c7994ba8dfcac75b17e315929c0b68b8136913fdf93005690ccb260640ccc31527088beb326b SHA512 c365018bcfe84ff64a8171951fd4f97bb89044633df137926d22bedc738cd17ebe72c26800eaf30171c3495ce2b1bfdc93866112756bdd2207e6e184b5f1fb6f DIST genpatches-5.9-8.extras.tar.xz 1768 BLAKE2B 96413f75c606fe4515d0facb8f0ca784702bb5d83591af87fb4bcf2b6c5e135eabcc55e0e84be9ecd3854ec108b8ed93cff11c41e7efba8c45aadefa291cacff SHA512 646efb1f6e0b9252b0220aa5922b0c0d8f093dba8edb7e40e127680c8a471aa49724f9591a3147925d7a4084af8d5e1cc5f78b0e72297072fd15bd13d1c93e40 DIST genpatches-5.9-9.base.tar.xz 513024 BLAKE2B de77ed5aa32336d44f0a299703ceaf290a6ec00ec8fe80f3ad6cf85d89374bdeb278c0fed143f7d7899e21146bfd6daadafbe2274ed10c3bc9170186015ba772 SHA512 d1c7640fc3510e8d47aa07b13c2876a14f510a30e74d53cbac2d6b564b3258698b833c028ed8e8694b8e4aaa31c899c7ae8023825e57e0b35e136f99e667185d diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.79.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.79.ebuild new file mode 100644 index 00000000000..b32b759734b --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.79.ebuild @@ -0,0 +1,94 @@ +# 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##*.} + 1 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.4.21 +CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea +GENTOO_CONFIG_VER=5.4.77-r1 + +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 + https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + amd64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config + -> kernel-x86_64.config.${CONFIG_VER} + ) + arm64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config + -> kernel-aarch64.config.${CONFIG_VER} + ) + ppc64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config + -> kernel-ppc64le.config.${CONFIG_VER} + ) + x86? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config + -> kernel-i686.config.${CONFIG_VER} + )" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT} + !sys-kernel/vanilla-kernel-bin:${SLOT}" +BDEPEND=" + debug? ( dev-util/dwarves )" + +pkg_pretend() { + ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch" + ewarn "Linux configs to Fedora. Please keep a backup kernel just in case." + + kernel-install_pkg_pretend +} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die + ;; + x86) + cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local merge_configs=( + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/base.config + ) + use debug || merge_configs+=( + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/no-debug.config + ) + [[ ${ARCH} == x86 ]] && merge_configs+=( + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/32-bit.config + ) + + kernel-build_merge_configs "${merge_configs[@]}" +}