Files
gentoo-zh/README.zh-TW.md
T
Zakk 4c87c4e037 README: require contributors to get the license right
因为这一轮核对发现 42 个软件包的 `LICENSE` 与上游不符、三个授权文件装的不是授权条款、十九个软件包漏了按条款该有的
`RESTRICT`,而贡献指南对此没有任何要求,所以补上一条。

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-08-02 04:48:39 +10:00

4.7 KiB

English | 简体中文 | 正體中文 | 廣東話

gentoo-zh

Overlay for Gentoo Users.
gentoo-zh 是一個包容的 overlay。

Note

gentoo-zh overlay 已遷移至 https://github.com/gentoo-zh/overlay 。舊的 GitHub URL 會繼續重新導向。如果你手動設定過 remote,可於方便時更新。 詳情請參閱 MIGRATION.md。

社群

官網 GitHub Issues Email 論壇 維基 Telegram 群組 公告頻道 Matrix IRC

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 工具或模型身分。