LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 832|回复: 3

patch到底很是费脑阿

[复制链接]
发表于 2010-7-1 22:47:34 | 显示全部楼层 |阅读模式
问题:今天有空,想试试中文的console,在此前得到沈老师的的帮助,发现youbest老师的中文patch,可试了以后,却是File to patch。
这是终端出现的东东:

[root@air linux-2.6.34-ARCH]# patch -p1 <utf8-kernel-2.6.34-core-1.patchcan't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|# 作者(author): 孙海勇
|# 发布协议(License): GPL v2
|# 邮件(email): youbest@sina.com
|# 说明:此补丁用于Linux内核,实现直接在framebuffer环境下直接显示UTF-8编码的文字功能。此补丁为功能补丁,不包含字库。
|
|diff -Nurp linux-2.6.34.orig/drivers/char/selection.c linux-2.6.34/drivers/char/selection.c
|--- linux-2.6.34.orig/drivers/char/selection.c        2010-05-16 21:17:36.000000000 +0000
|+++ linux-2.6.34/drivers/char/selection.c        2010-05-29 17:47:20.704220250 +0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 31
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurp linux-2.6.34.orig/drivers/char/vt.c linux-2.6.34/drivers/char/vt.c
|--- linux-2.6.34.orig/drivers/char/vt.c        2010-05-16 21:17:36.000000000 +0000
|+++ linux-2.6.34/drivers/char/vt.c        2010-05-29 18:22:18.855346500 +0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
17 out of 17 hunks ignored
can't find file to patch at input line 384
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurp linux-2.6.34.orig/drivers/video/console/bitblit.c linux-2.6.34/drivers/video/console/bitblit.c
|--- linux-2.6.34.orig/drivers/video/console/bitblit.c        2010-05-16 21:17:36.000000000 +0000
|+++ linux-2.6.34/drivers/video/console/bitblit.c        2010-05-29 17:47:20.788225500 +0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
6 out of 6 hunks ignored
can't find file to patch at input line 505
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurp linux-2.6.34.orig/drivers/video/console/fbcon.c linux-2.6.34/drivers/video/console/fbcon.c
|--- linux-2.6.34.orig/drivers/video/console/fbcon.c        2010-05-16 21:17:36.000000000 +0000
|+++ linux-2.6.34/drivers/video/console/fbcon.c        2010-05-29 17:47:20.804226500 +0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
12 out of 12 hunks ignored
can't find file to patch at input line 654
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurp linux-2.6.34.orig/drivers/video/console/fbcon_ccw.c linux-2.6.34/drivers/video/console/fbcon_ccw.c
|--- linux-2.6.34.orig/drivers/video/console/fbcon_ccw.c        2010-05-16 21:17:36.000000000 +0000
|+++ linux-2.6.34/drivers/video/console/fbcon_ccw.c        2010-05-29 17:47:20.816227250 +0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
4 out of 4 hunks ignored
can't find file to patch at input line 730
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurp linux-2.6.34.orig/drivers/video/console/fbcon_cw.c linux-2.6.34/drivers/video/console/fbcon_cw.c
|--- linux-2.6.34.orig/drivers/video/console/fbcon_cw.c        2010-05-16 21:17:36.000000000 +0000
|+++ linux-2.6.34/drivers/video/console/fbcon_cw.c        2010-05-29 17:47:20.832228250 +0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
4 out of 4 hunks ignored
can't find file to patch at input line 806
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurp linux-2.6.34.orig/drivers/video/console/fbcon_ud.c linux-2.6.34/drivers/video/console/fbcon_ud.c
|--- linux-2.6.34.orig/drivers/video/console/fbcon_ud.c        2010-05-16 21:17:36.000000000 +0000
|+++ linux-2.6.34/drivers/video/console/fbcon_ud.c        2010-05-29 17:47:20.904232750 +0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
5 out of 5 hunks ignored
那么我下步该如何作。
以前也到过google的archlive下载kernel,听说已经patch过,可是pacman后却出现黑屏。。。。。
 楼主| 发表于 2010-7-2 12:53:12 | 显示全部楼层
嘿,帮帮忙阿大家。
回复 支持 反对

使用道具 举报

发表于 2010-7-2 16:44:58 | 显示全部楼层
Perhaps you used the wrong -p or --strip option?

搜索diff和patch的用法...
回复 支持 反对

使用道具 举报

发表于 2010-7-4 10:49:06 | 显示全部楼层
patch -p1 试试
回复 支持 反对

使用道具 举报

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

本版积分规则

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