Skip to content

Conversation

@xzl01
Copy link
Contributor

@xzl01 xzl01 commented Jul 25, 2025

Log:

@deepin-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign justforlxz for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

@Cryolitia Cryolitia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议用书面语言重写整个RFC


## 1. 第一方patch定义

第一方patch 指的是此patch不存在任何上游,仅是研发在工作中发现其功能有问题或不满足要求产生的代码修补。如果patch来自于上游提交或者来自其他发行版软件包维护者的提交,即使patch是由我们研发提出也不作为第一方patch。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
第一方patch 指的是此patch不存在任何上游,仅是研发在工作中发现其功能有问题或不满足要求产生的代码修补。如果patch来自于上游提交或者来自其他发行版软件包维护者的提交,即使patch是由我们研发提出也不作为第一方patch
第一方patch 指的是此patch不存在任何上游,仅是deepin社区成员在工作中发现其功能有问题或不满足要求产生的代码修补。如果patch来自于上游提交或者来自其他发行版软件包维护者的提交,即使patch的作者是deepin社区成员也不视作第一方patch

- 第一方patch中需要留存维护者信息和对于patch的解释
- 有issue或者pr的需要提供指向的链接
- **禁止提供外网不可访问的链接**(如pms链接)
- **例外**:可以记录pms单号,但是需要保证你提供的信息已经足以说明patch的目的 No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PMS是什么?这是deepin社区的一部分吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为部分项目组会给deepin引入来源自UOS的需求和修复,PMS是UOS使用的工单管理系统

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为部分项目组会给deepin引入来源自UOS的需求和修复,PMS是UOS使用的工单管理系统

Deepin社区的RFC提UOS干什么

Comment on lines +35 to +36
- 上游只使用`.patch`文件,我们也只能使用patch文件
- 上游使用diff文件,我们也只能使用diff文件
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个限制的必要性是什么?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

防止与上游补丁格式不一致

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

限制没有必要 比如dpkg-source --commit生成依然是一个patch

### 3.2 命名和应用顺序

2. 第一方patch格式要求以`0001-xxxx`数字开头,从小到大依次应用,当中间有patch被移除后,需要将我们的第一方patch进行刷新。
- 如果上游有存在以数字开头的patch,则第一方patch需要加在上游文件编号末尾,空余10个编号
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 如果上游有存在以数字开头的patch,则第一方patch需要加在上游文件编号末尾,空余10个编号
- 如果上游有存在以数字开头的patch,则第一方patch需要加在上游文件编号末尾,空余至少10个编号,从最接近的整十或整百数字开始重新计数

Comment on lines +45 to +46
- **禁止提供外网不可访问的链接**(如pms链接)
- **例外**:可以记录pms单号,但是需要保证你提供的信息已经足以说明patch的目的 No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- **禁止提供外网不可访问的链接**(如pms链接)
- **例外**可以记录pms单号,但是需要保证你提供的信息已经足以说明patch的目的
- **禁止提供互联网上无法公开检索的链接**
- **例外**在保证patch信息已足够说明其原理和目的的前提下,可以出于内部管理等目的标注检索用的序号

PMS是什么?这是deepin社区的一部分吗?

@qaqland
Copy link
Member

qaqland commented Aug 5, 2025

社区版没那么多 patch 吧,应该协调一下专业版这部分

@qaqland
Copy link
Member

qaqland commented Aug 14, 2025

想了一下也许这个单子应该搭配下游专业版的版本号相关规定一起使用(?)观察到有些下游包打上 patch 之后版本号就飘了

@qaqland
Copy link
Member

qaqland commented Sep 24, 2025

这个rfc还需要更多补充,这是将来可能存在的补丁列表(模拟场景)

image

当前文档描述不足以应对未来需求

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants