[101453] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Trouble with Patch

daemon@ATHENA.MIT.EDU (Thomas Ribbrock \(Design/DEG\))
Thu Nov 26 10:50:52 1998

Date: Thu, 26 Nov 1998 15:51:59 +0000
From: "Thomas Ribbrock \(Design/DEG\)" <argathin@iname.com>
To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
Mail-Followup-To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
In-Reply-To: <217E99C3DE7AD2119F9A0000E8DC3591161C@SU-LOCCO>; from Warren J. Beckett on Thu, Nov 26, 1998 at 11:24:28PM +1100
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Warren J. Beckett writes:
> 
> I am a newbie and am having trouble with the patch command. I'm trying
> to patch my kernel (2.0.36) 5.2 with a ipchains patch and nothing
> happens. If I enter for example gunzip patch-ipchaines.blah | patch p0
> it return to a prompt straight away, no error, no information, no
> nothing.
[...]

Ok, here's what I usually do:
1) I unpack the program I want to patch and install. In most cases, this is
   a tarball, so I untar (gunzip, if necessary) it and usually end up with a
   subdirectory containing all sources.
2) I copy the patch file into that directory.
3) if necessary, I gunzip that file (if the patch file ends in ".gz", that
   is)
4) I use "patch -p1 < patchfile" to patch.

I have never patched the kernel (so far...), so I can't help you with your
particular case, but maybe the generic steps are already of some help.

Regards,

Thomas
-- 
             "Look, Ma, no obsolete quotes and plain text only!"

     Thomas Ribbrock | http://www.bigfoot.com/~kaytan | ICQ#: 15839919
   "You have to live on the edge of reality - to make your dreams come true!"


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post