Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  how to apply patch
« previous next »
  • Print
Pages: [1] 2

Author Topic: how to apply patch  (Read 12865 times)

Offline kamalneet

  • Member
  • *
  • Posts: 123
  • ipod mini 2g 4GB
how to apply patch
« on: April 15, 2006, 09:44:22 PM »
how do i apply various patches i see on left tops link
Logged

Offline RotAtoR

  • Developer
  • Member
  • *
  • Posts: 170
  • Somewhere but not here
Re: how to apply patch
« Reply #1 on: April 15, 2006, 09:58:57 PM »
Instructions on how to apply patches are located here:
http://www.rockbox.org/twiki/bin/view/Main/WorkingWithPatches

This assumes that you have a development environment already set up with the Rockbox source checked out of CVS and the Gnu toolchain in place to compile for your desired target. If you don't have this set up you may want to take a look at:
http://www.rockbox.org/twiki/bin/view/Main/SimpleGuideToCompiling
Logged

Offline eK3eKyToPa

  • Member
  • *
  • Posts: 75
Re: how to apply patch
« Reply #2 on: July 22, 2006, 03:21:33 AM »
I try to apply a patch but it says
Quote
C:\rockbox>patch --binary -p0 < doom_scroll3.patch
'patch' is not recognized as an internal or external command,
operable program or batch file.
What is wrong?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: how to apply patch
« Reply #3 on: July 22, 2006, 05:22:34 AM »
Quote from: eK3eKyToPa on July 22, 2006, 03:21:33 AM
I try to apply a patch but it says
Quote
C:\rockbox>patch --binary -p0 < doom_scroll3.patch
'patch' is not recognized as an internal or external command,
operable program or batch file.
What is wrong?

You don't have patch.  It should have been included with your cygwin install.  Are you sure you have cygwin working?
Logged

Offline stripwax

  • Developer
  • Member
  • *
  • Posts: 84
Re: how to apply patch
« Reply #4 on: July 22, 2006, 05:49:37 AM »
Quote from: eK3eKyToPa on July 22, 2006, 03:21:33 AM
I try to apply a patch but it says
Quote
C:\rockbox>patch --binary -p0 < doom_scroll3.patch
'patch' is not recognized as an internal or external command,
operable program or batch file.
What is wrong?
If you're really using Cygwin, you would see a bash prompt such as
Quote
$
, not the Windows/MS-DOS prompt such as
Quote
C:\rockbox>

Are you sure you're actually running the Cygwin shell when trying to patch/compile?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: how to apply patch
« Reply #5 on: July 22, 2006, 07:36:04 PM »
Quote from: stripwax on July 22, 2006, 05:49:37 AM
Quote from: eK3eKyToPa on July 22, 2006, 03:21:33 AM
I try to apply a patch but it says
Quote
C:\rockbox>patch --binary -p0 < doom_scroll3.patch
'patch' is not recognized as an internal or external command,
operable program or batch file.
What is wrong?
If you're really using Cygwin, you would see a bash prompt such as
Quote
$
, not the Windows/MS-DOS prompt such as
Quote
C:\rockbox>

Are you sure you're actually running the Cygwin shell when trying to patch/compile?

Not always:

Quote
C:\Documents and Settings\mike.EEB\My Documents>patch --binary -p0 < lock.c
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.

You can also change the Windows PATH :)

But yeah, I'm guessing he either didn't install Cygwin, isn't running Cygwin or didn't correctly install the needed components.
Logged

Offline eK3eKyToPa

  • Member
  • *
  • Posts: 75
Re: how to apply patch
« Reply #6 on: August 26, 2006, 03:12:28 AM »
Again problems:

Do I do it right or something wrong and what I have to write next
Lame questions but i cant get it.
PLZ help
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: how to apply patch
« Reply #7 on: August 26, 2006, 12:23:32 PM »
As stated in the patching guides, did you then try this increasing the p value 1-by-1 up to 4 or 5?  That sometimes will handle this.

Otherwise, try putting a copy of the patch in each of the the folders holding the files to be patched, and try patching again (I can't recall right now if it also has been helpful to run the patch command from within those directories as well).
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: how to apply patch
« Reply #8 on: August 29, 2006, 05:20:22 AM »
as the screenshot says you're in the wrong directory. patch expexts the file it displays (apps/plugins/doom/d_event.h) and it hasn't found it, indicating that you need to change in that subfolder from what you can do a "ls apps/plugins/doom/d_event.h" successfully. Increasing the p value won't help in that case. (Another possibility would be that this file is missing from your source tree but if you have an actual cvs source tree this shouldn't happen).
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline eK3eKyToPa

  • Member
  • *
  • Posts: 75
Re: how to apply patch
« Reply #9 on: September 03, 2006, 05:11:31 AM »
I'm absolutely lame on cygwin so i'll thx you if tell me what exactly to write and change the directory to apps/plugins/doom/ or what it need to be.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: how to apply patch
« Reply #10 on: September 03, 2006, 09:57:25 AM »
I can't write "exactly" what to do as I don't know your file system structure. What subfolders do you have inside of the folder you're in? I guess cvs generated a "rockbox" or "rockbox-dev" subfolder to which you need to change before. Or: before running patch make sure your actual folder contains the subfolders "apps", "firmware", "tools" (and most probably some more).

Also, why don't you try the vmware image? It comes with a preconfigured environment and there are quite some people around who use it and most probably can make a lot more assumptions than in this case.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline kl3618

  • Member
  • *
  • Posts: 4
Re: how to apply patch
« Reply #11 on: February 05, 2008, 11:59:47 PM »
Hello, I have a problem with installing one of the patches..
This is what the top of my patch says:

Index: tools/convbdf.c
===================================================================
--- tools/convbdf.c   (Revision 16053)
+++ tools/convbdf.c   (Arbeitskopie)
@@ -969,6 +969,7 @@
             "  %d,  /* ascent */\n"
             "  %d,  /* firstchar */\n"
             "  %d,  /* size */\n"
+            "  0,  /* depth */\n"
             "  _font_bits, /* bits */\n"
             "  %s  /* offset */\n"
             "  %s\n"
Index: tools/buildzip.pl
===================================================================

ok and this is how far I am at...
I open cygwin
$ cd g:\.rockbox
then it show
kevin@kevin-####(numbers) cygdrive/g/.rockbox
then when I type in patch < mypatch.diff it gives me an error saying "Batch: Patch: file directory not found." or something similar to that. Do you know what I did wrong? is it because I placed the mypatch.diff file in the wrong place? if so where do I place it? if not can you please help me resolve this problem.

Thank You.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: how to apply patch
« Reply #12 on: February 06, 2008, 12:07:56 AM »
Quote from: kl3618 on February 05, 2008, 11:59:47 PM
Hello, I have a problem with installing one of the patches..

Great, but it is not OK to copy and paste messages from the forums and PM them to me.

Quote from: kl3618 on February 05, 2008, 11:59:47 PM
then when I type in patch < mypatch.diff it gives me an error saying "Batch: Patch: file directory not found." or something similar to that. Do you know what I did wrong? is it because I placed the mypatch.diff file in the wrong place? if so where do I place it? if not can you please help me resolve this problem.


Post the actual error message if you want a good answer.

But I'm going to guess you don't have patch installed in cygwin.  
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: how to apply patch
« Reply #13 on: February 06, 2008, 12:55:11 AM »
Quote from: saratoga on February 06, 2008, 12:07:56 AM
Great, but it is not OK to copy and paste messages from the forums and PM them to me.
Hahahahaa awesome.

Quote from: kl3618 on February 05, 2008, 11:59:47 PM
$ cd g:\.rockbox
You're doing it wrong. You patch against the source code, not against a compiled build. Read http://www.rockbox.org/twiki/bin/view/Main/SimpleGuideToCompiling
Logged

Offline kl3618

  • Member
  • *
  • Posts: 4
Re: how to apply patch
« Reply #14 on: February 06, 2008, 01:24:39 AM »
I'm sorry about that. but how do I have a patch installed in cygwin.
I read the the stuff on the compiling website and the patching website.. but I still don't understand. = = can you guide me or give me an example?
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  how to apply patch
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.125 seconds with 14 queries.