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>
gentoo-zh
Overlay for Gentoo Users.
gentoo-zh is an inclusive overlay.
Note
gentoo-zh overlay has moved to https://github.com/gentoo-zh/overlay. Old GitHub URLs continue to redirect. If you manually configured a remote, update it when convenient. See MIGRATION.md for details.
Community
For anything about the overlay, GitHub Issues is preferred.
How to add this overlay to Gentoo Linux
eselect repository enable gentoo-zh
emaint sync
Mirrors for mainland China and how to use the overlay: https://gentoozh.org/en/overlay
Distfiles and binary packages
Some packages come with distfiles and prebuilt binary packages, built nightly. Setup and mirrors: https://distfiles.gentoozh.org
Dependency table
https://github.com/gentoo-zh/overlay/blob/deps-table/relation.md
Contributions
DO NOT BREAK PEOPLE'S SYSTEM.
- Everyone is welcome to contribute, but committers should check their work carefully before committing.
- Every commit in a pull request must carry all the changes it needs; do not split a
change across commits without reason, e.g. an ebuild and its
Manifestbelong in the same commit. - Every ebuild change must compile before committing.
LICENSEmust match what upstream actually grants. When the license is not in::gentoo, add its full text underlicenses/, put it in the matching group inprofiles/license_groups, and setRESTRICTfrom its redistribution terms.- Every package must be added to
.github/workflows/overlay.toml, inserted in alphabetical order bycategory/package. If it can be bumped automatically, see scripts/autobump.md. - If a package is not suitable for nvchecker to check for new versions, add a comment
in that position explaining why;
acct-*andvirtualpackages are commented too. - Run
pkgcheck scan --commits --netlocally before you open a pull request. - After opening the pull request, fix whatever the pkgcheck report and CI flag, QA warnings included.
- Use
~archkeywords only, never stable keywords. - CI builds on amd64 and arm64. If a problem shows up on an arch you do not have and you cannot solve it, remove that keyword.
- Keep maintaining the packages you add, and use the pull request template.
- When you stop maintaining a package, look for a new maintainer in the issues, or
mask it in
profiles/package.maskand drop it when the mask expires.
Commit messages
We recommend generating them with pkgdev commit. Version bump:
$category/$package: add $new_version, drop $old_version
Anything else:
$category/$package: one line short description message
multiple lines of description about why you change this.
if you change to fix the bug, and if there is an GitHub
issue entry for that bug, then point the bug link here.
AI policy
Generative AI may assist, but it must follow AGENTS.md and the contributor is responsible for every commit: ensure the quality of the ebuild and verify that it works, smoke-test it before submitting, and keep the pull request description short, precise and professional, written from tested results, not guesses. The contributor, submitter, and commit author must be a human, not an AI tool or model identity.
Step-by-step packaging, bump and review procedures for agents live in
gentoo-zh/skills; install them with
npx skills add gentoo-zh/skills -g. They apply AGENTS.md and add no rules of
their own.