From 40c88ca71e3ae4cb756f752c01f998b2d9f15307 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 28 May 2021 19:34:52 +0200 Subject: sys-kernel/gentoo-kernel: Bump to 5.4.123 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- sys-kernel/gentoo-kernel/Manifest | 2 + .../gentoo-kernel/gentoo-kernel-5.4.123.ebuild | 97 ++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 sys-kernel/gentoo-kernel/gentoo-kernel-5.4.123.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index adc6524d59f9..435fa54770c9 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -20,6 +20,8 @@ DIST genpatches-5.4-124.base.tar.xz 3499808 BLAKE2B 98d5cac4ac9f5d59c4dc1bcf3e5d DIST genpatches-5.4-124.extras.tar.xz 1772 BLAKE2B dd0400f17cd878676cfc7f52f36a3cb48ffa785bf3cd27fc5c0f40af34babb0f5b9fe931a4b92423c944ec8260d3b74ce5f1bc9e6d452ba4dfc6595125f5d6b3 SHA512 8dcac324ae81815546faa670428db2474b3a58e842c966017a4ed253eb537e7ab753e99f7675bfb2bc54bd4567f381d28586fccca2d213e0faf4125acded27b4 DIST genpatches-5.4-125.base.tar.xz 3512440 BLAKE2B 4a63e044f420911602426aaacd6476128288169dc12baccc0810d44dce50cac275fef38cba3b119724bb66fb12d3171337e88ce2968099328eb2f7b3651fd945 SHA512 30ef5565de7ecc57c849519121b22f94fc731f2c59418cb45fa29e50b49f487d621f0005c4487cbb8d6be3a00456db9934512c73c16972197daa8ddffa5a7115 DIST genpatches-5.4-125.extras.tar.xz 1768 BLAKE2B bfa75a0d735871051ce3f66962b9287ef80d4928dea58ce2f9b4d817788d4975e8aed09888ef2cba716292eb650633cf9a191843b81e69f8f717f5b44fec6dc7 SHA512 ae8a8e69c44567baaf1a7efc27bb3384da6f83c9f80c90b692e90c296bcc33862f4670ab72969ae727b310a5995a707c1bf112c67ca268893f32b616f6391f24 +DIST genpatches-5.4-126.base.tar.xz 3514976 BLAKE2B 9d3ddbf2a9d2957a76f3c172afbc040f7ecf97ecb9014277c110aded0fb808c2b09a1191a7596a396d2b2fc2fe91e964b3ec3ff99688eca9b0da256f57454680 SHA512 5f89c7034d55f3465ca9ab8a2d976af139a49d269ae0f04a05dc5a8ae6bb88e436ecfe7bd6bdc3c3d8beb6d6f681c8e87003d2595b8c9677f41d5b64629be411 +DIST genpatches-5.4-126.extras.tar.xz 1772 BLAKE2B 900e7881ef06469e55c4c79b140454d14dc2a8f244b4972439c2fec1c50b95ac8cbe2713dbc64a8e0c7789b517d1350ee91eb75bdd8d45a12289b2445b567acf SHA512 477e1626042f16a139972960be3e62a1f04103607cff026dfd1fe32d79699503d3a336b7241d0b5f6d843d3441a436b59a9c51408fc5ac7e905b1adea52a4e8f DIST gentoo-kernel-config-5.10.32.tar.gz 1269 BLAKE2B 4a21a57d567d9a527ef829f375275c65347b2e6461b00e50099458c496af0a7b3b863a6e1d8421ad18c52c64c1c4cd7e5fd416673b67738cde6253af8a9f18db SHA512 a83ef22a7f9f83f01bd65a5470f0678111b0a7dcf1dc564e04264f68cc54833dbed4cccffe2864caf3ac14169611259f0bb786c1aefe194372d6d3f67fa64c00 DIST gentoo-kernel-config-5.4.114.tar.gz 1298 BLAKE2B e494041cd63ba53f055cfd555e359934d5054238bd096addd7965754e6708bada63398c4b315318f73130ed81c1391524388396775632248870721f1ce23f203 SHA512 225600db53532ee131dd83d10cecc97a83f4615975ff32f3f6190a15eace64707cb59490bb42940e4429f9054221b9d9a589ada443922062bb5ee18ecc42c26c DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.123.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.123.ebuild new file mode 100644 index 000000000000..06fbd7e64e61 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.123.ebuild @@ -0,0 +1,97 @@ +# Copyright 2020-2021 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://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.4.21 +CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea +GENTOO_CONFIG_VER=5.4.114 + +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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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/gentoo-kernel-bin:${SLOT}" +BDEPEND=" + debug? ( dev-util/dwarves )" +PDEPEND=" + >=virtual/dist-kernel-${PV}" + +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 + + echo 'CONFIG_LOCALVERSION="-gentoo-dist"' > "${T}"/version.config || die + local merge_configs=( + "${T}"/version.config + "${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[@]}" +} -- cgit v1.2.3-65-gdbad