对源码包打补丁方法Patch
Posted Dontla
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了对源码包打补丁方法Patch相关的知识,希望对你有一定的参考价值。
今天编译netkit-ftp,里面要打补丁,不知道怎么打,遂记录一下
我的补丁打不了,找不到文件,算了,先不打了
[root@ubuntu /arnold_test/20211219_ftpCrossCompile/netkit-ftp-0.17]6# patch -p1<readline-2.0.patch
can't find file to patch at input line 7
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|This patch corrects a config mistake in GNU readline-2.0 that causes
|it to mishandle signals, resulting in problems with ftp's ^C handling.
|
|
|*** signals.c.dist Wed Aug 3 11:25:57 1994
|--- signals.c Wed Aug 14 13:23:30 1996
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
[root@ubuntu /arnold_test/20211219_ftpCrossCompile/netkit-ftp-0.17]7#
以上是关于对源码包打补丁方法Patch的主要内容,如果未能解决你的问题,请参考以下文章