以前要求同一来源只留一条 nvchecker 条目,是因为 bumpbot 按标题搜索 既有 issue 时把源码包和 -bin 混在一起。bumpbot#5 已修,overlay.toml 已全部打开(#13359、#13360)。规则改成所有包都要添加。 acct-*、virtual 那行也改成实际做法:列成注释行,不写理由。 Signed-off-by: Zakk <zakk@gentoozh.org>
4.8 KiB
4.8 KiB
gentoo-zh
Overlay for Gentoo Users.
gentoo-zh 是一個包容的 overlay。
Note
gentoo-zh overlay 已遷移至 https://github.com/gentoo-zh/overlay 。舊的 GitHub URL 會繼續重新導向。如果你手動設定過 remote,可於方便時更新。 詳情請參閱 MIGRATION.md。
社群
overlay 相關問題優先使用 GitHub Issues。
如何將此 overlay 加入 Gentoo Linux
eselect repository enable gentoo-zh
emaint sync
中國大陸鏡像加速相關與 overlay 使用方式請參考:https://gentoozh.org/zh-tw/overlay
distfiles 與二進位套件
部分套件提供 distfiles 與二進位套件,每晚觸發建置,設定和鏡像參考:https://distfiles.gentoozh.org
相依關係表
https://github.com/gentoo-zh/overlay/blob/deps-table/relation.md
貢獻
不要破壞使用者的系統。
- 我們歡迎所有人貢獻,但請提交者在提交前謹慎確認。
- pull request 中的每個提交都要包含所需的所有修改,不要無故拆分,例如 ebuild 和它的
Manifest要在同一個提交裡。 - 每個 ebuild 修改在提交前要確保編譯正確。
LICENSE要與上游實際授權一致。授權不在::gentoo時把全文放進licenses/,歸入profiles/license_groups的相應分組,並按其散布條款設定RESTRICT。- 所有套件都需要加入
.github/workflows/overlay.toml,並按照category/package的字母順序插入相應位置。如果可以自動 bump,參見 scripts/autobump.zh.md。 - 如果套件不適合使用 nvchecker 檢查版本更新,請在對應位置加上註解並說明原因;
acct-*、virtual也要註解。 - 在開啟 pull request 前,請先在本機執行
pkgcheck scan --commits --net。 - 開 pull request 之後,請檢查並修正 pkgcheck report 和 CI 報出的錯誤,QA 提示也要處理。
- ebuild 只使用
~archkeyword,不要 stable keyword。 - CI 會在 amd64 和 arm64 上建置。如果在你沒有的架構上出現無法解決的問題,請移除那個 keyword。
- 新增的套件請持續維護,並使用 pull request 範本。
- 不再維護自己的套件時,請在 issues 裡找新維護者,或者在
profiles/package.mask裡 mask,到期後再移除。
提交訊息
建議用 pkgdev commit 產生提交訊息。版本升級格式如下:
$category/$package: add $new_version, drop $old_version
其他改動格式如下:
$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 政策
可以用生成式 AI 輔助,但它必須遵守 AGENTS.md,且每個提交由貢獻者負責:確保 ebuild 的品質和驗證功能正確,ebuild 要實際做一遍冒煙測試再提交,pull request 描述要簡短、精準、專業,寫實測結果而不是猜測。貢獻者、提交者與提交作者必須是人類,不能是 AI 工具或模型身分。