Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: harrythegreat on August 07, 2006, 02:44:30 AM

Title: error during patch
Post by: harrythegreat on August 07, 2006, 02:44:30 AM
$ patch --binary -p0 < margin.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|---- ./apps/gui/gwps.c.orig        2006-07-14 18 (blablabla)
|+++ ./apps/gui/gwps.c              (blablabla)
--------------------------
File to patch:


this is what i got after type it.
wat's wrong?
i thought there's a problem in the patch file itself
so i tried with other patches but they didn work too
if i skip the file above, other missing files come up again and again



somebody help me  :'(
Title: Re: error during patch
Post by: antitheist on August 07, 2006, 04:09:42 AM
try changing the  -p0 parameter to either -p1 or -p2
Title: Re: error during patch
Post by: harrythegreat on August 07, 2006, 06:46:04 PM
still not working.. :'(
Title: Re: error during patch
Post by: Llorean on August 07, 2006, 06:52:48 PM
You are running the patch command from the /rockbox/ or /rockbox-devel/ folder, right? Where your sources are?
Title: Re: error during patch
Post by: Jon_ on August 08, 2006, 11:00:59 AM
do this make a folder called patches.. double click the patch file and find out that files are needed to be patched and drag those files in the patch folder then do this...

cd patches
patch < margin.patch

p.s this is how i usually do it there is a easier way though but i like this way.
Title: Re: error during patch
Post by: Febs on August 08, 2006, 01:18:18 PM
Or, you could just put the patch in your cvs root directory and use correct path information.
Title: Re: error during patch
Post by: harrythegreat on August 10, 2006, 04:31:41 PM
thx Llorean  :)

i got it

i was using wrong folder

stupid -_- :(