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 6590E158094 for ; Wed, 5 Oct 2022 19:23:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C5BDE0943; Wed, 5 Oct 2022 19:23:54 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 81D37E0943 for ; Wed, 5 Oct 2022 19:23:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 4FF83341065 for ; Wed, 5 Oct 2022 19:23:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BC634613 for ; Wed, 5 Oct 2022 19:23:50 +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: <1664997817.7f21cb64b1ec8189906f92df6e637e73c9af0304.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.19.14.ebuild X-VCS-Directories: sys-kernel/vanilla-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7f21cb64b1ec8189906f92df6e637e73c9af0304 X-VCS-Branch: master Date: Wed, 5 Oct 2022 19:23:50 +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: 9c41e923-7586-4e27-aa3c-ceb50dc561df X-Archives-Hash: 31e34e2d89b08669d210024a58cb3ed3 commit: 7f21cb64b1ec8189906f92df6e637e73c9af0304 Author: Michał Górny gentoo org> AuthorDate: Wed Oct 5 15:39:10 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Oct 5 19:23:37 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f21cb64 sys-kernel/vanilla-kernel: Bump to 5.19.14 Signed-off-by: Michał Górny gentoo.org> sys-kernel/vanilla-kernel/Manifest | 2 + .../vanilla-kernel/vanilla-kernel-5.19.14.ebuild | 134 +++++++++++++++++++++ 2 files changed, 136 insertions(+) diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 79748e10baf6..c6496dbed58e 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -49,6 +49,8 @@ DIST linux-5.19.12.tar.sign 991 BLAKE2B 437a9fe27f91a3a68b2300e94c2806bf156ac27a DIST linux-5.19.12.tar.xz 131684652 BLAKE2B b1f2b1d41070c7fcd50b7a5da730dd45408c0867c1dc2f9c5dcd43057506221207f13b12ede4c4f0fa8256098542b0f90e3b9f96a93c9b18b5c1cf41dbe380b3 SHA512 567dfb4302ea6a8961ad3b6dba332a925d262fbc8830a77da75a7be19db3cb19080260787cfcd0318b7893b71c655e2bcb1fc71dd07ff5627064fd33635bb2a4 DIST linux-5.19.13.tar.sign 991 BLAKE2B 7bf64cc669a4093c5a3210c2d45e17f3977505ea49677253067d9655192ccf74c2bc4f7545d3fe78e3adda4ea64caf17826e6c8e00b083d9ffd65e7ae4bb29bd SHA512 e4beedc56db094e7172e47ca21b5382b9181fba9110f47678f92ec5d314a69ceecb261cf2b3d04bf7ae6569a8538274efdb54f102bd90a355e67dafc25fc20ab DIST linux-5.19.13.tar.xz 131653036 BLAKE2B f88beb9c9a32d0f9738327173bcd37222939fbd1a953ad6826598b7ce0378ecdab637e8cba45694abe48c6cfcaf2e051c89b15604b3ffa610900982651570a53 SHA512 1cea482bbb57d6b7db9f9bb1087e8ad2a3bf2597991276d7a86c9eb16a5b986b102619e7f54115280ad851a2811c31dcefc822f22c07fbb1e82512a315192654 +DIST linux-5.19.14.tar.sign 991 BLAKE2B 33280f855e00b93f803e6f982b129e199748925f5e3326d977c81a56bad08d7d6dfe762ebd1bcdd535fc64c6af5981d39ffc6a49827f984d69a5c9bd72ae02fe SHA512 1162461100ee335a73f2495ef456ad32f1bcdec400dfc52fdbdd14929e2f1a87b3527f57c1d7ea08957c2bd607d89aff055e0faf6abbfe801f32ce93d9bca88d +DIST linux-5.19.14.tar.xz 131644196 BLAKE2B 459f07c79b36b9edaff06f4fb183bd209af2e51c968b2ee2883f9664eac1cf569b59e3fb9b943c1eef50362af3a41603ce367df1895a1f77571ba491160131fe SHA512 19e584735009f0cedd08c94b2cc75cb6b0706a5aacd13a57995cab4f4a304bec42e9f0151bac1712d117b88c211fb84092b6eda723f9ab06289f37930ce1079a DIST linux-5.19.9.tar.sign 989 BLAKE2B 7a91005e18985c3cd7fc9b2c5ba6e25f756b471479865b83e2c5bfeb09ac0a452a5a580cebc1ae542fdb25e6fc020f20d1716143520286cede0f344b0070e912 SHA512 c9447dc702ec67da6b6f5aae43a09178796959f41faa9ab4770fb2a1b16d2844c9ab09cee09c1c41a31ec0db64e41d0a43ecc392889ddf539923cf5c0855eab2 DIST linux-5.19.9.tar.xz 131654068 BLAKE2B 2f42b30510e8b778e78d5945b8cf0d5f67e95470414043128470108251a10a5a67841f5f508253a3bd93ebc4203a93e9947dcf7f4aabbe37e09390e7b25b52b0 SHA512 6607af5e83e57182426e22e00db1fcb7ed5fc197457168f2befe283a6710d6a83fd423b914f0ba9e609d9502f67b8690354ec74fd2c7eb855538641a11d73607 DIST linux-5.4.213.tar.sign 991 BLAKE2B 5266f3850825ba2eb12b2dfd2d61c22550e55da2bd2e1e970fe462bf3ddfb4aa1c156e414efa22d8ef3cf73d625532aef1ea8480f9f8d87d09ead700f616e268 SHA512 4a469aee797ee108c4bbe140010bf976aa8daac98e7b09071d68667f875f8a12c9a1b1bf3350ba9415aac55d9d84e95102b123a4240fa3d61f3f9a83f7c89fd6 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.19.14.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.19.14.ebuild new file mode 100644 index 000000000000..43e75eed5fa0 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.19.14.ebuild @@ -0,0 +1,134 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs verify-sig + +MY_P=linux-${PV} +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=5.19.13-gentoo +GENTOO_CONFIG_VER=g3 + +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/projg2/gentoo-kernel-config/archive/${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://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config + -> kernel-i686-fedora.config.${CONFIG_VER} + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="debug hardened" +REQUIRED_USE="arm? ( savedconfig )" + +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 + + local biendian=false + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm) + return + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + hppa) + return + ;; + 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-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + x86) + cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local myversion="-dist" + use hardened && myversion+="-hardened" + echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die + local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" + + local merge_configs=( + "${T}"/version.config + "${dist_conf_path}"/base.config + ) + use debug || merge_configs+=( + "${dist_conf_path}"/no-debug.config + ) + if use hardened; then + merge_configs+=( "${dist_conf_path}"/hardened-base.config ) + + tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) + + if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then + merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) + fi + fi + + # this covers ppc64 and aarch64_be only for now + if [[ ${biendian} == true && $(tc-endian) == big ]]; then + merge_configs+=( "${dist_conf_path}/big-endian.config" ) + fi + + kernel-build_merge_configs "${merge_configs[@]}" +}