QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1005|回复: 4

如何打上firefly的patch

[复制链接]
发表于 2004-4-20 17:52:31 | 显示全部楼层 |阅读模式
请问我该如何打上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? [y] 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后面输入什么了, :-(  :-(
多谢
 楼主| 发表于 2004-4-21 23:28:49 | 显示全部楼层
点击了三十多次也没有人回答我,是这个问题太弱智吗? :-(
可我是真不知道,一直都不知道。 :-(
回复

使用道具 举报

发表于 2004-4-21 23:46:51 | 显示全部楼层
在哪里打的这个命令?是在源码目录下吗?patch的版本和源码版本对应了吗?
回复

使用道具 举报

 楼主| 发表于 2004-4-22 17:48:38 | 显示全部楼层
[quote:4c19c28417="laxi1982"]在哪里打的这个命令?是在源码目录下吗?patch的版本和源码版本对应了吗?[/quote]


非常感谢你的回复,看来我的搞错了,没有在源码下用,是要在源码下用PATCH,然后再重新编译是吗?
回复

使用道具 举报

发表于 2004-4-22 17:57:50 | 显示全部楼层
在源码目录下用的,之后重新编译。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-28 05:50 , Processed in 0.058077 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表