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 8ADDA15827B for ; Thu, 21 Aug 2025 04:09:45 +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 78632340F85 for ; Thu, 21 Aug 2025 04:09:45 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 9CBEF110568; Thu, 21 Aug 2025 04:09:29 +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 9159D110568 for ; Thu, 21 Aug 2025 04:09:29 +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 43E28340E58 for ; Thu, 21 Aug 2025 04:09:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D086934D4 for ; Thu, 21 Aug 2025 04:09:26 +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: <1755749312.4d857a88dcf74f8a007b75b31dec9a49f5d5cf5f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/gentoo-kernel-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/gentoo-kernel-bin/Manifest sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.12.43.ebuild X-VCS-Directories: sys-kernel/gentoo-kernel-bin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 4d857a88dcf74f8a007b75b31dec9a49f5d5cf5f X-VCS-Branch: master Date: Thu, 21 Aug 2025 04:09:26 +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: 4dfec158-e349-4915-a364-acc617188b81 X-Archives-Hash: cb0062730be28fcd168a51652c79cd7a commit: 4d857a88dcf74f8a007b75b31dec9a49f5d5cf5f Author: Michał Górny gentoo org> AuthorDate: Thu Aug 21 04:08:32 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Aug 21 04:08:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d857a88 sys-kernel/gentoo-kernel-bin: Bump to 6.12.43 Signed-off-by: Michał Górny gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 5 + .../gentoo-kernel-bin-6.12.43.ebuild | 224 +++++++++++++++++++++ 2 files changed, 229 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 13a5fd85e5cd..b7d9d8c14f59 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -22,6 +22,10 @@ DIST gentoo-kernel-6.12.42-1.amd64.gpkg.tar 306677760 BLAKE2B 17bd4df86e03b22068 DIST gentoo-kernel-6.12.42-1.arm64.gpkg.tar 279889920 BLAKE2B 68fcac8f63776525deb20c50bf141d3b2cb9dcae96a3c6974ef9b440674353157ec19998b56e3cfb6e19e1f049a8ee443109efd3a16c40887e2c79beb4d924ea SHA512 8ccfdc74875b45c30f37acd6d5dee413f760988621108ab24f4d2732be3c81d46da2d98ebe557d3167e12003a629e28646c199a414b801a05670a3c22699941f DIST gentoo-kernel-6.12.42-1.ppc64le.gpkg.tar 73308160 BLAKE2B 3058d100b50c05162a8a3fcf155a8587b355a0caa784d4e797c155818a144185ddc4127dfdff7b8e1a1914564f7b41e3fa22bd6c35cbb08d8611f77509936e13 SHA512 7ff700e418a907a39cc8c68d169c1b155bf1a21be48e66efba086d16438d5d3b5aaa63db710d2e866d18cfb63686a43ae1105e2d7e3fb0538d0ba5fc1da4b053 DIST gentoo-kernel-6.12.42-1.x86.gpkg.tar 77660160 BLAKE2B f52c05a8969a7cbd394a57e0c6588d123b8407ebee7c551cd2133430a86b2689169fcecb3326b217fe4ff7f43d31b5e0128b4856bcc21ea29fa5c493620fb898 SHA512 3c95c4b0d8d2dccf23a068412772955a63f3380aeca21a683a159341f640a89438e7d1fcb1f111415ca51ad7586b0a051f3263e0e15b087cd42407a7d8ad8490 +DIST gentoo-kernel-6.12.43-1.amd64.gpkg.tar 306708480 BLAKE2B 00427dc921d1842a65223641a0a6980ad3c03b94edb7deac2e50c2f9cfe1d0ac82ab4074f648c71cdd5cb812af20a09060e1b61dbdc8ec1888ecab1af23adb02 SHA512 1a263504819396f814f56a5fa72f777559fb61e242a52da0913d5b9ac2cf86654666e7536e9d70895d79dc093ef976124dc07ca9388281a57a2014958e56d52d +DIST gentoo-kernel-6.12.43-1.arm64.gpkg.tar 279951360 BLAKE2B bfa47f258f92189f760d517236f1e3fdb0ac3a3cc3b06a3dbfb012b4f8af18163b9dc5ba36419b6601d26fd6b7cbb51e61b7a6b56f16d310d0d9c79e15871653 SHA512 9db80544bb4faeae9d22ce8d523da65b39408f1d2398ba8d2e6829e1e159336f42953b905599e8f2c863c005778d7ceec9e69418fd0774ae16380fc7501f7fd6 +DIST gentoo-kernel-6.12.43-1.ppc64le.gpkg.tar 73338880 BLAKE2B edb269a26c937792aa4a784a716c1beaad49c27f375ef336a3724976beaf0ab5146155dc28be11ba7cbf8e963fcb4385ac5922d54a58a7a9eaa2d01efd333e10 SHA512 b21da4ae4dbea21f3bb29542d8588b8fe75f5e3f883e7603c4bca8892410f4528d166846ca68617f3ddca0fbc5268f4732d068d0b3e72b5751b8f1898e4154a3 +DIST gentoo-kernel-6.12.43-1.x86.gpkg.tar 77670400 BLAKE2B 69853e6764539f576e74bf4302f5fbbf80a43931780e6052107183d3752d0d2e99750bdc40aa20ecf944f3882101ad2ac58b36544008cf0ae275b5d3c412b1bd SHA512 b7a014e681504e58eb4cef27c357ad499a1ee4b5942d2c4776b6b3c3ce44abbf5eba47c8b2077f2b9de2a4a93643f8add4c11987da6e8b6a6262d80ad0bf51a2 DIST gentoo-kernel-6.15.10-1.amd64.gpkg.tar 327403520 BLAKE2B e9d3f012185e0e91eba27aaab4a830c5b26eaf7b011b0d2bc7dc7186c7280eda0d1e1a791037fbf9302cb7d968c2ef1ee1da4ee42215150f06f884f5720fae5f SHA512 92363c0802dc49181baa273c633c1fa8e0226792a94ef4b439bec187dcf333bd497c88293150cc44d8ffa04f690505d1a3d272f82bb237da48cf216cc405e34a DIST gentoo-kernel-6.15.10-1.arm64.gpkg.tar 290037760 BLAKE2B 94d75c0ab8654e6b2ad02938d6655136140dd83e3cf391ea651bfe5f1b5e2e55f7db45c0580805a948d0d376620afe4c808da6204259efb21e78488d5c03784a SHA512 122ed4dc86182357342dd58f1e097ddf25d4b910a474223f8e9a3fb3235c0dcdf8a24339e865d5a67082f1228a5d9e14c0da9a536404141e0ff890bf28bba931 DIST gentoo-kernel-6.15.10-1.ppc64le.gpkg.tar 75243520 BLAKE2B fec2b6ab3df40f79cc440e71eba9ec1b67283ff3c8ab8f25264ff12fd8d41485d50d8f5fed09be7303e555d9744227207b6a58e52a65bd49065d8247ef015052 SHA512 d039a2a6e4e11ac1264bb505aff784a22ef831fb993de1a454834ee08cfc705af99c81580564a662a56f0d66f2d4ffb855e84516cbb5cd2471a7afc91f536144 @@ -76,6 +80,7 @@ DIST patch-6.1.147.xz 6320180 BLAKE2B d109214e0682653ead5f62f5699d0bad2764bae176 DIST patch-6.1.148.xz 6365724 BLAKE2B 1f83c183389bbf4cedecaa22b49d6214d390f0cf92e3d7d7d56c00bbebacd55109f4886e667228ce038831207fb0b92f179303bc50acb85e36f40fda06cb2b79 SHA512 a0e0d1ede711c8a60c1dc2a260ef4d33866882952804418104c55f5f78f2ce69824c580cf48c92ffc5a74fdecbd6b9b74a739d9eb0bf7bdb36fab6a4456da0a6 DIST patch-6.12.41.xz 2584360 BLAKE2B 8cb7d77a45e79b186e24bc59be15d74f4e9ea4b7c7f7b5c81b82eaa9b1a8b88a7aabff6768471d905e24539366bdb85593304365726307e19bcfa41937764bf0 SHA512 b9307fafe443eb61b0edc624b2c9ab7a0206765eb614683e0f01d7f7fab04a729a91d92d67b8ace03208d6b63088ff235203e8fdfad27adc97cdbf7df872b3c2 DIST patch-6.12.42.xz 2666304 BLAKE2B 7e8cfcb30f98202d7cf9e152be9ff31bb013b358f12817bca1211816bc008171a1e0ebe09a3c67c3867f5b194dbf818ad4bd412509e6a44a25f944e16c0eedfe SHA512 8b31be7c22a413e13a7b68086ac7f326d4741c2ae21dbd2ba3d62fc1b04fd393861b2801dbfd48dcf5b84651bc271434521b5e07876bd97afceae01034a7c144 +DIST patch-6.12.43.xz 2759136 BLAKE2B a667414254b536de9d0158ceaf1e208241817352f237f914b2e6cb60091fa4db962d1d78b28d7131ffe967c293a06c97a056858b72d7710737d2c7f9fe1505a4 SHA512 44112176409936afbcd29690d4e097dc5a30052b9b6e8d91b293b51bcb5caca5e6f8fe998d3fd3bc9ed8f6ea36bcea05699a82a0bdd7f88e4a9a3907b6ae1d59 DIST patch-6.15.10.xz 851240 BLAKE2B c3397c8fe10b62ebe8e021864d456a1bec4eb52a0274e1c3fe365145191cbd39c2ca7cc6ab807b4df22936634fad67520dc978cc6df45a7a34e350e7a08ebb88 SHA512 4cb5a0848214b7cd76d587226efde3077c06359c0c8c1de50952b7f8282cb83195d477b46844ea0eaef039448f45fc1a07a331bac86efc6bae33cd4ff58bd9aa DIST patch-6.15.11.xz 1016776 BLAKE2B 365374a8ad9777f93453e4adaa84b5f3321caa541d876475ed4f30a8e728dd2e57d5d28b48d9138e835eb65cd64f03813d473389b9b79c6aa28239a3bc99fa06 SHA512 ce15c84d462d5b751bb8d535880116d28dce2151402835a8bdddfc5bb181c799e80a630022b49ea7d229e46002f3c4842c1361e007f560c56112421621e0df7b DIST patch-6.15.9.xz 730252 BLAKE2B 277dee1df9517f06060f1f20b9d6000b3ed6acc0805d0ed55acebab59e996190a8f5d819ede79b5268ebb76e0976a546dc5339a4cf72307fab12c900c3311159 SHA512 34572997debcfac374401783a95d87e7be8754b4f1f4a9f436435c18e75087c05325321d800a22c33f0c4ac379d3b8759095a2b7738807eb51656bdc49b5d382 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.12.43.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.12.43.ebuild new file mode 100644 index 000000000000..6c6427c6b155 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.12.43.ebuild @@ -0,0 +1,224 @@ +# 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-install toolchain-funcs unpacker verify-sig + +MY_P=linux-${PV%.*} +PATCHSET=linux-gentoo-patches-6.12.40 +BINPKG=${PF/-bin}-1 +SHA256SUM_DATE=20250820 + +DESCRIPTION="Pre-built Linux kernel 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://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz + https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz + 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://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + dev-util/pahole + virtual/libelf + app-alternatives/yacc + amd64? ( app-crypt/sbsigntools ) + arm64? ( app-crypt/sbsigntools ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +QA_PREBUILT='*' + +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 "${MY_P}.tar.xz patch-${PV}.xz" + cd "${WORKDIR}" || die + fi + + unpacker +} + +src_prepare() { + local patch + cd "${MY_P}" || die + eapply "${WORKDIR}/patch-${PV}" + for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do + eapply "${patch}" + # non-experimental patches always finish with Gentoo Kconfig + # we built -bins without them + if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] + then + break + fi + done + + default +} + +src_configure() { + # force ld.bfd if we can find it easily + local HOSTLD="$(tc-getBUILD_LD)" + if type -P "${HOSTLD}.bfd" &>/dev/null; then + HOSTLD+=.bfd + fi + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + tc-export_build_env + local makeargs=( + V=1 + WERROR=0 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTLD="${HOSTLD}" + HOSTAR="$(tc-getBUILD_AR)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP="$(tc-getSTRIP)" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + READELF="$(tc-getREADELF)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + + # If this is set it will have an effect on the name of the output + # image. Set this variable to track this setting. + if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then + KERNEL_EFI_ZBOOT=1 + elif use arm64 && use generic-uki; then + die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build" + fi + + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # We need to extract the plain image for the test phase + # and USE=-generic-uki. + kernel-install_extract_from_uki linux "${uki}" "${image}" + fi + + mkdir modprep || die + cp "${kernel_dir}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + kernel-install_test "${KPV}" \ + "${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + local rel_kernel_dir=/usr/src/linux-${KPV} + local kernel_dir="${BINPKG}/image${rel_kernel_dir}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # Keep the kernel image type we don't want out of install tree + # Replace back with placeholder + if use generic-uki; then + > "${image}" || die + else + > "${uki}" || die + fi + fi + + # Overwrite the identifier in the prebuilt package + echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die + + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d ${BINPKG}/image/boot/dtbs ]]; then + mv "${BINPKG}"/image/boot "${ED}"/ || die + fi + + # strip out-of-source build stuffs from modprep + # and then copy built files + find modprep -type f '(' \ + -name Makefile -o \ + -name '*.[ao]' -o \ + '(' -name '.*' -a -not -name '.config' ')' \ + ')' -delete || die + rm modprep/source || die + cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die + + # Update timestamps on all modules to ensure cleanup works correctly + # when switching USE=modules-compress. + find "${ED}/lib" -name '*.ko' -exec touch {} + || die + + # Modules were already stripped before signing + dostrip -x /lib/modules + kernel-install_compress_modules + + # Mirror the logic from kernel-build_src_install, for architectures + # where USE=debug is used. + if use ppc64; then + dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)" + elif use debug && { use amd64 || use arm64; }; then + dostrip -x "${rel_kernel_dir}/vmlinux" + dostrip -x "${rel_kernel_dir}/vmlinux.ctfa" + fi +}