Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: How to install patches?
From: Lucas (facted_at_hotmail.com)
Date: 2004-04-15


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:
--------------------------
|? build
|? file.patch
|Index: apps/tree.c
|=============================================================
|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,
Lucas

<Gajdos_at_metatem.net> wrote in message
news:Pine.LNX.4.58.0404151736060.15129_at_barf.metatem.net...
> Read
> http://rockbox.haxx.se/docs/patch.html
> 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.
> /JG
>
>
>
> 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
it
> > works. My problem now is patching the file. Any help with that? I looked
at
> > the patch documentation, but it's not great. what file do I have to run
from
> > "patch" to get it running so I can then actaully patch my file?
> _______________________________________________
> http://cool.haxx.se/mailman/listinfo/rockbox
>

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa