This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to install a patch?


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 ...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]