doufan 发表于 2004-12-29 11:09:20

帮忙看看这个patch是怎么安装的,谢谢

# ls
vte-0.11.10-bottom-scrolling.patch
vte-0.11.10-debug-row-numbers.patch
vte-0.11.11
vte-0.11.11-background-redraw.patch
vte-0.11.11-dont-copy-blocks.patch
vte-0.11.11-dont-merge-numeric-types.patch
vte-0.11.11-fix-numlock.patch
vte-0.11.11-fix-update-order.patch
vte-0.11.11-im-preedit-crash.patch
vte-0.11.11-performancefix.patch
vte-0.11.11.tar.bz2
vte-0.11.11.tar.bz2.orig
vte-0.11.11.tar.bz2.rej
vte-0.11.11-vertical-scroll-ctrl-seq.patch

# patch <vte-0.11.10-bottom-scrolling.patch
can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|--- vte-0.11.10/src/vte.c      2 May 2004 06:43:01 -0000       1.404
|+++ vte-0.11.10/src/vte.c      16 Sep 2004 21:36:04 -0000
--------------------------
File to patch: vte-0.11.11.tar.bz2
patching file vte-0.11.11.tar.bz2
Hunk #1 FAILED at 1855.
Hunk #2 FAILED at 1880.
Hunk #3 FAILED at 1911.
Hunk #4 FAILED at 1927.
Hunk #5 FAILED at 2020.
Hunk #6 FAILED at 2986.
Hunk #7 FAILED at 10896.
Hunk #8 FAILED at 10936.
Hunk #9 FAILED at 11622.
Hunk #10 FAILED at 11635.
Hunk #11 FAILED at 11675.
Hunk #12 FAILED at 11697.
12 out of 12 hunks FAILED -- saving rejects to file vte-0.11.11.tar.bz2.rej


我在用patch之前,先搜索了论坛的资料,可是感觉没有人实际指点一下,还是很迷糊。
我有个疑问,不知道patch是在configure之前用,还是编译,软件都安装好了之后也可以用,谢谢。

还是针对我目前的情况,我的目录下有很多patch结尾的文件,是不是就代表是某个软件的patch呢?如果是,我该如何正确的做。

hew 发表于 2004-12-29 11:22:19

编译前用.
至于每个patch 的具体功用看readme 之类的说明.

doufan 发表于 2004-12-29 11:55:36

谢谢hew,那个文件目录里面没有readme文件,不知道通用的用法是什么?能说一下不,谢谢

hew 发表于 2004-12-29 12:04:21

FT,我连你再说什么软件的都不知道,我怎么告诉你那些patch 是干什么的,你还是自己去你下载的地方或者官方网站看文档吧.就算你告诉了我是什么软件,我也是去那些地方查的说.

doufan 发表于 2004-12-29 12:07:52

呵呵,不是那个意思,我的意思是说patch最基本的用法,因为我用了好像不太正常:


patch <vte-0.11.10-bottom-scrolling.patch
can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|--- vte-0.11.10/src/vte.c 2 May 2004 06:43:01 -0000 1.404
|+++ vte-0.11.10/src/vte.c 16 Sep 2004 21:36:04 -0000
--------------------------
File to patch: vte-0.11.11.tar.bz2
patching file vte-0.11.11.tar.bz2
Hunk #1 FAILED at 1855.
Hunk #2 FAILED at 1880.
Hunk #3 FAILED at 1911.
Hunk #4 FAILED at 1927.
Hunk #5 FAILED at 2020.
Hunk #6 FAILED at 2986.
Hunk #7 FAILED at 10896.
Hunk #8 FAILED at 10936.
Hunk #9 FAILED at 11622.
Hunk #10 FAILED at 11635.
Hunk #11 FAILED at 11675.
Hunk #12 FAILED at 11697.
12 out of 12 hunks FAILED -- saving rejects to file vte-0.11.11.tar.bz2.rej

hew老大,别生气 :-D

hew 发表于 2004-12-29 12:18:00

在源码目录 patch -p0 xxx.path
具体可 man patch

doufan 发表于 2004-12-29 12:28:21

呵呵,错了patch -p0 xxx.path


是patch -p0<*.patch

然后它会提示路径的。
:lol:
页: [1]
查看完整版本: 帮忙看看这个patch是怎么安装的,谢谢