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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4DF2D158087 for ; Tue, 1 Feb 2022 22:03:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0AE1E2BC06D; Tue, 1 Feb 2022 22:03:32 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CFCC12BC06D for ; Tue, 1 Feb 2022 22:03:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B520A3430F0 for ; Tue, 1 Feb 2022 22:03:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E69F42C8 for ; Tue, 1 Feb 2022 22:03:27 +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: <1643752997.787b61bd7dbd7be0f830ac3271c57cdd8ca0114e.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/vanilla-kernel/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/vanilla-kernel/Manifest sys-kernel/vanilla-kernel/vanilla-kernel-5.4.176.ebuild X-VCS-Directories: sys-kernel/vanilla-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 787b61bd7dbd7be0f830ac3271c57cdd8ca0114e X-VCS-Branch: master Date: Tue, 1 Feb 2022 22:03:27 +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: 401ceb31-4dfb-448d-84cc-3504231c13d8 X-Archives-Hash: 84723acc60c24ea2523146a2b8952035 commit: 787b61bd7dbd7be0f830ac3271c57cdd8ca0114e Author: Michał Górny gentoo org> AuthorDate: Tue Feb 1 19:04:39 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Feb 1 22:03:17 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=787b61bd sys-kernel/vanilla-kernel: Bump to 5.4.176 Signed-off-by: Michał Górny gentoo.org> sys-kernel/vanilla-kernel/Manifest | 2 + .../vanilla-kernel/vanilla-kernel-5.4.176.ebuild | 107 +++++++++++++++++++++ 2 files changed, 109 insertions(+) diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index c97f230dc7ff..44e46cac59c8 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -34,3 +34,5 @@ DIST linux-5.4.174.tar.sign 991 BLAKE2B 3a76dfaac9eccb8e1d7d6e494796c103457c0ab1 DIST linux-5.4.174.tar.xz 112884340 BLAKE2B e60db43963f0e7f0b4167ba283d64c630b348a4fe05fc28fa871bb34d3c07219fb456792a16f86ab123c870a920094e28c85065152e64f584242e849b9535479 SHA512 0650e0da44c9ef41bedadb3bf029486d27b53080e151b29f9fa132073ba9497262437b234523a4e32d0d1814ec133437e2017fdb3d66c247068d974ae4ee5cf2 DIST linux-5.4.175.tar.sign 991 BLAKE2B 06a7a2737e31f540415bdb2fd19b18db26af4dc23ba2f8e9ef285cdc66a3d01689cf41b039c9dea8f7c5afbbdebfe13f9cb1e259dfd03ec294ea57dfc16dec06 SHA512 5c585f9a13f153c34bd4ff259dfff16ca90cdb4dcc4d78491eb777164254455fca914b2ed17fb1c12b4f04dc802875ed99c17f97ecb1d88ad12979abea824751 DIST linux-5.4.175.tar.xz 112864836 BLAKE2B bc5a9c9a262e8c0e0355b82ff87b9d36c17b605251c9ac842021cb86ca6f2c54edd20f716585b95b5bcaa8652d5891470c6afae0964cd610d463be36e04f1e5c SHA512 86eccb8c9da157351ffd6ba91aae6c82897cc51ac9a475f92e5fe0166a487358eec4d5ec60dc03252ee40285b97795445836d98a92216bcfb52e09cc47f730d4 +DIST linux-5.4.176.tar.sign 991 BLAKE2B 6eda9712c42bcd44a52f6ac603bb0d4c2698583b18de38d845a22ad0e11ef3d59f415d2bd45ca3cc2cba6a46da72b91dbf45e9d444e97bac710f3a3a9339ed9e SHA512 7482201bba56cd484a1d4b0fd8c27d5fe59202197a4e4c38324fafe79695216ad4f0e3c4cd5e0f3f9a4c5834ba0796c332cdfcefe91036d28ca4637672afe2d7 +DIST linux-5.4.176.tar.xz 112880184 BLAKE2B af66cb30d3f9ff38f6e11cec51f355a4c3decec22f5227e3c0b095b09c735a239fdf1c2b3c5af557d7c642e6c25840986e115260049cf2287ef0d70fd1d35a4a SHA512 99b489523813446007f3bff117cf12a0c3f6f09c00bbeb2cb825c1ea56aef3f2f10d6f2a9454679b35a3024f8dff4e00ac8da480e35a29c7d9775b9ecda6445c diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.176.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.176.ebuild new file mode 100644 index 000000000000..a68d501c5130 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.176.ebuild @@ -0,0 +1,107 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build verify-sig + +MY_P=linux-${PV} +# 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 from vanilla upstream sources" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.sign + ) + 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 ~ppc ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/vanilla-kernel-bin:${SLOT}" +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( sec-keys/openpgp-keys-kernel )" +PDEPEND=" + >=virtual/dist-kernel-${PV}" + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + einfo "Unpacking linux-${PV}.tar.xz ..." + verify-sig_verify_detached - "${DISTDIR}"/linux-${PV}.tar.sign \ + < <(xz -cd "${DISTDIR}"/linux-${PV}.tar.xz | tee >(tar -x)) + assert "Unpack failed" + unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz" + else + default + fi +} + +src_prepare() { + 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 + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .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="-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[@]}" +}