重建 ubuntu/debian 软件包而不使用某些补丁
我想重建 ubuntu 存储库中的源代码包,不做任何更改,只是我想在不使用它附带的补丁子集的情况下构建它。我没有做此类事情的经验。
假设该软件包名为 foo (在我的例子中,它实际上称为 network-manager-gnome),而我不需要的补丁名为 patch1 和 patch2。我在哪一步告诉它忽略这些补丁?当使用 {dpkg-source -x foo_version-revision.dsc} 提取时?或者使用 {dpkg-buildpackage -rfakeroot -b} 构建时?或者在提取和调用 dpkg-buildpackage 之间的某个时间?
dpkg-source 的构建端似乎有忽略与给定正则表达式匹配的补丁的选项。这是我应该使用的,通过 dpkg-buildpackage 将它们与 --source-option 一起传递吗?
谢谢!
I'd like to rebuild a source package that's in the ubuntu repo, changing nothing, except that I would like to build it without a subset of the patches it comes with. I have no experience doing such things.
Let's say the package is called foo (it's actually called network-manager-gnome in my case) and the patches I don't want are called patch1 and patch2. At which step do I tell it to ignore these patches? When extracting with {dpkg-source -x foo_version-revision.dsc}? Or when building with {dpkg-buildpackage -rfakeroot -b}? Or sometime in between extracting and calling dpkg-buildpackage?
It seems like the build side of dpkg-source has options for ignoring patches matching a given regular expressions. Is this what I should be using, passing them in with --source-option through dpkg-buildpackage?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在构建之前应用您的更改(例如反转某些补丁)。
dpkg-buildpackage
只是在您指定的目录中构建文件。Apply your changes (such as reversing some patches) before building.
dpkg-buildpackage
simply builds the files in the directory you specify.