rpm 没有机制来约束这个,最基本的规范就是在 specfile 中每个 PatchX: 上面必须要有注释,解释这个 patch 以及相关的 bug 链接。参见 [1] 另外还有几个常见的最佳实践: 1. 添加 patch 的时候把 patch 文件名记录到 changelog,去掉 patch 的时候也要记录,并详细记录原因。 2. 用 git 来管理 patch,参见 CentOS7 的 systemd.spec[2]
[1] https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Patch_Guidelines [2] https://git.centos.org/blob/rpms!systemd.git/1ff63606a64d814f37c4956854107e049a684754/SPECS!systemd.spec -robin 2016-01-29 8:36 GMT+08:00 Bash Horatio <[email protected]>: > 帮忙转发来自*SHLUG* *Gareth*([email protected])的求助帖, > 另外我也对这个问题感兴趣😀,有哪位前辈知道吗? > > > Horatio# Scala&Spark > > ---------- 已转发邮件 ---------- > 发件人: Gareth <[email protected]> > 日期: 2016年1月28日 上午11:47 > 主题: [shlug] RPM 打包规范(有关patch的部分) > 收件人: [email protected] > > > 大家好, > > > https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ > > 我在研究打包这个事情,找到 fedora 这个文档,大部分都比较详细,就是关于 patch > 的部分只提到了命名,我想了解的主要是:我们在开发一个大特性的时候会有很多 commit 组成,那几个 patch > 在手边,有的是之间相互解耦的,有的就应该不是了。那在研发过程中是怎么约束的呢?需求是需要解耦的,这个道里是这么说,具体怎么操作的呢? > > -- > Gareth (Kun Huang) > > Cloud Computing, OpenStack, Distributed Storage, Fitness, Basketball > OpenStack contributor, kun_huang@freenode > My promise: if you find any spelling or grammar mistakes in my email > from Mar 1 2013, notify me > and I'll donate $1 or ¥1 to an open organization you specify. > > -- > -- You received this message because you are subscribed to the Google > Groups Shanghai Linux User Group group. To post to this group, send email > to [email protected]. To unsubscribe from this group, send email to > [email protected]. For more options, visit this group at > https://groups.google.com/d/forum/shlug?hl=zh-CN > --- > 您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。 > 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到[email protected]。 > 要查看更多选项,请访问 https://groups.google.com/d/optout。 > > -- > 您收到此邮件是因为您订阅了Google网上论坛上的“广州 GNU/Linux 用户组”群组。 > 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到[email protected]。 > 要发帖到此群组,请发送电子邮件至[email protected]。 > 访问此群组:https://groups.google.com/group/gzlug。 > 要查看更多选项,请访问https://groups.google.com/d/optout。 > -- 您收到此邮件是因为您订阅了 Google 网上论坛的“广州 GNU/Linux 用户组”群组。 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到[email protected]。 要向此群组发帖,请发送电子邮件至 [email protected]。 访问此群组:https://groups.google.com/group/gzlug。 要查看更多选项,请访问 https://groups.google.com/d/optout。
