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

Re: Trying to patch 2.4.20 kernel



On Fri, May 09, 2003 at 05:34:15PM +0000, jeremy wrote:
> I am trying to patch the 2.4.20 kernel but when I do :
> 
> patch -p0 <patch
> 
> I get this
> 
> 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 -Naurp linux-2.4.20/arch/alpha/kernel/process.c 
> linux-2.4.20-ck6/arch/alpha/kernel/process.c
> |--- linux-2.4.20/arch/alpha/kernel/process.c   2002-11-30 17:01:50.000000000 
> +1100
> |+++ linux-2.4.20-ck6/arch/alpha/kernel/process.c       2003-04-12 
> 10:46:20.000000000 +1000

Change into the top-level directory of your kernel source tree and use
'patch -p1' rather than 'patch -p0'. -p0 is only useful when your
directory layout exactly matches that of the person who generated the
patch from their current directory at the time.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: