因为这一轮核对发现 42 个软件包的 `LICENSE` 与上游不符、三个授权文件装的不是授权条款、十九个软件包漏了按条款该有的 `RESTRICT`,而贡献指南对此没有任何要求,所以补上一条。 Signed-off-by: Zakk <zakk@gentoozh.org>
4.7 KiB
4.7 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
中國大陸鏡像加速相關請參考: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的字母順序插入相應位置;如果該套件不適合使用 nvchecker 檢查版本更新,請在對應位置加上註解並說明原因;如果可以自動 bump,參見 scripts/autobump.zh.md。 - 在開啟 pull request 前,請先在本機執行
pkgcheck scan --commits --net。 - 開 pull request 之後,請檢查並修正 pkgcheck report 和 CI 報出的錯誤,QA 提示也要處理。
- 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 工具或模型身分。