AGENTS.md is read on every task, so it keeps routing, the hard stops, the install and keyword gates and the completion report, and drops to 514 words; all rule files together drop from 7546 to 5783 words. Rules state the result to reach, and keep a prohibition only where a mistake is hard to undo or a reviewer has caught it before. Lessons from reviewed PRs: PATCHES carried over a bump, Go -ldflags without -s or -w, RUST_MIN_VER from the highest rust-version, cargo QA_FLAGS_IGNORED, ISA gating through cpu_flags, Python Requires-Dist, draft PRs for eclass provider slots missing from ::gentoo, skel.ebuild variable order, DependencyMissingKeywords, and the Go vendor layout. The PR template asks for the reason, a Tested: line and two checks, and names the merge-base scan range so it is not read as a bare --commits. Signed-off-by: Zakk <zakk@gentoozh.org>
4.4 KiB
4.4 KiB
Kernel Packages
Read with: version-bumps.md for release, source-host, and retention policy; new-packages.md for tracking entries; prebuilt-binaries.md for -kernel-bin; pr-text.md before committing.
The seven kernel packages below inherit cjktty, carry CJKTTY_PV, and share its live patch bytes. gentoo-cjk-* are source, self-built, and prebuilt dist-kernel forms; CachyOS, XanMod, and Liquorix provide downstream sources; xanmod-kernel builds a dist-kernel from XanMod patches.
- Follow each package's upstream:
gentoo-cjk-*uses::gentoo'sgentoo-kernel/gentoo-sourceson existing overlay branches;cachyos-sourcesuses CachyOS,xanmod-*XanMod, andliquorix-sourcesLiquorix. Choose that upstream's newest release on the branch. CJKTTY_PVis the applied patch filename's version suffix; update it when the patch changes, including within a branch.- On point releases, derive touched paths from the cjktty patch and intersect them with upstream's incremental
.../incr/patch-A-B.xz. Reuse the patch andCJKTTY_PVonly for an empty intersection. cjktty.eclassfetches rawcjktty-patchesmasterbytes. A change stales every referencing Manifest: regenerate them together after verifying cached distfiles equal currentmaster.pkgdev manifestrehashes the distdir copy, and mirrors can cache old bytes.- Pin downstream bytes: CachyOS patch/config/rebase inputs by commit, XanMod SourceForge
patch-<ver>-xanmod<N>.xz, and Liquorix zen-kernelv<ver>-lqx<N>.patch.xz. Applyversion-bumps.mdsource-host policy. - For
-bingpkg Manifests, use a real download and verify each size against HTTPcontent-length; never paste a hash from elsewhere; applyqa.md§ Manifest. - Because gpkg follows the source build, land source, kernel, and virtual first with only the source provider listed. Add published
-binand its virtual entry in a second PR. A one-point-release lag is expected retention. - Each new dist-kernel appears in that version's
virtual/dist-kernel-*-r100||list; create the virtual for new versions. Otherwise Portage can satisfyPDEPENDby installing a second kernel. List only published providers, in order:-bin, source, then other providers such asxanmod-kernel. - One version's source, binary, and virtual land in one commit because their mutual references must resolve for pkgcheck.
- Match the model below for new kernels:
kernel-2+cjkttyfor-sources,kernel-buildfor self-built dist-kernels,kernel-installfor-bin. Add a table row and tracking entry pernew-packages.md; apply the virtual-provider rule above. - Personal Gentoo mirrors (
dev.gentoo.org/~<dev>) may lagdistfiles.gentoo.orgfor new genpatches; verify the primary mirror before acting onDeadUrl.
What each bump checks
Copy variable values from the same-version upstream ebuild or release on every bump; PATCHSET can lag its branch. The final column changes only with upstream's scheme.
| Package | Check against the same version of | Variables | Fixed by design |
|---|---|---|---|
gentoo-cjk-sources |
gentoo-sources |
K_GENPATCHES_VER, K_WANT_GENPATCHES, CJKTTY_PV |
the all-arch KEYWORDS |
gentoo-cjk-kernel |
gentoo-kernel |
PATCHSET, CONFIG_VER, GENTOO_CONFIG_P, SHA256SUM_DATE, DEBIAN_COMMIT, CJKTTY_PV |
|
gentoo-cjk-kernel-bin |
gentoo-kernel-bin; gpkg on distfiles.gentoozh.org/gentoo-cjk-kernel/amd64/<major.minor>/ |
PATCHSET, SHA256SUM_DATE, CJKTTY_PV; gpkg checks above |
|
cachyos-sources |
CachyOS repositories; gentoo-sources for genpatches |
CACHYOS_PATCHES_COMMIT, CACHYOS_CONFIGS_COMMIT, CACHYOS_PR, ZFS_COMMIT, K_GENPATCHES_VER, CJKTTY_PV; the version path embedded in the rebase URI |
UNIPATCH_EXCLUDE, K_NO_VERSION_CHECK |
xanmod-sources |
XanMod on SourceForge; gentoo-sources for genpatches |
K_GENPATCHES_VER, CJKTTY_PV, XANMOD_VERSION (the spin number in patch-<PV>-xanmod<N>.xz) |
|
xanmod-kernel |
gentoo-kernel on the same branch; XanMod on SourceForge |
PATCHSET, CJKTTY_PV, XV (the XanMod spin number), LLVM_COMPAT when upstream's clang support changed; the matching virtual/dist-kernel entry |
|
liquorix-sources |
zen-kernel releases; gentoo-sources for genpatches |
K_GENPATCHES_VER, K_WANT_GENPATCHES, CJKTTY_PV, the lqx<N> suffix in SRC_URI and UNIPATCH_LIST_DEFAULT |
K_NOSETEXTRAVERSION, K_EXP_GENPATCHES_NOUSE |