[英]How to apply a zipped patch?
I am wondering, what is the problem here? 我在想,这里有什么问题?
This is the linux patch for 2.6.38. 这是2.6.38的linux补丁。 I have renamed it.
我已将其重命名。 This patch is gz.Thus, I am using zcat.
这个补丁是gz.Thus,我正在使用zcat。 Here is what I see?
这是我看到的?
[joshis1@shreyas linux-2.6-lttng]$ zcat patch-2.6.38.2-lttng-0.248.tar.gz
| | patch -p1
补丁-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:
duskwuff is correct – you've encountered a gzipped tarball of patches. duskwuff是正确的 - 你遇到了一个gzipped压缩的tarball。 You should extract them all to a temporary folder;
您应该将它们全部提取到临时文件夹中; you can use your shell to apply each of them – eg,
你可以使用你的shell来应用它们 - 例如,
for p in /path/to/extracted/patches/*; do patch -p1 $p; done
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.