欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

对源码包打补丁方法Patch

发布时间:2025/3/20 49 豆豆
生活随笔 收集整理的这篇文章主要介绍了 对源码包打补丁方法Patch 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

今天编译netkit-ftp,里面要打补丁,不知道怎么打,遂记录一下

参考文章:Patch打补丁学习笔记

我的补丁打不了,找不到文件,算了,先不打了

[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# 与50位技术专家面对面20年技术见证,附赠技术全景图

总结

以上是生活随笔为你收集整理的对源码包打补丁方法Patch的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。