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

Re: how to unpatch?



On Tue, Dec 10, 2002 at 01:47:13AM -0700, eric lin wrote:
> I download as enduser for example to /home/fsshl
> linux-2.5.50.tar.gz
> then I tar xfvz linux-2.5.50.tar.gz
> it generate a directory linux-2.5.50 in  my /home/fsshl
> then I follow README in linux-2.5.50  to do unpatch the another 
> downloaded patch-2.5.50-ac1.gz  from kernel.org
> 
> www:/home/fsshl#  gzip  -cd patch-2.5.50-ac1.gz | patch -p1
> 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 /usr/src/exclude 
> linux.50/arch/alpha/defconfig linux.50-ac1/arch/alpha/defconfig
> |--- linux.50/arch/alpha/defconfig      2002-11-25 15:11:47.000000000 +0000
> |+++ linux.50-ac1/arch/alpha/defconfig  2002-12-03 20:54:30.000000000 +0000
> --------------------------
> File to patch:
> 
> so the name of directory containing my kernel source should be /home/fsshl
> 
> in the promt of File to patch:
> I tried both patch-2.5.50-ac1.gz and linux-2.5.50.tar.gz  all not work

Try this:

cd /home/fsshl
rm -rf linux-2.5.50
tar xzf linux-2.5.50.tar.gz
mv linux-2.5.50 linux.50
cp -r linux.50 linux.50-ac1
gunzip patch-2.5.50-ac1.gz | patch -p0

Pigeon



Reply to: