LinuxSir.cn,穿越时空的Linuxsir!

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

补丁怎么打

[复制链接]
发表于 2005-8-25 18:39:10 | 显示全部楼层 |阅读模式
--- bttv-cards.c.orig   2005-04-04 16:27:34.000000000 +0400
+++ bttv-cards.c        2005-04-04 16:26:41.000000000 +0400
@@ -2718,8 +2718,6 @@ void __devinit bttv_init_card2(struct bt
         }
        btv->pll.pll_current = -1;

-       bttv_reset_audio(btv);
-
        /* tuner configuration (from card list / autodetect / insmod option) */
        if (UNSET != bttv_tvcards[btv->c.type].tuner_type)
                if(UNSET == btv->tuner_type)

save it as /usr/src/linux/drivers/media/video/bttv-cards.c.bin
then change in above directory and execute

patch -p0 <bttv-cards.c.bin
上面一段从www.gentoo.org论坛上找的。原文在:http://forums.gentoo.org/viewtopic-t-324319.html
现在的问题是,我把上面一段代码复制到bttv-cards.c.bin文件里面,然后我进入
cd /usr/src
patch -p0 <bttv-cards.c.bin
提示没有找到该文件

cd /usr/src/linux/drivers/media/video
patch -p0 <bttv-cards.c.bin
提示如下信息:patching file bttv-cards.c
Hunk #1 FAILED at 2718
1 out of 1 hunk FAILED --saving rejects to file bttv-cards.c.rej

cd /usr/src
patch -p0 <linux/drivers/media/video/bttv-cards.c.bin
我不知道这种方法打补丁正确吗,
上述三种方法不知道那种正确,到底我应该如何打补丁。谢谢
发表于 2005-8-25 18:48:10 | 显示全部楼层
看说明应该是第二种。
回复 支持 反对

使用道具 举报

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

本版积分规则

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