如何申请拉链补丁?

时间:2013-11-30 05:19:50

标签: linux patch

我在想,这里有什么问题?

这是2.6.38的linux补丁。我已将其重命名。这个补丁是gz.Thus,我正在使用zcat。 这是我看到的?

[joshis1@shreyas linux-2.6-lttng]$ zcat patch-2.6.38.2-lttng-0.248.tar.gz  

|补丁-p1

can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|patch-2.6.38.2-lttng-0.248/0000755000175000017500000000000011545246117014542 5ustar  compudjcompudjpatch-2.6.38.2-lttng-0.248/omap-move-resync-timer-to-cpufreq-event.patch0000644000175000017500000001631311545246117025310 0ustar  compudjcompudjomap move resync timer to cpufreq event
|
|Remove a periodic timer to save energy.
|
|Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
|---
| arch/arm/mach-omap2/include/mach/trace-clock.h |    2 
| arch/arm/mach-omap2/trace-clock.c              |  110 +++++++++++++++----------
| 2 files changed, 68 insertions(+), 44 deletions(-)
|
|Index: linux-2.6-lttng/arch/arm/mach-omap2/include/mach/trace-clock.h
|===================================================================
|--- linux-2.6-lttng.orig/arch/arm/mach-omap2/include/mach/trace-clock.h
|+++ linux-2.6-lttng/arch/arm/mach-omap2/include/mach/trace-clock.h
--------------------------
File to patch: 

1 个答案:

答案 0 :(得分:2)

duskwuff是正确的 - 你遇到了一个gzipped压缩的tarball。您应该将它们全部提取到临时文件夹中;你可以使用你的shell来应用它们 - 例如,

for p in /path/to/extracted/patches/*; do patch -p1 $p; done
相关问题