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 7A4E415A7D9 for ; Tue, 14 Mar 2023 13:55:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9F171E07A9; Tue, 14 Mar 2023 13:55:50 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 790CFE07A9 for ; Tue, 14 Mar 2023 13:55:50 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5CD1A342519 for ; Tue, 14 Mar 2023 13:55:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BFBE38D4 for ; Tue, 14 Mar 2023 13:55:47 +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: <1678802138.c7d2d5376efc340700a1b0c13235f281c9b50044.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.10.174.ebuild X-VCS-Directories: sys-kernel/gentoo-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c7d2d5376efc340700a1b0c13235f281c9b50044 X-VCS-Branch: master Date: Tue, 14 Mar 2023 13:55:47 +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: 7236e8fb-3793-4ed4-8d83-6ab591385875 X-Archives-Hash: fdf61cf7ca6d62a6e7d3b7d992a300c4 commit: c7d2d5376efc340700a1b0c13235f281c9b50044 Author: Michał Górny gentoo org> AuthorDate: Mon Mar 13 14:58:27 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Mar 14 13:55:38 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7d2d537 sys-kernel/gentoo-kernel: Bump to 5.10.174 Signed-off-by: Michał Górny gentoo.org> sys-kernel/gentoo-kernel/Manifest | 2 + .../gentoo-kernel/gentoo-kernel-5.10.174.ebuild | 134 +++++++++++++++++++++ 2 files changed, 136 insertions(+) diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 901df16f40c3..2ac9b9f5d9fe 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -10,6 +10,8 @@ DIST genpatches-5.10-181.base.tar.xz 4964488 BLAKE2B 2b05c676da465b1627c92400f12 DIST genpatches-5.10-181.extras.tar.xz 3872 BLAKE2B dd1d27a04cd2215fdf9ae7301d6c90dd0a1e9e4ffe7e295dfe2d6b637de69303d9cd2a00a5adeb33d2c4cc7d984e57e69bd9f998df1da188ae006511fe70302e SHA512 b91ec330f3f87bf7ec5cdc10e6352070161d38d09fea82142b2dc475a0a25d176a262cc0bf24d4a4902e84abea84f6263c3e859f1ebf8f44155e42c5f565dcce DIST genpatches-5.10-182.base.tar.xz 5091520 BLAKE2B 80bb1d7b815a8ad56c79d28f45788b00f3ab972965e7180a598a5e832c7086bb872a52b2ea725949b571c2c7c7731eaaf61610ea147bb119badaf19fd9781709 SHA512 3d9355524ecf871ce2d62df56c99eda3bceec3f528b4f434cb750d75b7ee9aa82ed723c55ceffd7c9a6fa11287daaa9155d484da2a5f1a3806b93f3e3ddb541e DIST genpatches-5.10-182.extras.tar.xz 3872 BLAKE2B e73c6a4448be4f9ea39d7e79069672885f8091d9f40d472325bf9bd5fb8d05ab723863edda6c5ae42ce469e3cc722bfcf34198b8bbbd038e89f9625934fd9fca SHA512 b41bbb5093b4a072d5e4031623d9578a9bb9e2415d6c895fe95a5fa8d7332ab79e3dd181fa5e68d03de037faacd2fac265d60b4c94dae989de8416ad37422e48 +DIST genpatches-5.10-183.base.tar.xz 5092416 BLAKE2B d4c674fdd2891051748ab33257ed3dd1e85c7f15ee2cb5e73932752ab31ce6aee4a5a3b7a68767f9c1b5f0274693a140c3911fff7fd4a5587814861010cf0fb2 SHA512 bed74ee91b86e61bb2bfd02293a2590d0b5b9a7171c794c768970dcdc8cbd004ac6df87a63cbc9f5f6d1d2372e2960e29d68586b84a077275b61dbf80608a365 +DIST genpatches-5.10-183.extras.tar.xz 3868 BLAKE2B 4f42863c501d8636ee3d991f2e434123a891446182dfd5c45482e8aa439675f62db9388eac0ab00683001d7a7ae49f576968912a048d4e4a947a5e20f2830ccc SHA512 8c2229286e958d1d88c9d93dc3e6d26d98e91fc67f7040d0a96d35b89da8f15d11b339372a3055eeeb448352372cde839e7fc6fbfb0600d03337d224af4a8178 DIST genpatches-5.15-100.base.tar.xz 4036256 BLAKE2B da0f271d54f248597d038a09f3cae6a2293ffbcaf9f06ad500060e0b28c57c0120c64f30cbb97b4b4585cc1a8f12b013258962a6599a166f5716e268b0587030 SHA512 865ece0271c674aff6df31d7b0ef8dd8d9643e9e7ab49730bb2892f82e1468f4f086710c62f6f647cb2a4e822a5a5fa2e2415fec8d900f82976bdca23384bebe DIST genpatches-5.15-100.extras.tar.xz 3932 BLAKE2B 55665c7edd0316db7e6a8391ccfc97a3f2c51e9e445bb81e0663ad69405ce577133f2def0e58711b1f8dab0b7bfb4314e05a41183138585eb24c909b7cc8c2fb SHA512 dd32b33616a64fe0f4b319e3424360a29d81ed1c6d94457da0458d7141013efab4933c685468019dc7c023346697d31c902e67d17120208ae408939b2fe1c5a6 DIST genpatches-5.15-104.base.tar.xz 4172432 BLAKE2B 3056125f31757d4daf4d5a5df4f9e0c02257786d5dbfb44a134abffd2c8615d170f64f4d5154b04e7a5e6e825ee175430c842a7490ff6a3414954059a72a88f4 SHA512 324899dda69e2388adcc7241a5905110cfcd6a400d011c5948a983ccf5693be820b56115b5448f96fd819457574bf6ab3e7cabbf8169bc471df4b9a73b024975 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.174.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.174.ebuild new file mode 100644 index 000000000000..275a706cd1cb --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.174.ebuild @@ -0,0 +1,134 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=g7 + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE=" + https://wiki.gentoo.org/wiki/Project:Distribution_Kernel + 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/projg2/gentoo-kernel-config/archive/${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-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/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 )" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +QA_FLAGS_IGNORED=" + usr/src/linux-.*/scripts/gcc-plugins/.*.so + usr/src/linux-.*/vmlinux +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + 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="-gentoo-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[@]}" +}