From f2f4a5543b8d4474096fc88231aaa942a554764b Mon Sep 17 00:00:00 2001 From: Zakk Date: Sat, 28 Nov 2026 04:51:26 +1100 Subject: [PATCH] CONTRIBUTING*: bar rule bypassers from committing, reword package rules Signed-off-by: Zakk --- CONTRIBUTING.en.md | 13 ++++++------- CONTRIBUTING.md | 6 +++--- CONTRIBUTING.zh-TW.md | 6 +++--- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/CONTRIBUTING.en.md b/CONTRIBUTING.en.md index f2bfe6040d..78f29de824 100644 --- a/CONTRIBUTING.en.md +++ b/CONTRIBUTING.en.md @@ -10,16 +10,14 @@ gentoo-zh is a Gentoo overlay (a third-party ebuild repository) that depends on `::gentoo` (`masters = gentoo` in `metadata/layout.conf`). > [!NOTE] -> Anyone who deliberately bypasses the rules in this file is removed from the -> organization, and all packages they maintain are treecleaned. This applies to -> all maintainers, including owners and members. +> Anyone who deliberately bypasses the rules in this file is barred from +> committing. This applies to all maintainers, including owners and members. ## Packages - Ebuilds use `~arch` keywords only. -- Dependencies that `::gentoo` already provides are not duplicated here, and a - package with the same name as one in `::gentoo` is not added unless there is a - specific reason. +- Unless there is a specific reason, packages that `::gentoo` already provides + are not added here again. - Every package has a `metadata.xml` that names its maintainer. - `LICENSE` matches the license declared by the packaged software; add licenses missing from `::gentoo` to `licenses/` and `profiles/license_groups`. @@ -30,7 +28,8 @@ gentoo-zh is a Gentoo overlay (a third-party ebuild repository) that depends on nvchecker cannot track. - For packages that can be bumped automatically, see [scripts/autobump.md](./scripts/autobump.md). -- Test ebuilds before committing. +- Test locally before committing, and open a pull request only after the tests + pass. - For a package you no longer maintain, find a new maintainer in the issues. If nobody takes it, remove it through [last rites](https://devmanual.gentoo.org/ebuild-maintenance/removal/): add an diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0fcf0ea683..df4bc28d93 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,18 +9,18 @@ gentoo-zh 是 Gentoo 的 overlay(第三方 ebuild 仓库),依赖 `::gentoo`(`metadata/layout.conf` 中 `masters = gentoo`)。 > [!NOTE] -> 蓄意规避本文规定者将被移出组织,其维护的所有软件包也将被 treeclean。此规则适用于所有维护者,包括 owner 和 member。 +> 蓄意规避本文规则者将被禁止提交。此规则适用于所有维护者,包括 owner 和 member。 ## 软件包 - ebuild 只使用 `~arch` 关键字; -- `::gentoo` 已有的依赖不在本仓库重复添加;除特殊情况外,不添加与 `::gentoo` 同名的软件包; +- 如无特殊情况,`::gentoo` 已有的软件包不在本仓库重复添加; - 每个软件包须有 `metadata.xml`,并写明维护者; - `LICENSE` 须与所打包软件声明的许可证一致,`::gentoo` 没有的许可证须加入 `licenses/` 和 `profiles/license_groups`; - 除特殊情况外,同一软件包的改动须放在同一个提交中; - 软件包须登记到 `.github/workflows/overlay.toml`,按 `category/package` 的字母顺序插入,无法由 nvchecker 追踪的,需以注释说明原因; - 可自动更新版本的软件包见 [scripts/autobump.zh.md](./scripts/autobump.zh.md); -- ebuild 提交前须进行测试; +- 提交前请先在本地进行测试,测试通过后才可打开 Pull Request; - 不再维护的软件包,须先发 issue 寻找接手者。无人接手的,依据 [last rites](https://devmanual.gentoo.org/ebuild-maintenance/removal/) 流程移除:在 `profiles/package.mask` 顶部加入条目,写明作者、邮箱、日期(UTC)、原因和移除日期,至少 30 天后移除。示例: ``` diff --git a/CONTRIBUTING.zh-TW.md b/CONTRIBUTING.zh-TW.md index 142c0e4925..fe03e160bf 100644 --- a/CONTRIBUTING.zh-TW.md +++ b/CONTRIBUTING.zh-TW.md @@ -9,18 +9,18 @@ gentoo-zh 是 Gentoo 的 overlay(第三方 ebuild 儲存庫),依賴 `::gentoo`(`metadata/layout.conf` 中 `masters = gentoo`)。 > [!NOTE] -> 蓄意規避本文規定者將被移出組織,其維護的所有套件也將被 treeclean。此規則適用於所有維護者,包括 owner 和 member。 +> 蓄意規避本文規則者將被禁止提交。此規則適用於所有維護者,包括 owner 和 member。 ## 套件 - ebuild 只使用 `~arch` 關鍵字; -- `::gentoo` 已有的相依套件不在本儲存庫重複新增;除特殊情況外,不新增與 `::gentoo` 同名的套件; +- 如無特殊情況,`::gentoo` 已有的套件不在本儲存庫重複新增; - 每個套件須有 `metadata.xml`,並寫明維護者; - `LICENSE` 須與所打包軟體聲明的授權條款一致,`::gentoo` 沒有的授權條款須加入 `licenses/` 和 `profiles/license_groups`; - 除特殊情況外,同一套件的改動須放在同一個提交中; - 套件須登記到 `.github/workflows/overlay.toml`,依 `category/package` 的字母順序插入,無法由 nvchecker 追蹤的,需以註解說明原因; - 可自動更新版本的套件見 [scripts/autobump.zh.md](./scripts/autobump.zh.md); -- ebuild 提交前須進行測試; +- 提交前請先在本機進行測試,測試通過後才可開啟 Pull Request; - 不再維護的套件,須先發 issue 尋找接手者。無人接手的,依據 [last rites](https://devmanual.gentoo.org/ebuild-maintenance/removal/) 流程移除:在 `profiles/package.mask` 最上方加入條目,寫明作者、電子郵件、日期(UTC)、原因和移除日期,至少 30 天後移除。範例: ```