如何打上firefly的patch
请问我该如何打上firefly的patch,搞了好久,找了好多资料,还是不会,请指教bash-2.05b# patch -p1 -i freetype-2.1.7-autohint-cjkfonts-20031121.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNrp freetype-2.1.7.orig/src/autohint/ahglobal.c freetype-2.1.7/src/autohint/ahglobal.c
|--- freetype-2.1.7.orig/src/autohint/ahglobal.c 2003-10-16 06:20:56.000000000 +0800
|+++ freetype-2.1.7/src/autohint/ahglobal.c 2003-11-21 11:22:54.000000000 +0800
--------------------------
File to patch: /usr/include/freetype2/freetype/freetype.h
patching file /usr/include/freetype2/freetype/freetype.h
Hunk #1 FAILED at 30.
Hunk #2 FAILED at 43.
Hunk #3 FAILED at 100.
Hunk #4 FAILED at 110.
Hunk #5 FAILED at 129.
Hunk #6 FAILED at 174.
Hunk #7 FAILED at 264.
Hunk #8 FAILED at 344.
Hunk #9 FAILED at 386.
Hunk #10 FAILED at 415.
Hunk #11 FAILED at 475.
Hunk #12 FAILED at 490.
Hunk #13 succeeded at 3077 with fuzz 1 (offset 2575 lines).
12 out of 13 hunks FAILED -- saving rejects to file /usr/include/freetype2/freetype/freetype.h.rej
can't find file to patch at input line 430
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNrp freetype-2.1.7.orig/src/autohint/ahglobal.h freetype-2.1.7/src/autohint/ahglobal.h
|--- freetype-2.1.7.orig/src/autohint/ahglobal.h 2003-04-22 15:49:24.000000000 +0800
|+++ freetype-2.1.7/src/autohint/ahglobal.h 2003-11-21 11:22:54.000000000 +0
800
--------------------------
File to patch: out of 13 hunks
out: No such file or directory
Skip this patch? n
File to patch: /usr/include/freetype2/freetype/freetype.h
patching file /usr/include/freetype2/freetype/freetype.h
Hunk #1 succeeded at 2969 with fuzz 1 (offset 2918 lines).
can't find file to patch at input line 448
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNrp freetype-2.1.7.orig/src/autohint/ahglyph.c freetype-2.1.7/src/autohint/ahglyph.c
|--- freetype-2.1.7.orig/src/autohint/ahglyph.c 2003-05-28 13:52:05.000000000 +0800
|+++ freetype-2.1.7/src/autohint/ahglyph.c 2003-11-21 11:22:54.000000000 +0800
--------------------------
File to patch:
不知道在file to patch后面输入什么了, :-(:-(
多谢 点击了三十多次也没有人回答我,是这个问题太弱智吗? :-(
可我是真不知道,一直都不知道。 :-( 在哪里打的这个命令?是在源码目录下吗?patch的版本和源码版本对应了吗? 在哪里打的这个命令?是在源码目录下吗?patch的版本和源码版本对应了吗?
非常感谢你的回复,看来我的搞错了,没有在源码下用,是要在源码下用PATCH,然后再重新编译是吗? 在源码目录下用的,之后重新编译。
页:
[1]