31 KiB
Repository Guidelines
Reload this file at the start of a work item, and again whenever the conversation has grown long or context was trimmed, so its rules stay in force.
This repository is a Gentoo overlay fork. Use skills and official Gentoo sources for generic ebuild knowledge; keep repository policy and non-obvious correctness gates here.
These rules are the default, not a veto. An explicit instruction from the human directing the work overrides them for that item: carry it out and record the deviation.
Stop only where this file says to, or where continuing would discard work or publish something unreviewed.
Prefer the package and its history, a genuinely comparable current package, eclass and upstream source, then official Gentoo documentation and gentoo.git.
Never substitute memory or superficial similarity for evidence.
Repository Layout
Packages live under category/package/ with ebuilds, metadata.xml, optional Manifest, and optional files/.
Repository metadata is under metadata/, profiles/, and repo.xml. CI is under .github/.
Git Workflow
Every repository modification is PR-bound unless the current request explicitly says otherwise. Read-only inspection is exempt.
Complete preflight before the first edit, and repeat it only if the state is no longer known.
Treat master only as an upstream-sync branch.
-
Start with
git status --short --branch. -
Use one topic branch per logical PR. Create new work from local
masterfreshly synced with<canonical>/master; prefercategory-package-versionfor bumps. -
When resuming, reuse the correct topic branch.
-
Before preparing a PR, fetch the canonical remote and rebase the topic branch onto
<canonical>/master. A stale base makes GitHub report the PR out of date. -
Re-fetch the canonical remote before stating that a commit or PR is merged, and before basing follow-up work on it. A stale ref reports the opposite.
-
Compare and open against
<canonical>/master, never the personal fork'smaster. The fork lags and inflates the diff with unrelated commits. -
One bump or one fix is one PR.
-
Packages share a PR only when they must land together: one dependency chain, a coordinated bump, or a fix that spans them. A batch of unrelated bumps never does.
-
Never split an ebuild from its
Manifest. -
When fresh state is needed, find an existing remote for one of these, matching the GitHub owner and repository case-insensitively.
git@github.com:gentoo-zh/overlay.git https://github.com/gentoo-zh/overlay.git git@github.com:microcai/gentoo-zh.git https://github.com/microcai/gentoo-zh.git -
Support both fork clones (
originis personal) and direct clones (originis canonical). Use the existing canonical remote, whatever its name is. -
If neither remote exists, add
upstreamashttps://github.com/gentoo-zh/overlay.git. -
Fetch the canonical remote before using its state, and ensure
<canonical>/HEADresolves; rungit remote set-head <canonical> masterif it does not. -
pkgcheck's git checks depend on that head independently of any explicit commit range.
-
If the fetch fails, stop and report the current URL and error; do not rewrite or bypass it.
-
Push only topic branches to an unambiguous personal fork, never
masteror the canonical remote. Use--force-with-leaseafter a rebase. -
A missing or ambiguous personal fork blocks publishing, not local editing.
-
Preserve unrelated changes; never overwrite, revert, stage, or commit them.
-
For non-ebuild changes, check
.github/workflows/emerge-on-pr.ymlignore_listso paths are not interpreted as package atoms. -
Stop before editing if any of these holds:
- The canonical remote is ambiguous.
- A required
mastersync fails. - A branch cannot be created safely.
- Unrelated changes make staging ambiguous.
- The request spans unrelated PRs.
Ebuild Policy
- Install every changed ebuild cleanly; a compile alone is insufficient, and emerge-on-PR fails on every Portage
qa,warn, orerrorelog. - Where the environment cannot run a real merge, such as an unprivileged sandbox that cannot chown to the portage group, record the install as skipped.
- The amd64 emerge-on-PR CI merges after the push. It covers amd64 only, leaves other
KEYWORDSunverified, and does not equal a local clean install. - Build every newly added
KEYWORDSarch of a source package; never keyword one you did not build. A prebuilt package follows the arm64 exception under Bundled and Prebuilt Binaries. - Carrying the prior version's keywords forward is retention—do not narrow them to the one arch you built.
- For an arch-independent package, keep the inherited keywords and note the arches you did not verify in the completion report; use
~arch. - When removing an arch, update affected reverse dependencies and virtual/meta packages in the same change.
- A virtual's keywords cannot exceed its providers'.
pkgcheck PotentialStableis informational. - Preserve package-local style and user/toolchain flags. Keep patches and refactors narrow; remove forced optimization, hardening, LTO, stripping, and blanket
-Werror. - For non-trivial work, use precedent matching the source or prebuilt model, build system, eclass stack, and runtime layout. Re-verify it against the current release.
- Before writing the fix, find how
::gentooor this overlay already solves the same problem and take that form. A construct with no precedent in either tree needs a stated reason. - Keep release and
9999behavior distinct. Port applicable dependency, QA, EAPI, and phase fixes to the live ebuild. - A live ebuild must sort above every release the package has.
9999is lower than a date version, so a package versioned20240203needs99999999; confirm withvercmpbefore naming the file. - Every
${FILESDIR}reference must name a committed file. - If
PATCHEScoexists with a customsrc_prepare, calldefaultor apply the patches explicitly.eapply_useralone does not applyPATCHES. - Keep global scope metadata-invariant and side-effect-free. Do not run external programs, emit uncaptured output, modify system state, or depend on system, profile, repository, or phase data.
- Do not use pipes, process substitution, heredocs, or herestrings there. Bash may back the latter two with temporary files that the metadata sandbox forbids.
- Deterministic package-manager helpers and pure shell expansion are valid in global scope. Put work requiring declared build context in phases.
- Declare external build and test inputs through
SRC_URI/Manifestor an eclass vendor mechanism. Enforce offline operation without warm caches. - Each USE state must control every applicable option, dependency, source selection, and install cleanup consistently. Disable automagic.
- Prune only what
src_installwould otherwise install. Deleting a path it never reaches is dead code, as is a branch that only removes files that USE state does not install. ${ED}and${D}already carry the offset; never append${EPREFIX}. Use a bare${EPREFIX}only in installed content read at runtime, and only where that consumer runs under Prefix.- Verify package and bundled-component licenses, Gentoo license names, and redistribution terms; they determine
RESTRICT=mirrororbindist. - A license absent from
::gentooneeds its full text inlicenses/, an entry in the matchingprofiles/license_groupsgroup, andRESTRICTset from its own distribution terms. - A backport records its upstream commit, PR, or bug URL and applicable and tested versions.
- A security fix covers every still-keyworded vulnerable branch and relevant sibling or fork. Revbump when installed content or behavior changes.
- A package move updates
profiles/updatesatomically with every affected reference.
Version Bumps
- Compare existing ebuilds and history with upstream notes and build metadata for dependency, toolchain, option, license, layout, and installed-file changes.
- The
go.modgodirective andCargo.tomlrust-versionare real minimum versions, and no eclass reads them for you. - When one exceeds what the profile toolchain guarantees, raise the matching
>=dev-lang/goBDEPENDorRUST_MIN_VER. - If the raised floor is not yet in the tree, hand over the compare link stating the PR must be opened as a draft.
- Cite the upstream
go.modand the tree state on packages.gentoo.org, for example>=dev-lang/go-1.26.5while the tree has 1.26.4. - The
go.modtoolchainline is only a suggestion underGOTOOLCHAIN=localand sets no floor. - Re-check patches and assets. Update the ebuild,
SRC_URI, version variables, checksums, andManifesttogether; stop when required evidence is unavailable. - When a bump exposes a defect, fix it in the existing ebuild and change only what the new release invalidates. Rewrite it only when the release leaves it unusable, and say what made it so.
- Normalize the ebuild version by Gentoo rules. Preserve the literal upstream tag through
MY_PVor an equivalent variable when needed. - Tracker output is only a hint: verify the real tag, artifact, and URL.
-rNis a Gentoo revision; never derive upstream tags or filenames from${PVR}or${PF}. - Never guess
RDEPEND,IUSE, pins, generated dependency sets, build options, or vendor artifacts merely to obtain a green build. - A versioned deps/vendor/crates/
node_modulesartifact must already exist for the new version, or the fetch 404s. - That artifact is often not upstream but in an overlay or contributor repo: commonly
gentoo-zh-drafts/<PN>, sometimesgentoo-zh/gentoo-depsor a contributor's repo. - Reuse the exact host and naming the existing
SRC_URIuses; do not assume upstream, invent a host, or switch repos on your own. Change host only under a verified, maintainer-directed migration. - Cross-check a large distfile's size against its source, so a truncated download cannot produce a plausible but invalid
Manifest. - When upstream moves, update
HOMEPAGE,metadata.xmlremote-id, and version-tracking URLs to the current project. - Keep
SRC_URIon the real artifact, and provenance variables on the repository that produced that release. - For an in-place tarball replacement, verify provenance, contents, tag or commit, signatures, and licenses. Use a distinct distfile name and revbump.
- Remove or update only state made obsolete when a version, implementation, USE flag, provider, or package name is removed.
- Scope cleanup to affected ebuild conditionals, assets, metadata and profile entries, reverse-dependency references, and live or twin variants.
- Preserve everything required by surviving ebuilds or providers.
Keeping Old Versions
A bump replaces the version it supersedes—add NEW, drop OLD. Retention is the exception and needs one of the reasons below.
- Keep the prior version across a major version jump, large rewrite, or build-system migration, even for a
-binpackage and even when history rolls the latest. Drop it once the new branch has held. - Keep any version a reverse-dependency pin,
SLOT, or profile entry still resolves against. Check the overlay and the main tree perSLOTand per retained arch before dropping. - Keep a version whose replacement is unverified: an arch upstream skipped this release, or a security fix not yet on every keyworded branch.
- Otherwise drop. A package with no cross-version state, no reverse dependencies, and nothing worth downgrading to keeps exactly one version. Being prebuilt is not a reason to keep the old one.
- Follow the package's own history where it shows an explicit pattern; otherwise apply the rules above and state the choice. Never keep a version merely because the previous commit did.
- Stop for direction when an old version loses its immutable source bytes, or when a replacement in place is unexplained.
keep_old = Nin.github/workflows/overlay.tomlapplies the same policy to autobump: set it only for a package meeting a reason above, and remove it when the reason lapses.
Dependencies and Revisions
- Every atom traces to evidence here: a linked SONAME, a build-file
dependency(),find_package, orpkg-configcall, adlopened library, or a program a phase runs. - Another distro's control file is not evidence.
- Do not declare what the environment provides:
@systemmembers, tools an inherited eclass pulls in, or a compiler or libc floor the profile guarantees. - One atom per package: fold the version bound,
SLOT, and USE constraints into a single entry. - Carry the build system's own version floors into the atom, and do not invent floors it does not state. Add an upper bound only for a verified incompatibility with no available fix.
- Before adding a slot operator (
:=or:slot=), check that the provider declares a subslot. Without one it bindsslot/slot, so consumers rebuild when the slot changes but never on an ABI break inside it. - Revbump when a Gentoo-side change can alter an existing installation or runtime dependency decision.
- That includes installed output or behavior, runtime dependencies, subslot binding, and default USE changes.
- Also revbump for an affected non-free or soon-to-be-removed license and for a non-trivial EAPI change.
- Skip the revbump when a descriptive, copyright, keyword, message, test, build-failure, or build-dependency-relaxation change cannot leave an installed result wrong.
- In EAPI 8+, put host tools that must execute while the package is merged, such as post-install cache generators, in
IDEPEND. - For a verified direct ABI consumer, put
:=or:slot=on everyDEPENDorRDEPENDatom that models that linkage. Never copy it to transitive dependencies. - Identical prebuilt bytes cannot adapt to a new ABI. Constrain verified provider slots or versions instead of assuming a reinstall fixes them.
- Built slot operators are invalid in
PDEPENDand must stay outside|| ( ). Inside an any-of group, list only supported providers, preferred first. - Before adding or retaining any dependency or alternative provider, check removal entries in both this overlay's and the main Gentoo tree's
profiles/package.mask. - When a package is removed or renamed, update dependency atoms plus
elogandoptfeaturerecommendation strings. - A provider subslot represents an ABI that requires consumer rebuilds. Re-check SONAMEs, private-header ABI, and library renames on every bump.
- Never derive a sibling package version from
${PV}without verifying that it exists and resolves. - Never replace a
files/input still referenced by a surviving ebuild; give its replacement a version- or revision-specific name.
Bundled and Prebuilt Binaries
- For each upstream binary artifact, whitelist only shipped arches (for example
KEYWORDS="-* ~amd64 ~arm64") and use per-archSRC_URI. Do not keyword or reference unpublished artifacts. - Set
RESTRICTfrom verified stripping and redistribution needs;stripandsplitdebugare distinct. QA_PREBUILTsuppresses broad checks, including DT_NEEDED, executable-stack, textrel/W+X, flags, pre-stripped files, and SONAME.- Use
QA_PREBUILTonly for manually reviewed, immutable upstream blobs, scoped to exact installed paths.RESTRICT=strip, notQA_PREBUILT, prevents stripping. - Audit every installed object: ELF class and machine, interpreter,
NEEDED, SONAME, RPATH, installed path, required libc/libstdc++ symbol floors, and CPU ISA baseline. - Smoke-test amd64. If upstream ships an
arm64artifact for the same release, add~arm64untested. Record the unverified arch in the completion report and fix arch-specific problems on report. - Depend only on what blobs actually link or invoke.
- An unresolved
NEEDEDentry is a runtime defect even when QA is suppressed. Resolve it through a verified bundled layout or genuine systemRDEPEND; never suppress it. - A private module may legitimately lack SONAME, but every unusual RPATH needs object-specific justification.
- For source-built objects, fix the build, link, and install system first. Use
patchelfonly as an evidence-backed fallback and add it toBDEPEND. - A retained private blob may use a verified literal
'$ORIGIN/...'RPATH. - Replace a bundled component with a system one only after verifying ABI, functionality, and launcher or configuration integration; otherwise stop.
Desktop Integration
- A window gets a default icon when its Wayland
app_idor X11WM_CLASSmatches no installed desktop file's basename. - Measure that
app_idorWM_CLASSon a running instance; KWin reports it throughworkspace.windowList(). Then rename the file or addStartupWMClass. - Toolkits derive it differently: GTK3 sends
g_get_prgname(), not theGApplicationid, soorg.example.App.desktopstill reportsapp. --ozone-platform-hint=autoand--ozone-platform=waylandare not interchangeable, and either can be the one that fails. Before changing an ozone switch, launch both ways and check which platform the build took.- A bundled Chromium silently ignores switches its version predates; confirm each one exists in the shipped binary.
waylandis a desktop-profile default, so awayland?-guarded switch also reaches X11 users. Prefer a switch that resolves the platform at runtime over one that forces it.
New Packages
-
Before drafting, search this overlay and the main tree for the same project, former names, forks, and truly comparable packages.
-
Identify its fixed source artifact, license, build system, runtime files, and tested arches before drafting.
-
Take the shape from that precedent—metadata order, dependency layout, phase set, eclass stack. When upstream ships several packages, a sibling already in the main tree is the closest precedent.
-
Update
.github/workflows/overlay.tomlin the same PR for a new package tied to an independent upstream project, inserting the entry incategory/packagealphabetical order. -
A dist-kernel package added at a version must appear in that version's
virtual/dist-kernel-*-r100||list, and a new version needs that virtual created. -
Leaving it out makes Portage satisfy the
PDEPENDfrom a provider that is listed and install a second kernel. -
The virtual is its own commit and lands before the provider it lists, so
pkgcheckreportsNonexistentDepsagainst that commit alone until the next one adds the package. -
Add an active
["category/package"]table in.github/workflows/overlay.tomlwhen releases are trackable, otherwise a commented#["category/package"]block giving the reason: live-only, synced elsewhere, or a duplicate source/binary package. -
Packages with no independent upstream version (
virtual/*,acct-*, meta) need no entry. -
Add
files/assets only when phases cannot generate them cleanly. -
Stop when any of these holds:
- Licensing or redistribution is unclear.
- Downloads require credentials or click-through terms.
- Naming or category is ambiguous.
- Substantial patching or vendoring needs a maintainer decision.
Eclass Discovery
- Prefer the local main tree at
/var/db/repos/gentoowhen present. - Before inheriting, read each eclass's supported EAPIs, deprecation status, pre-inherit and call-time variables, exports, phases, and defaults.
- On an EAPI bump, re-audit the whole ebuild, including disabled USE branches, generated dependencies, dead helpers, and changed eclass defaults.
- Define phase composition explicitly when eclasses export the same phase.
- An override calls the eclass implementation when its documented behavior must remain.
defaultinvokes the EAPI default, not an eclass-exported phase. - Do not inherit an eclass for one helper when clear phase code and current precedent agree.
Code Style
- Keep code concise. Prefer clear naming, established helpers, direct control flow, and simple structure over explanatory comments or complex shell code.
- Implement logic near the relevant code rather than adding a separate script. Use functions only when they materially reduce local complexity or duplication.
- Keep comments only when they explain non-obvious intent, constraints, trade-offs, or workarounds that the code cannot express and a future maintainer needs to preserve.
- Do not add comments that restate eclass-documented variable assignments, configuration, declarations, option values, function calls, commands, or standard settings.
- Do not add comments to justify QA suppressions, including
QA_PREBUILTandQA_SONAME. - Preserve existing useful comments unless they are outdated or incorrect.
Commands and QA
- Before treating a finding as yours, read the package's history, the previous version's result, and the pkgcheck bot's report on the PR. A finding that predates your change is pre-existing, and the completion report says so.
- Iterate with the narrowest relevant package checks, and re-run the command exposing each failure.
- Do not repeat a check that already passed on the same tree: no rebuilding what already built clean, no rerunning a scan that already passed. A rebase or a new commit makes a previous commit scan stale, and this never excuses a gate the Ebuild Policy requires.
Manifest
- Run
pkgdev manifestwhen distfiles change. Pass--distdir <writable-dir>if the systemDISTDIRis not user-writable.
Scanning
-
Before the PR, complete required clean installs.
-
After those installs pass, scope the commit scan to this branch with an explicit merge-base range. A bare
--commitscompares against the fork's laggingoriginand drags in unrelated packages.pkgcheck scan --git-remote <canonical> --commits="$(git merge-base <canonical>/master HEAD)..HEAD" --net -
The range selects the targets.
--git-remotesets the canonical source for the commit-only checks. -
If cross-package noise still remains, confirm your own change with a package-scoped
pkgcheck scan <category>/<package> --net. That is ground truth, but does not replace the commit scan.
Tests
- Exercise every USE state affected by the change. Run upstream tests with
FEATURES=testwhere available. - Tests use the build tree, not an installed or system copy. Gate and declare test-only inputs, dependencies, and resources.
- Preserve the largest reliable subset and skip individual failures with reasons. Use
RESTRICT=testonly after proving no reliable subset can be retained, and record why. - Use conditional
PROPERTIES="test? ( test_network )"only withIUSE=test; otherwise usePROPERTIES="test_network".
QA notices
- That report names the commit and packages the bot scanned and the status; read it instead of guessing what CI saw.
- Fix genuine QA defects at the root cause.
- Retain only a documented false positive or unavoidable notice, with its rationale and remaining risk.
- Never rewrite working behavior merely to silence a checker.
Network results
- GitHub rate limits can cause false
DeadUrlorRedirectedUrlresults; re-verify flagged URLs. - A network result is evidence about your host only. An edge that returns 403 here may serve the same URL elsewhere, so re-check from a second network before calling a URL dead.
- CI's
pkgcheckruns without--net, so no network keyword fires there. - A dead
HOMEPAGEdoes not block installation. A dead overlaySRC_URIis unfetchable because overlay distfiles are not mirrored ondistfiles.gentoo.org.
Reviewing the change
- Review the staged diff and diffstat. Reject unrelated hunks, debug output, missing
files/assets, or unintendedManifestentries. - Verify patches, substitutions, generators, and manual or glob installs against the intended release source and final files, modes, and license notices—not command exit status alone.
Stopping
- Stop after at most three attempts, or after the same failure repeats twice. Report the failed phase and attempts before asking how to continue.
Writing
Use one standard for commit messages, PRs, comments, notes, and replies: precise, plain, and short.
- Name concrete variables, phases, USE flags,
FEATURES, eclasses, and commands, not a vague paraphrase or adjective. Use current Gentoo terminology. - Avoid colloquial wording, needless language mixing, unsupported absolutes, marketing, and filler.
- Name a thing by its ecosystem's term or concrete behavior, never an ad-hoc coinage.
- State a reason as an explicit because/so (因为…所以…) cause and effect. Never a vague linker like "correspondingly"/相应.
- A reason is not a restatement of
name = valuemetadata. - Chinese may use Traditional or Simplified characters. Use standard Mandarin wording readily understood across regions; avoid region-specific terms.
- Do not set off Chinese words with full-width brackets (
「」,『』); state the term plainly and use backticks only for code and literal values. - Write each language natively: professional but plainly worded, fluent, and causal. Stilted phrasing usually comes from translating the other language word for word—avoid it.
| Reads naturally | Does not |
|---|---|
| 原生可执行文件移到各平台子包 | 拆成薄 loader |
因为上游变更了 Go 模块路径,所以 -ldflags 中的导入路径需同步更新,否则注入的版本号不正确 |
module 改名,相应更新 ldflags |
Commit and PR Text
Subject
- Take
pkgdev's final English subject verbatim as the PR title. Never translate or reword it. - Where a PR carries more than one commit, use the subject of the commit carrying its main change.
- A package subject is
category/package: summary. A bump iscategory/package: add NEW, with, drop OLDonly when dropping. - A package's first commit is
category/package: new package, add NEW. Later versions of it drop thenew packageclause. - A non-package change instead names an eclass (
name.eclass:) or the affected path or filename—profiles:,licenses:,package.mask:, this overlay's ownAGENTS.md:—whatever lets a reader identify what changed. - The subject is one unwrapped line, at most 69 characters (GLEP 66) where the prefix permits.
Commit body
- Add a body only when the subject cannot carry the reason; use subject / blank line / body.
- The commit body carries only the reason. Do not narrate steps, restate the diff, or report a passing build, test, or scan.
- Do not lecture on a mechanism a Gentoo reviewer already knows; link the upstream source instead.
- The subject already carries the package, version, and add/drop. The body repeats none of them and states each value once.
- Do not open the body by restating the title (no
更新到 <version>line). - Give each changed dependency, phase function, patch, USE flag,
RESTRICT, or revbump its own line, applying the causality rule above. - Do not invent causality the evidence lacks, or fold an unrelated fact into a parenthetical.
- For a large rewrite or upstream restructure, name the rewritten scope instead of enumerating per change. Add a line only for an unexpected behavioral shift.
- When upstream drove that rewrite, give one line in the form 因为上游修改了 X,所以重写 Y.
- Put variables, atoms, commands, options, and
FEATURESvalues in backticks.
PR body
- Write the PR body in Chinese when the human directing the current work item writes in Chinese; otherwise use English. Never use both languages.
- The PR body carries the same rationale as the commit body.
- Do not report passing tests or which arches were tested; the checklist and CI attest those. A test earns a mention only when it forced a change.
- A routine or behavior-neutral change needs only
Closes #Nwhen it closes an overlay issue.
Issue references and trailers
- Keep overlay GitHub issues as bare
Closes #Nin the PR body; never pass their number or URL topkgdev commit -b/--bugor-c/--closes, or rewrite them as Gentoo Bugzilla URLs. - For those
pkgdevoptions, a bare number means a Gentoo Bugzilla ID; a non-numeric value requires a full HTTP(S) URL.FIXED,OBSOLETE, andPKGREMOVEDapply only to Gentoo Bugzilla bugs. - Let
pkgdevgenerate trailers. Sign off with the contributor's real identity and email, never a GitHub noreply address such as<id>+<user>@users.noreply.github.com. - Do not add AI, generated-by, or
Co-Authored-Byattribution.
Commits
- Land each logical change as one clean squashed commit. In a multi-package PR that means one commit per package, never two packages combined.
- Every commit stands alone and leaves the tree installable: keep an ebuild with its
Manifest,metadata.xml, and any newlicenses/,files/, or eclass it references in that same commit. - In a multi-commit PR, order commits so a shared prerequisite lands in or before the first commit that uses it: a new license, eclass, or depended-on package.
- Commit with
pkgdev commit --scan false --signoff --gpg-sign; if GPG is unavailable, omit--gpg-sign. Never use rawgit commit.
Opening the PR
-
Keep the PR template: put the description above its marker, leave the checklist intact, and tick only checks that ran.
-
Before opening or updating a PR (
gh pr create/gh pr edit), show the human the exact title, body, and files, and get confirmation for that specific PR. -
A blanket or batch go-ahead is not per-PR confirmation, drafts included.
-
Open the PR yourself only for a routine bump: an ebuild rename plus
pkgdev manifest, or a version variable such as a build id, with nothing else changed. -
Any other change stops at the fork. Push the topic branch, hand the human the drafted subject and body with its compare link against
<canonical>/master, and let them open the PR.https://github.com/gentoo-zh/overlay/compare/master...<fork-owner>:<fork-repo>:<branch> -
Watch CI and fix failures from their logs rather than guessing.
Non-version-bump commit example:
category/package: short description
Essential reason, only when the subject cannot carry it.
Reference related bugs or issues when relevant.
Version-bump subjects (choose one):
category/package: new package, add new_version
category/package: add new_version
category/package: add new_version, drop old_version
PR body examples—a routine bump, a single change, one change with two reasons, then several changes:
Closes #<issue>
在 `RDEPEND` 中增加 `dev-libs/libfoo`,因为已安装的文件需要 `libfoo.so`。Closes #<issue>
因为测试会导入 `media-sound/feeluown`,但将它加入测试依赖会造成循环依赖;测试还需联网访问 YouTube Music API,无法在 `FEATURES=network-sandbox` 下运行,所以增加 `RESTRICT=test`。Closes #<issue>
上游 `FindLibCURL.cmake` 会在构建时通过 `FetchContent` 下载固定版本的 curl 头文件。Closes #<issue>
1. 因为该下载会被 `FEATURES=network-sandbox` 阻止,所以改为离线提供:在 `SRC_URI` 加入该版本的 curl 头文件包,并通过 `-DFETCHCONTENT_SOURCE_DIR_LIBCURLHEADERS` 指向解包目录。
2. 因为程序运行时通过 `dlopen` 加载 libcurl,所以 `RDEPEND` 增加 `net-misc/curl`。
3. 因为程序直接链接 libfmt,所以将依赖改为 `dev-libs/libfmt:=`,使当前包在 libfmt 的 subslot 变化时重新构建。
Completion Report
Every completed change reports:
- the topic branch, the canonical remote and its fetch status, and the base and sync status;
- files changed;
- commands with pass/fail results;
- skipped checks and reasons;
- remaining warnings, risks, or limitations.