quilt的具体用法,这里介绍一篇文章:www.shakthimaan.com/downloads/glv/quilt-tutorial/quilt-doc.pdf
使用quilt重新编译修改过的源码树:
1. 设置环境变量:
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
2. 应用存在的补丁到源码树:
quilt push -a
3. 创建一个新的补丁:
quilt new my_patch.diff
4. 将要修改的文件与创建的补丁关联起来:
quilt add -P my_patch.diff will_change.c
5. 将所做的修改更新并保存到关联的补丁中:
quilt refresh
6. 弹出所有的补丁:
quilt pop -a
7. 检查debian/patches/目录下面新创建的my_patch.diff与series是否正确:
my_patch.diff中主要看修改的地方是否正确;
series主要查看新增加的补丁的顺序是否正确;
8. 重新编译源码树:
dpkg-buildpackage
参考:
http://www.debian.org/doc/manuals/maint-guide/modify.zh-cn.html
http://www.dklkt.cn/article.asp?id=242
www.shakthimaan.com/downloads/glv/quilt-tutorial/quilt-doc.pdf
博主所有文章已转自私人博客 Joe 的个人博客,谢谢关注!