[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I apply a kernel patch?



	Subject: How do I apply a kernel patch?
	Date: Sat, May 29, 1999 at 01:35:17PM +0200

In reply to:Johann Spies at Johann

Quoting Johann Spies at Johann(jhspies@futurenet.co.za):
> According to the Kernel-HOWTO I should do the following:
> 
>   So, continuing with the example above, let's suppose that you have
>   `patch46.gz' in /usr/src. cd to /usr/src  and do a `zcat patch46.gz |
>   patch -p0' (or `patch -p0 < patch46' if the patch isn't compressed).
>   You'll see things whizz by (or flutter by, if your system is that
>   slow) telling you that it is trying to apply hunks, and whether it
>   succeeds or not. 
> 
> When I follow these instructions the following happens:
> 
> root@Johann(1)$ cat patch-2.2.7-ac4 | patch -p0
> can't find file to patch at input line 4
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff -u --new-file --recursive --exclude-from ../exclude linux.vanilla/Documentation/00-INDEX linux.ac/Documentation/00-INDEX
> |--- linux.vanilla/Documentation/00-INDEX	Tue Feb 23 14:21:32 1999
> |+++ linux.ac/Documentation/00-INDEX	Fri May  7 16:34:31 1999
> --------------------------
> File to patch: linux/*
> Skip this patch? [y] 
> Skipping patch.
> 5 out of 5 hunks ignored
> can't find file to patch at input line 57
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff -u --new-file --recursive --exclude-from ../exclude linux.vanilla/Documentation/ARM-README linux.ac/Documentation/ARM-README
> |--- linux.vanilla/Documentation/ARM-README	Sun Nov  8 15:08:49 1998
> |+++ linux.ac/Documentation/ARM-README	Fri May  7 16:34:44 1999
> --------------------------
> File to patch: 
> 
> 
> I have read the man page for patch and it does not help me.
> 
> Johann
> 
> 

VT1 root-Deb-Slink: pwd
/usr/src/linux
VT1 root-Deb-Slink: patch -p1 < /program/kernels/2.2/patch-2.2.9

Hope This Helps

-- 
Real programmers don't draw flowcharts.  Flowcharts are, after all, the
illiterate's form of documentation.  Cavemen drew flowcharts; look how
much good it did them.
_______________________________________________________
Wayne T. Topa <wtopa@mindspring.com>


Reply to: