This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to install a patch?
- From: Alex Bennee <kernel-hacker at bennee dot com>
- To: Rebecca Bendick <bendick at mso dot umt dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 24 Jan 2006 18:58:23 +0000
- Subject: Re: how to install a patch?
- References: <C999A9BD-82E2-42F0-9D44-99F26BFC2E94@mso.umt.edu>
On Tue, 2006-01-24 at 11:51 -0700, Rebecca Bendick wrote:
> Well, I found a patch that seems like it would solve the
> libSystemStubs problem (http://gcc.gnu.org/ml/gcc-patches/2005-07/
> msg00532.html), but I don't know how to use it. Could someone tell
> me what to do to insert it in the right place?
patch is your friend. Save the message in the root of the source tree
and run something like:
patch -p0 < saved_msg.diff
Patch should ignore the email message header. I usually use dry-run to
make sure it will apply cleanly (and I've got the -p level correct).
patch -p0 --dry-run < saved_msg.diff
If it spews a load of warnings and failed hunks then try adjusting the
-p to something like -p1
See http://drupal.org/node/323 for more background
> Thanks!
--
Alex, homepage: http://www.bennee.com/~alex/
Under deadline pressure for the next week. If you want something, it can
wait. Unless it's blind screaming paroxysmally hedonistic ...