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 8094A158074 for ; Fri, 27 Jun 2025 17:39:51 +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) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 6A61F340E5C for ; Fri, 27 Jun 2025 17:39:51 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 12C2011055E; Fri, 27 Jun 2025 17:39:42 +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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 07A1A11055D for ; Fri, 27 Jun 2025 17:39:42 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AAE52340E49 for ; Fri, 27 Jun 2025 17:39:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 45E4B2AA1 for ; Fri, 27 Jun 2025 17:39:40 +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: <1751045973.95b86af5db51f9f15e149a0c03ef7028bbf55f40.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.6.95.ebuild X-VCS-Directories: sys-kernel/gentoo-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 95b86af5db51f9f15e149a0c03ef7028bbf55f40 X-VCS-Branch: master Date: Fri, 27 Jun 2025 17:39:40 +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: 8b28bce3-ad57-4e36-9e7d-fdb9255acebf X-Archives-Hash: 96bf57648530cd63d0cd595888b7de00 commit: 95b86af5db51f9f15e149a0c03ef7028bbf55f40 Author: Michał Górny gentoo org> AuthorDate: Fri Jun 27 12:40:25 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jun 27 17:39:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95b86af5 sys-kernel/gentoo-kernel: Bump to 6.6.95 Signed-off-by: Michał Górny gentoo.org> sys-kernel/gentoo-kernel/Manifest | 3 + .../gentoo-kernel/gentoo-kernel-6.6.95.ebuild | 144 +++++++++++++++++++++ 2 files changed, 147 insertions(+) diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 0ff35a8a3438..60ad9e7b9a2e 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -54,6 +54,9 @@ DIST genpatches-6.6-102.extras.tar.xz 4060 BLAKE2B 52c598975958a1ce82ef6b800d7f9 DIST genpatches-6.6-103.base.tar.xz 5308204 BLAKE2B 417b3ef7d6ddab17a8ce7b0cd9e5de842b5243bb63e1ea886255a6a582430963ded0fa513c3281d3bebc2362cda7ed6d80f23478ab372341ca8fae8d8147d1c9 SHA512 2f0bedf5be24ac00bc26f93e131b7832203eb29116dd86d1ab44e81b3612ce549ce80a1470b9782f86e991a1268af2d687cb3fcb09ddc268cdeea33483cf20b3 DIST genpatches-6.6-103.experimental.tar.xz 6052 BLAKE2B 1259c0b4e334e70bc5fe92aa86dfcd08ddd7bbc277458dd14fb4c1f0e600c5e94c56967cbd5c71df69aa402dfa24003797dba85820551aa703dda4b4283b29ae SHA512 d207c0fbdbdc49e3f73352466f707809a11a99b000b11fb99bc9fc6140a3a90b3c0bc6267e1a3889e3033f4de0545e0d3513bde941080c7eba2720721dc589d5 DIST genpatches-6.6-103.extras.tar.xz 4056 BLAKE2B 72ff5d4be369c11dea978b634f986e121c8d8eb3901c91df3ee5e79ee99f0bcbecb6325c33ae134626a8bd43567b2034e067076f7729e2c002446f1b55752687 SHA512 0df263c431c3f0ef5b0b18a8aa85347182ca0343bb5fc4b0a05adfb642b0368aa5ebb3dc7a1a2572205a89f3573e7a9b6d87980d333694dc3ae45f66cea71ef7 +DIST genpatches-6.6-104.base.tar.xz 5375020 BLAKE2B f133a37b1c26b128143a20624ee225f5a1ec4d6184f6c1100d3c3ab4fa9e361a632e08b814baf8361b3ff51f5197de6d335f98417d07d17b1f64bfc285e90ed5 SHA512 a405172609bd2811001778e3f95393d60cbf0cff5f78763801745e99d118be7a34623a9cc487253f474e3ff3a50ffa22f3d905d05e0dddc82bf6ddf3234f3fc9 +DIST genpatches-6.6-104.experimental.tar.xz 6056 BLAKE2B 4270f00f11fa0712be18e862b1a5b156b5333d67f467be777cbe0a668877bb5ca3c8d83f5e1c468accc2887fd28203dfca28e6b5c2ef7906afae5683bce8b7d5 SHA512 d7b49d0d8844f3b2feeb6f39ab883fd8dc211a418f0b152458f06b9a73faf34e428a379f64b35b10b06519c951cf128dd09925f688998ffc8bf03cc2a70e38ad +DIST genpatches-6.6-104.extras.tar.xz 4060 BLAKE2B ddcbea0681fb032c8abbd5e85cd62cdff96fa5f3373a63a0d8b04dd4dc51c3422b15302a84c4f433f1721c8a02d52be977bd8ebe6188df283f70895099cda38d SHA512 92c637f81a36cfdc1593d0f708ac6422fd7f2bfa4cccbbb5fb0f90e741d87a4f82e36230825f19b5166a0b32c28183e27a9a6c5c8f93ee40621021e777207ffb DIST gentoo-kernel-config-g16.tar.gz 5995 BLAKE2B cddb80d45169749c707d87efd186f7a981534aab2479b6c51790008ea61e9f9feac35d0d74b95dc18281e4b81771e09f259a1d9f216f5d7f806fa7cd6aeeb4d1 SHA512 f8114e645e1ab99e45703790b7e43c2fa9ee17b41a2265dccdd9187c122bf8b5a09ba918fbcf094aa899bb959f05d105ed474b75cdfa9a19c4d49fd138825647 DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52 DIST kernel-aarch64-fedora.config.6.1.102-gentoo 252811 BLAKE2B f6bad0d23132bf0dfbaa25db928a95f39763b6500fd1df9b4aeca4351e3e75f185891c0df96b111ad840e4bac431d74a9b11e7344e766ab49715663c89e4dbfc SHA512 41ebf195d8b656801d49c6bb693ebe1404b6725d70d88d93a75bc4af230030d65ef0701ea931846b022a3c598dcca068fbc38ecf6d064262b3f5b88e57060437 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.95.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.95.ebuild new file mode 100644 index 000000000000..03e78108c7b9 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.6.95.ebuild @@ -0,0 +1,144 @@ +# 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##*.} + 9 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.6.12-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 + ) + 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[@]}" +}