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>
2.6 KiB
2.6 KiB
New Packages
Read with: eclass-discovery.md before choosing an eclass; prebuilt-binaries.md for a prebuilt payload; desktop-integration.md for a desktop application; openrc-systemd.md for a service; kernels.md for a kernel package; pr-text.md before committing.
- Before drafting, search both trees for the project, former names, forks, and comparable packages. Identify fixed source, license, build system, runtime files, and tested arches.
- Base a
::gentoofork on its current ebuild, preserving explanatory comments and justifying every difference. Keep patches, USE flags, and workarounds aligned with what the current main-tree ebuild retains. - Follow precedent for metadata order, dependency layout, phases, and eclasses; a main-tree sibling is closest for multi-package upstreams.
- Apply
kernels.mdfor dist-kernel virtuals, provider order, commit grouping, and publication sequence. - Add every new package to
.github/workflows/overlay.tomlin the same PR, sorted bycategory/package. - Trackable releases get an active
["category/package"]table. Live-only or externally synced packages get a commented#["category/package"]block with the reason;acct-*,virtual, andapp-alternativesget commented entries without a reason. - For tag repositories mixing packages or version schemes, use
use_max_tag = trueand a package-specificinclude_regex, as inapp-editors/xed. - Set
use_latest_release = truefor releases oruse_latest_tag = truefor tags only;prefix = "v"strips upstream's tag prefix from ebuild versions.github_account = "<GitHub login>"identifies the packager receiving nvchecker issues.autobump = truerequires opt-in and a rename-plus-Manifest bump; resolve a preceding# autobump off:reason before enabling it. - For per-version
gentoo-zh/gentoo-depsbundles, setdeps = "<LANG>"withvendordir,workdir, ormodulesas needed. Forgentoo-zh-drafts, use the fullbundleform. Set these when introducing such downloads on bumps too;scripts/autobump.mddefines both forms for future bundle preparation. Go vendor bundles unpack to${P}/vendor/so go-module finds${S}/vendor; top-level./vendor/is a layout error. - Add
files/assets only when phases cannot generate them cleanly. - Check version overlap with
::gentoobefore masking. This overlay'sprofiles/package.maskis repository-scoped, so masking a shared version selects the main-tree copy. - Stop for unclear licensing/redistribution, downloads requiring credentials or click-through terms, ambiguous names/categories, or substantial patching/vendoring needing a maintainer decision.