lkml.org 
[lkml]   [1996]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectpatch-kernel won't work for pre2.0
Eric Plante writes:
>
> The subject pretty much says it. The patch-kernal script in the=20
> linux/scripts directory of the kernel source doesn't work for jumping=20
> from 1.3.100 to pre2.0.1 (as might have been expected). And I'm no
> patch expert (I never need to patch my programs ;) ), I've followed
> closely the instructions in linux/INSTALL, which resulted in the=20
> following output:
> monLinux:/usr/src/linux# gzip -cd ~eric/patch-pre2.0.1.gz | patch -p0
> Hmm... Looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |diff -u --recursive --new-file v1.3.100/linux/.name linux/.name
> |--- v1.3.100/linux/.name Thu Jan 1 02:00:00 1970
> |+++ linux/.name Sun May 12 09:03:50 1996
> --------------------------
> (Creating file linux/.name...)
> Patching file linux/.name using Plan A...
> Hunk #1 succeeded at 1.
> Hmm... The next patch looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |diff -u --recursive --new-file v1.3.100/linux/CREDITS linux/CREDITS
> |--- v1.3.100/linux/CREDITS Sat May 11 10:42:03 1996
> |+++ linux/CREDITS Sat May 11 10:43:51 1996
> --------------------------
> File to patch:
>
> Hmmmmmmmmmmmmmmmm......
>
> +--Eric Plante------------------------------------------------------+
> | =ABDes femmes nues se jetaient dans ses bras avec une joie d=E9mente=BB=
> |
> | - Boris Vian |
> +-http://www.jsp.umontreal.ca/~planteer/ ---------------------------+
>
>

What I did was use zcat on the patch file, and pipe it to the patch
call line taken from patch-kernel, which I found with "grep patch
patch-kernel". I run this in my /usr/src/linux directory:

zcat patch-pre2.0.[1-7].gz | patch -p1 -s -N -E -d .

Note the dot at the end, which says to patch files relative to the
current directory (/usr/src/linux).

You don't get all the fancy feedback, and I haven't had a patch fail
yet, so I can't vouch for the usefullness of this patch method, other
than that my kernel compiles and runs flawlessly:

Linux andrewes 1.99.7 #4-pre-2.0 Thu May 23 15:02:49 CDT 1996 i486

---
Andrew C. Esh mailto:andrew_esh@cnt.com
Computer Network Technology andrewes@mtn.org (finger for PGP key)
6500 Wedgwood Road 612.550.8000 (main)
Maple Grove MN 55311 612.550.8229 (direct)
http://www.cnt.com - CNT Inc. Home Page
http://www.mtn.org/~andrewes - ACE Home Page


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.067 / U:3.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site