🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #59196

Re: Upgrading Kernal by patching

#59196
From: WE Metzenthen
Date: Sun, 25 Feb 1996 00:00
37 lines
2081 bytes
Ken Yap (ken@syd.dit.CSIRO.AU) wrote:
: |	Hi, is it recomended to upgrade my kernel by patching??
: 
: It should work. Just make sure you patch from the right directory or
: you many end up with some stray files (usually new ones that were to be
: created in the new version). I think the magic incantation is patch -p0
: < patch... in /usr/src, but I forget. Any .rej files is a sign some
: patches didn't take.

Linus' patches for the kernel work fine.  My current kernel (1.3.67)
is the result of patching all the way from 1.3.60.  It is rare to
find problems with the patches and the most likely cause for a failure
is that you have made your own changes to the sources.

My preferred way of working is to put the patches into one directory
(/usr/src/linux-1.3) and cd to the directory containing the kernel
source (/usr/src/linux).  Then, for example, I would do:
     zcat ../linux-1.3/patch-1.3.67.gz | patch -p1 -s

This will usually produce no messages (the -s option is essential here).
Any message indicates that a problem has occured.  If per chance lots
of messages were received, you can begin to track down the reasons by 
looking for the .rej files, e.g. by:
     find . -name '*.rej'

You would normally want to clear up the unwanted .orig files with a command
like:
     find . -type f -name '*.orig' | xargs rm -f
(but be careful with such powerful commands).

-- 
Bill Metzenthen
Mathematics Department
Monash University
Clayton, Victoria, Australia
email: billm@vaxc.cc.monash.edu.au
       billm@euler.maths.monash.edu.au
Technical Details
Message-ID: <4gqr5b$m8q@harbinger.cc.monash.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4gjktl$5sq@ghostgum.hunterlink.net.au> <4gmqeaINNrf9@seurat.syd.dit.csiro.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,991524d302868df7
X-Google-Attributes: gid102983,public
From: billm@euler.maths.monash.edu.au (WE Metzenthen)
Subject: Re: Upgrading Kernal by patching
Date: 1996/02/25
Message-ID: <4gqr5b$m8q@harbinger.cc.monash.edu.au>
X-Deja-AN: 141118935
x-nntp-posting-user: billm
references: <4gjktl$5sq@ghostgum.hunterlink.net.au> <4gmqeaINNrf9@seurat.syd.dit.csiro.au>
organization: Monash University
newsgroups: aus.computers.linux