[PATCH 0/5] sys-kernel/gentoo-kernel-modprep and kernel-install.eclass / dist-kernel-utils.eclass refactoring
Michał Górny <[email protected]> Fri, 29 May 2026 12:43:48 +0200
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Here's a series of patches to add a new sys-kernel/gentoo-kernel-modprep package. It provides the bare minimum subset of prebuilt kernel files (i.e. modules_prepare + Module.symvers et al.) that are needed to build kernel modules, therefore making them a useful time- and space-saver for AT containers (where kernel packages are currently blacklisted entirely, blocking module package stablereqs indefinitely). The part put up for review are the two refactoring eclass patches that move bits of kernel-install.eclass into dist-kernel-utils.eclass, making them reusable for the new packages. The sys-kernel/gentoo-kernel-modprep package is a "first approximation", subject to future changes. Notably, I'd like to replace the usage of kernel binary packages (meaning a ~300M download) with a small repacked distfile. -- Best regards, Michał Górny Michał Górny (5): dist-kernel-utils.eclass: Move symlink update functions here dist-kernel-utils.eclass: Split /lib symlink update logic sys-kernel/gentoo-kernel-modprep: New package, 7.0.10_p1 virtual/dist-kernel: Permit sys-kernel/gentoo-kernel-modprep virtual/linux-sources: Permit sys-kernel/gentoo-kernel-modprep eclass/dist-kernel-utils.eclass | 103 ++++++++++ eclass/kernel-install.eclass | 92 +-------- sys-kernel/gentoo-kernel-modprep/Manifest | 8 + .../gentoo-kernel-modprep-7.0.10_p1.ebuild | 185 ++++++++++++++++++ sys-kernel/gentoo-kernel-modprep/metadata.xml | 13 ++ .../dist-kernel/dist-kernel-7.0.10_p1.ebuild | 1 + .../linux-sources/linux-sources-3-r9.ebuild | 28 +++ 7 files changed, 340 insertions(+), 90 deletions(-) create mode 100644 sys-kernel/gentoo-kernel-modprep/Manifest create mode 100644 sys-kernel/gentoo-kernel-modprep/gentoo-kernel-modprep-7.0.10_p1.ebuild create mode 100644 sys-kernel/gentoo-kernel-modprep/metadata.xml create mode 100644 virtual/linux-sources/linux-sources-3-r9.ebuild