Rockbox mail archiveSubject: Re: How to install patches?
Re: How to install patches?
From: Lucas <facted_at_hotmail.com>
Date: Thu, 15 Apr 2004 13:09:19 -0400
Thanks a lot for your help! I was able to sucessfully patch a .diff file.
I'm trying to patch a WPS patch (#871285) now, but I get an error:
missing header for unified diff at line 10 of patch
can't find file to patch at input line 10
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|RCS file: /cvsroot/rockbox/apps/tree.c,v
|retrieving revision 1.220
|diff -u -r1.220 tree.c
|--- apps/tree.c 22 Dec 2003 09:48:18 -0000 1.220
|+++ apps/tree.c 5 Jan 2004 22:52:55 -0000
File to patch:
Any ideas? or is the patch faulty? (I tried -p0 and -p2 as you suggested,
but -p2 gives me the same error and p-1 gives me another error entirely.
Thanks for your help,
<Gajdos_at_metatem.net> wrote in message
> Under "Applying a patch".
> If we presume you're in a terminal (text) console in your rockbox
> build directory, usually what you'll need to do is:
> 1. cd .. (to the root of the rockbox source
> 2. patch -p1 <patchfile (this can vary - might be -p0 or -p2)
> 3. cd build
> 4. make
> "patchfile" is the .diff or .patch or .whatever you downloaded.
> A textfile with the differences - generated by "diff", in a format
> readable by "patch". Wow - gibberish...
> Well, this applies to when the patch changes several source files, which
> most often is the case.
> Hope you work it out.
> On Thu, 15 Apr 2004 at 11:32, Lucas wrote:
> > I've got my system up and running to compile the source. I tested it and
> > works. My problem now is patching the file. Any help with that? I looked
> > the patch documentation, but it's not great. what file do I have to run
> > "patch" to get it running so I can then actaully patch my file?
Received on 2004-04-15