From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 1AAF415807A for ; Thu, 05 Jun 2025 17:27:39 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 06E7D34316C for ; Thu, 05 Jun 2025 17:27:39 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C353D11047D; Thu, 05 Jun 2025 17:27: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 bobolink.gentoo.org (Postfix) with ESMTPS id B9E3D11047D for ; Thu, 05 Jun 2025 17:27:32 +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 6E400342FB0 for ; Thu, 05 Jun 2025 17:27:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D6C7A2903 for ; Thu, 05 Jun 2025 17:27:30 +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: <1749144430.b68a49c79b0a41792d6d29d18c65f6d5a4e4372b.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-6.12.32.ebuild X-VCS-Directories: sys-kernel/gentoo-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b68a49c79b0a41792d6d29d18c65f6d5a4e4372b X-VCS-Branch: master Date: Thu, 05 Jun 2025 17:27:30 +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: 3b5db8ec-4b07-47f6-92cc-41c5db249139 X-Archives-Hash: 8d638db7c20c5806242d6addea134fd2 commit: b68a49c79b0a41792d6d29d18c65f6d5a4e4372b Author: Michał Górny gentoo org> AuthorDate: Thu Jun 5 09:06:57 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jun 5 17:27:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b68a49c7 sys-kernel/gentoo-kernel: Bump to 6.12.32 Signed-off-by: Michał Górny gentoo.org> sys-kernel/gentoo-kernel/Manifest | 3 + .../gentoo-kernel/gentoo-kernel-6.12.32.ebuild | 145 +++++++++++++++++++++ 2 files changed, 148 insertions(+) diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 768e639ad73a..1a98670ce27d 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -7,6 +7,9 @@ DIST genpatches-6.1-150.extras.tar.xz 4052 BLAKE2B e268be13305885933ddf6b5195348 DIST genpatches-6.12-36.base.tar.xz 2240564 BLAKE2B cd68b5d7fff73f5fe0c67a8eb47c2094a0ae57f304b5a4798ccca7410c5f514fc1f9b2fccb65e639886e48950ed24d04ed44ddcdff3d5223e336f573f25a501f SHA512 61796173e1e286c352d3d683be007e4336e646cc1efcde0528b12b38e484d104c9686440aa90d096cb1ebadc715e46899e5bda0f8bd070190ed73e0291401f19 DIST genpatches-6.12-36.experimental.tar.xz 6048 BLAKE2B fac20aa6031bd73641bc89ee2ed863c1fd1232935451626ff1f3c5e5e800cba20f76101ee607dec04efebf08310e880c45e9561a44ec3afcbd745a998667933e SHA512 8a98ee5736f57e5b9ada6bcbe39aba99393f6d76f4cfcb1deabff6e9d802895c18c8daa477fe422b87841bf3b815e43ab7fcdbe0bac8290d9962aecd602d63d0 DIST genpatches-6.12-36.extras.tar.xz 4060 BLAKE2B 034e0d065982369815db90efd84209bf88c73d19a1f4fa41b6c4586b0197e1e502df00b63f8d99c7c1eb0e32fbf99c0187b8c304adaa0f2f624a722e50a31b21 SHA512 cfbb8e69bf254088ddee442c6ee1d293406eac106b0c8fb7d926ea2778260664991ca05c5efe6547b4740ada1010057001856c5d6ee864cd73f55cd8ef78d5fa +DIST genpatches-6.12-37.base.tar.xz 2252148 BLAKE2B 31c9167efd052ab1ea08cc37bd8e94b671d17b6f7f7cf2126733af51c3b3a63c3395113d4cd57d1a54e593a7cacb830e36678dd76b37f67c01bf9b91730e0715 SHA512 74accda102db462cae8d9a9ee0514c06c08799e3b35199b9ebfe34ce43001a0383fdbe5d02e0621e861fccf3dd04c6e5fdba1b093686a1bf35c3c7093f574c22 +DIST genpatches-6.12-37.experimental.tar.xz 6048 BLAKE2B dcc58163e5f237873309977a5ddc591c403ab54b8735e6e349692209ea06d72666e203d6bf300532fa6be3a380505f07e3307baeace5b2c04ed37dc020aead47 SHA512 84ba2a568ca3c7cab7269943f98e823442aec09962d56e7a41ccd7fe5c143e3df053eacf5c7c59e6e8a10aea4403bb226efe2803f71791dd56aca346b5e29482 +DIST genpatches-6.12-37.extras.tar.xz 4056 BLAKE2B c8aa66c636b448118cb4fa124a44b78fad799bfb9f69585e8d5afd50592f0fa36986bba428c0831cd996fe9afef675f4168e7c66ab341db88f0e0cecf956e291 SHA512 c7672779883d90ceff6b2a25f3f9851b2abc4ea5093972c6e3c9a6860bb53b08dd2e3c2832983ef17a7bd8e2c8d77b5f2540473b85390619d1547c2c4d25846a DIST genpatches-6.14-11.base.tar.xz 1058528 BLAKE2B 276bbd42629f6a305f3170e8560736b6ac25c2afae0f8cb9aa50bb101303308bc3bf7729c95f42fb112cf77318a57aa0df9f2af4d726772d167eaccf78774eae SHA512 a3ce8ff9e14e443df9dbdf0ff081c7e642d9a660583fce303eb76cb1fbd486a3fb61fb9eaabc4e0a5e48514ae224958628e80f88464ef55c09969fc3e4544894 DIST genpatches-6.14-11.experimental.tar.xz 79808 BLAKE2B cb647aaa0716ddcef79ec77134fcb267d03f886ac62c456d656ea676478c66af4579677a17012b0a95df3c394e2f4da7ee0e189e97ee22be33e606e18bbfacb9 SHA512 591d12d52d36c21fd2813223ade37f072676ef885a69f636fd3acb3ed757fb061668014ef3513fc516ba977d77ecab5e71ec5396b73f12be24c7bc9ca563bcca DIST genpatches-6.14-11.extras.tar.xz 4052 BLAKE2B 808ddfabf47e276fb302c4a61230d9e42e0a00d52676137537b440b533f1cc4cf76248cfe4dfb31b589b1f45b22c56a8cacc29d59f33c31f8d50239902e82d92 SHA512 be2b1261fafee96e99375968b43ab33500622864a6133d773ef88cccab8800d409f783388195ba8993488cfc4259f276c3c9b7c0b7ad432fd1caa69db3a6de03 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.32.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.32.ebuild new file mode 100644 index 000000000000..f68c5b05d46e --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.12.32.ebuild @@ -0,0 +1,145 @@ +# Copyright 2020-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 +KERNEL_IUSE_MODULES_SIGN=1 + +inherit kernel-build toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 5 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.12.8-gentoo +GENTOO_CONFIG_VER=g16 + +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/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + experimental? ( + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.experimental.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://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} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug experimental hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + riscv? ( savedconfig ) + sparc? ( 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 + usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | riscv | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + 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 + "${dist_conf_path}"/6.12+.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 + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +}