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 9824B1581FD for ; Fri, 12 Sep 2025 03:39:14 +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 83A04341820 for ; Fri, 12 Sep 2025 03:39:14 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 58D5B110575; Fri, 12 Sep 2025 03:38:59 +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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 50870110575 for ; Fri, 12 Sep 2025 03:38:59 +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 01FF2341603 for ; Fri, 12 Sep 2025 03:38:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 618DE399F for ; Fri, 12 Sep 2025 03:38:56 +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: <1757648047.48d6946f757c20e9fabf2ee152b19b9dd87b6466.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.244.ebuild X-VCS-Directories: sys-kernel/gentoo-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 48d6946f757c20e9fabf2ee152b19b9dd87b6466 X-VCS-Branch: master Date: Fri, 12 Sep 2025 03:38:56 +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: 4cefb0aa-216a-43e3-a168-9cebfee6d53d X-Archives-Hash: 1c6a22f8924b0b88a122ca852aaaf3a7 commit: 48d6946f757c20e9fabf2ee152b19b9dd87b6466 Author: Michał Górny gentoo org> AuthorDate: Thu Sep 11 17:09:13 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Sep 12 03:34:07 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48d6946f sys-kernel/gentoo-kernel: Bump to 5.10.244 Signed-off-by: Michał Górny gentoo.org> sys-kernel/gentoo-kernel/Manifest | 1 + .../gentoo-kernel/gentoo-kernel-5.10.244.ebuild | 173 +++++++++++++++++++++ 2 files changed, 174 insertions(+) diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 2f75a00523df..c8110b5b3529 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -68,6 +68,7 @@ DIST patch-5.10.240.xz 6786568 BLAKE2B 1cb287b2c99bb403585cad3500a2de0819db40ea6 DIST patch-5.10.241.xz 6872048 BLAKE2B 1dd77efa0df0b6e6bda4988abc8ebc9327c24c28bfc857348832afd2da478873e4adb00058fd99d57aa702130bb62c413404b3991b47ff54e541f4406ff0c78e SHA512 fed09611a6dde5ca3f90b37e31e765a54f5c5ef90cc5b2b44594df583573ca1b15b2b4586f154c90ca0e1fc3ec81eb994c99ce8bb53e28553479774378115e37 DIST patch-5.10.242.xz 6877380 BLAKE2B 9ff8a5d39a79c04787bf460d381cc168b9924e81363700bac35f8bdf32e0572bdf3c1411f1725363c29a2c0974927bd5e23f1b1ec95a0ef33b0cd201acadc1cb SHA512 2977c2a7e397928c267811cead5f0b37eb173746826d3437c950b23b38bdbec193b7331bc82388857baf919266df6999fcfca1253b3c6ac92b421f8e012b1be3 DIST patch-5.10.243.xz 6884080 BLAKE2B fcd41a791e7dfd284e467bf5e7466adaa0f53ee676ba59b9ff90f1969287c0768425babdbe6400724af3ce4c6be3fa09d555a16c1369873b297731c08286d42c SHA512 f405f4219834231a771e4eb8621e7196fea0961aae9c9c34c78a71375a6eb784ddd4754a66e4d2872d38f986e55ffa9097cf21834ac68f0a16699537a8f76395 +DIST patch-5.10.244.xz 6886012 BLAKE2B 4472ca1171fa697c4e9de7835b82e670b22e2b8f12c3f8b2b4197321ae468d333691fda1c36ee480d2781a62229ce8adc394fbea53d1420cd823c9383739149a SHA512 64d02ae7401effc89e906a1d0e54293af14ad7895d55b39424d67ab98b79cdc12d197b01b95dcb6fd6d4010ae13d8e123e2dc725914dd010335fcf43a8724be9 DIST patch-5.15.189.xz 6955776 BLAKE2B bd2bf4ad70014395ffac8874434b2caae7823b1b9999231738552d9f23a53547533c248fdb7fc4b4bdd60dc05e8898a910e3e94e6f5edae7ae96a66937f387a2 SHA512 8ace7d82af676b101ed37c382c9833193ab487cbb15b8444b92ccf8239e2c62bfb70ef7342ef6f694d71e8ac72b7db445d544e4ad285d9bd977365350bf155d3 DIST patch-5.15.190.xz 7065672 BLAKE2B b71810c588e369be5eeaf6fb3673dd7ce9293f4eeedd5454a8fee80a67950480879294caf5d0a0a5fe2ce2d234501ccaada5cc727b9c3379db500a3b3c00925b SHA512 357a1acb00d28a32e55409a54953dbbc10fe7595c3ddf0595dbda52fefc37b3ec2e94a78db8435714569593a42085680f1577749053d5ad7af11b4302e7d16ec DIST patch-5.15.191.xz 7070404 BLAKE2B 30fd7d96c1cc2a7ad992b070845a9a46b3d06f0d4d9e08dcb9ef58997638c032c308a90a53abf7d818df0f12991e67b425c558dfa15aa1c8f069309bdf5fcd02 SHA512 6a9e05a940d414ad3403c943adde7bba977454ca86c2f3e398acf5d0496fc35e242c350c2ea9423690f92b352c6b7885ffe53aef30f81ac805a703459bf65cce diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.244.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.244.ebuild new file mode 100644 index 000000000000..7510f04086e3 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.244.ebuild @@ -0,0 +1,173 @@ +# Copyright 2020-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_MODULES_SIGN=1 + +inherit kernel-build toolchain-funcs verify-sig + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-5.10.241 +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=g17 +SHA256SUM_DATE=20250911 + +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/${BASE_P}.tar.xz + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz + https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.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/sha256sums.asc + -> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc + ) + 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}/${BASE_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug experimental hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +PDEPEND=" + >=virtual/dist-kernel-${PATCH_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 +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \ + sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz" + cd "${WORKDIR}" || die + fi + + default +} + +src_prepare() { + local patch + eapply "${WORKDIR}/patch-${PATCH_PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # when ! use experimental, stop applying after it + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] && + ! use experimental + then + break + fi + done + + default + + # add Gentoo patchset version + local extraversion=${PV#${PATCH_PV}} + sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | 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}/${BASE_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[@]}" +}