commit: c1ca01e03d328cd5637f6f4ceca8350ddb736a85
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 6 17:05:32 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 6 21:23:31 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1ca01e0
sys-kernel/gentoo-kernel: Bump to 6.18.9
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-kernel/gentoo-kernel/Manifest | 1 +
.../gentoo-kernel/gentoo-kernel-6.18.9.ebuild | 175 +++++++++++++++++++++
2 files changed, 176 insertions(+)
diff --git a/sys-kernel/gentoo-kernel/Manifest
b/sys-kernel/gentoo-kernel/Manifest
index 2ef7c598a87b..f2bd22f84a5a 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -70,6 +70,7 @@ DIST patch-6.18.5.xz 414548 BLAKE2B
50fe5af5616fb080d90111c9b10d7f24ffa40ea6bcd7
DIST patch-6.18.6.xz 465484 BLAKE2B
b7df26c8e524eacf89dfd34c92d572a0b36e0f6c6bbe3183d3cb909ef156487557337bd1e3780ce383966d06a9d2f640cf6ee4fc64750ff9c592a46fea010993
SHA512
ffc4711d98b639f1b43fbaeebb8f5c088218b263b178b03494522d3ef21898595fb961bb4202284d40aa42b3a8a38e365e3b610dd9ce86d19e19d9068e54609c
DIST patch-6.18.7.xz 515492 BLAKE2B
681e87a802952a892d24828e41e565b2c2bb23cb0ed0d91fac162a0a64a2542c50be87a0c6c05dbdb9be37cda4bb5193e49c2a2a6a916e091621ee8c4e85b0bf
SHA512
90fb319e2aa32c4b7d7070205ac7228139de96e7fb1bfdcb5ed9a48c85df739d80e043d31a4216a3a0561aaa80a6b4198bf2000d185a5850f36ef0aa31ed52c6
DIST patch-6.18.8.xz 571300 BLAKE2B
839d683fe10c1112d0dc6b71128b74e5de24bfc39f06b269845c7e2e74b4a5b05eb5bcb43104980354828af65c7b4af3c4b10c0ccbe2e6c6e398bf82b9462e0d
SHA512
7c75c98dcae76acfae4d5b566509392ff91906ca813260f55b0b6425ff2267080289d2d1d19be656db161e0718a3073d9dc53288b779158c006ac84cac8f9b57
+DIST patch-6.18.9.xz 603380 BLAKE2B
2296caebac3b92c0ed247229b1cd0f9d9d7cad6930b1a84a1cc4ff71567141a0a2e7e65d66c1df670df872961583afe13cfbad368a819d637d67d9e0b64aab65
SHA512
fd3822bec8e654b49d387eb94d9d4ca89c704d3ab52be2025c8c28e7cf648dc94cd9f1231227dd71abbc64ef1ace086aec7339691c4afd5234cba1e448ded9cc
DIST patch-6.6.119.xz 5306132 BLAKE2B
36172254639820d8853be83c2f98cf1e9923087b07bc939d0ff97dd8f3fa1af3ea1719f76aff619f6e7d8e493d7d2f059beac5127a644bc9e533a95b35c14759
SHA512
a4e8267769e719a30ca8d07a5c6f87b4856d55711eebde74170e8e1de4ef74be3ad69cbcb7d26bc7ae2e7a133755b7c2d1faede7e8389c29265358868238a29a
DIST patch-6.6.120.xz 5455104 BLAKE2B
0c6395ff0a859101789bd2d02d9ea5e29611c38bec75f575fc656248980b622f365fe1b48e90b2d3bbea27c584bcfc4dff4eba7a6a65666f600e324511790602
SHA512
ce62624edc873023769d23bf02b015aee84d9eb38830956b3738bbabeff3c741f2d046c2a5254674e57e10614a4209ba4f3586a995180951923798634bacb2b0
DIST patch-6.6.121.xz 5473968 BLAKE2B
85ff76a7141a541b09b247ab5c2a9fbc6649aec36d32a6bc8895f92485beb776d6067782e02e83cc9184d804c28d1b2bcabda29bba43c88c6e68cd86f09879da
SHA512
d0be05b21ac82d52557cc6925416a33889bf8524f31a713cb48bf1283d2b4fb212cf018dd92238acaf14ace9bcbd1d857efb8798337b659fe140ba37b002be2f
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.18.9.ebuild
b/sys-kernel/gentoo-kernel/gentoo-kernel-6.18.9.ebuild
new file mode 100644
index 000000000000..28b3b56d2722
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.18.9.ebuild
@@ -0,0 +1,175 @@
+# Copyright 2020-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KERNEL_IUSE_GENERIC_UKI=1
+
+inherit kernel-build toolchain-funcs verify-sig
+
+BASE_P=linux-${PV%.*}
+PATCH_PV=${PV%_p*}
+PATCHSET=linux-gentoo-patches-6.18.4
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
+CONFIG_VER=6.18.3-gentoo
+GENTOO_CONFIG_VER=g18
+SHA256SUM_DATE=20260206
+
+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://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}
+ )
+ riscv? (
+
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
+ -> kernel-riscv64-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}/${BASE_P}
+
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="debug 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-${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}"
+ eapply "${WORKDIR}/${PATCHSET}"
+
+ 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
"${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
+ ;;
+ riscv)
+ cp
"${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ 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"
+ "${dist_conf_path}/zboot.config"
+ )
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}