diff --git a/sys-kernel/gentoo-cjk-kernel/Manifest b/sys-kernel/gentoo-cjk-kernel/Manifest index d4500a4017..8fb03b48e9 100644 --- a/sys-kernel/gentoo-cjk-kernel/Manifest +++ b/sys-kernel/gentoo-cjk-kernel/Manifest @@ -27,6 +27,7 @@ DIST linux-gentoo-patches-6.12.97.tar.xz 17192 BLAKE2B e0f09dd8ef2e6ebce9adcc2c0 DIST linux-gentoo-patches-6.18.42.tar.xz 10856 BLAKE2B 8d9de53163c26980f2097eac090f8add2f0f22707824c25493d24d53cc82ef5bc24dcbc7e1e324010315bd3cd05cf2abdd36c536f1457b311cc5208a1a49575d SHA512 01f3020aa34f0ee29c37473344f6dfe0180a12d20834f9c935575b98092b1c6ddd6c563aaef9e4ce6f14116e5d7386d2203f120d1c680ff617f581c867d4544c DIST linux-gentoo-patches-7.1.9.tar.xz 10624 BLAKE2B 4b502aed968239f52321da548b257b2a06d4e3cf520090d7aa53dbbf77ef5cc9e64d1bb209389f1c51e48c5953666470186aaaa55db378cb34940ce492693271 SHA512 1d2d466b005cc7537aad1e8222411dad8a86bb82c185f139a6972f8354b47f758fb8555ef04b2217cd082db5b1852ba00b5a5eb0673a57c6423dacbe606c7d39 DIST patch-6.12.109.xz 5753324 BLAKE2B 9ddaebf8cb9e93e79ccf02efd4e65e8892ff751e3e660f00f8032c42ac275d72ba4aac1d61b8f628a52c064a5bc54c34d05a9510b6a9c9d90f79097c4f7e41c8 SHA512 bede54fa2db04d3bcb4b1e30369a897135a8fa6637b339a94e21cd6e198f1404109bb52626bdb3f88406e002c6f4430de8e05fc20bfeec37bc4ef434120e707f +DIST patch-6.12.110.xz 6085060 BLAKE2B 8d1d7ad14511974f9c3508a34b3fe77284278a0b89b0cc94bd256a7d12b00c4581b49a4fc9ae3bf5b4aa67b5b76b088a9c29a1701ea9a6aa88f5bc76d4268d74 SHA512 b431836ce3b6b42b0c1ed810db6c839bb3fc7bb66b014d1a89408e0fe6d441da24e40d50d83be64e1992dd432dd7e245dafa632302892dedc46919caae354067 DIST patch-6.18.51.xz 3545252 BLAKE2B 1636bb5b2dfab15f9bafeb215f925acdb5c7df0fc544d7787ffbe76cd1efcaff7cb99d925e39997e7cff37266192dd07ad3d7de3a8a845a907de9d5cf72b2dcc SHA512 c5022b7b718093b791237599a00565bf37f7e6d256e136c88ddc9508163cea5993bb22cfbbf928c3604e12ecb76d7e2ce814a3634d5a65e7c84825eb4e773f9d DIST patch-6.18.52.xz 3996672 BLAKE2B 97ef23b4b70a2e02c1d6c2fa2b4b1c895743802007f2ac6ceb8df086c9b9fac1cff9b80c210761775de5d17012ea8c9ff9c7c3bc1561f087b92f623ec3302c8a SHA512 f1c32303a8eb7f20c7f5c8d592a23140ff880075d0e4151bf96d5b0365ff64b35324753894d8ba822ad797e673b2a878f18d6a2f557dd6d3aca1fcc8d4e5764d DIST patch-7.1.13.xz 1427684 BLAKE2B 6c80c845eee5e6b231aab8b3675eb25dee0a1257b1138501634af31d4aead57102794d155dc012498b424e523d6a472e3ca7aead4a7573aaa4e30ef1e27f7784 SHA512 b858b8594d0bb2b401a947d1c3bd3d25e4d2c07b6e07b5585a8fd84011fbca4c23f3f0424dd74a338358dc42aa53eef2d88205e1b4ddcdc8abe382b922f8d461 diff --git a/sys-kernel/gentoo-cjk-kernel/gentoo-cjk-kernel-6.12.110.ebuild b/sys-kernel/gentoo-cjk-kernel/gentoo-cjk-kernel-6.12.110.ebuild new file mode 100644 index 0000000000..d19ffc5a80 --- /dev/null +++ b/sys-kernel/gentoo-cjk-kernel/gentoo-cjk-kernel-6.12.110.ebuild @@ -0,0 +1,174 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 +CJKTTY_PV="6.12.104" + +inherit kernel-build toolchain-funcs verify-sig cjktty + +BASE_P=linux-${PV%.*} +PATCH_PV=${PV%_p*} +PATCHSET=linux-gentoo-patches-6.12.97 +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to git.gentoo.org:fork/fedora/kernel +CONFIG_VER=6.12.41-gentoo +GENTOO_CONFIG_P=gentoo-kernel-config-g19 +SHA256SUM_DATE=20260914 +DESCRIPTION="Distribution kernel with the cjktty patch for CJK text on the console" +HOMEPAGE=" + https://github.com/gentoo-zh/cjktty-patches + 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://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.tar.xz + https://gitweb.gentoo.org/proj/dist-kernel/gentoo-kernel-config.git/snapshot/${GENTOO_CONFIG_P}.tar.bz2 + https://gitweb.gentoo.org/fork/fedora/kernel.git/snapshot/kernel-${CONFIG_VER}.tar.bz2 + 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 + ) +" +S=${WORKDIR}/${BASE_P} + +KEYWORDS="~amd64" +IUSE+=" +cjk debug hardened" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 ) +" +PDEPEND=" + =virtual/dist-kernel-${PV}-r100 +" + +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}" + eapply "${WORKDIR}/${PATCHSET}" + cjktty_apply_patches + + 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 | loong | sparc) + > .config || die + ;; + amd64) + cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-x86_64-fedora.config" .config || die + ;; + arm64) + cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-aarch64-fedora.config" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "arch/powerpc/configs/pmac32_defconfig" .config || die + ;; + ppc64) + cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-ppc64le-fedora.config" .config || die + biendian=true + ;; + riscv) + cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-riscv64-fedora.config" .config || die + ;; + x86) + cp "${WORKDIR}/kernel-${CONFIG_VER}/kernel-i686-fedora.config" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local myversion="-gentoo-dist" + use cjk && myversion="-gentoo-cjk-dist" + use hardened && myversion+="-hardened" + echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die + local dist_conf_path="${WORKDIR}/${GENTOO_CONFIG_P}" + + local merge_configs=( + "${T}"/version.config + "${dist_conf_path}"/base.config + "${dist_conf_path}"/6.12+.config + ) + if use cjk; then + local cjk32_config='# CONFIG_FONT_CJK_32x32 is not set' + use cjk32 && cjk32_config='CONFIG_FONT_CJK_32x32=y' + cat > "${T}"/cjk.config <<-EOF || die + CONFIG_FONTS=y + CONFIG_FONT_CJK_16x16=y + ${cjk32_config} + EOF + merge_configs+=( "${T}"/cjk.config ) + fi + 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" + "${dist_conf_path}/zboot.config" + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} + +pkg_setup() { + ewarn "" + ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." + ewarn "Do *not* open bugs in Gentoo's bugzilla. Report problems to" + ewarn "https://github.com/gentoo-zh/overlay. Thank you." + ewarn "" + + kernel-build_pkg_setup +} + +pkg_postinst() { + kernel-build_pkg_postinst +} diff --git a/virtual/dist-kernel/dist-kernel-6.12.110-r100.ebuild b/virtual/dist-kernel/dist-kernel-6.12.110-r100.ebuild new file mode 100644 index 0000000000..1582c73b50 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.12.110-r100.ebuild @@ -0,0 +1,12 @@ +# Copyright 2021-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Virtual to depend on any Distribution Kernel" +SLOT="0/${PVR}" +KEYWORDS="~amd64" + +RDEPEND=" + ~sys-kernel/gentoo-cjk-kernel-${PV} +"