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:

Rockbox Ports are now being developed for various digital audio players!

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

Author Topic: File to patch  (Read 1426 times)

Offline kochciu

  • Member
  • *
  • Posts: 4
File to patch
« on: July 11, 2007, 09:19:08 AM »
Hi all,

I've a small problem with patching... after i'm typing command with patch name there is in line below a sentence: File to patch: My question is which file I should patch?
Logged

Offline Domonoky

  • Developer
  • Member
  • *
  • Posts: 205
Re: File to patch
« Reply #1 on: July 11, 2007, 12:02:45 PM »
Hi..

please give full details what you are doing, and the exact error messages, otherwise we can only guess..

but i think you used the wrong -p parameter, or no at all.
Normally you type something like "patch -p0 < patchfile.patch" when you are in the root of the rockbox source.
Logged

Offline mschneider

  • Member
  • *
  • Posts: 235
Re: File to patch
« Reply #2 on: July 11, 2007, 02:10:12 PM »
You have to make sure the patch is in your "rockbox" folder or wherever and then look at the patch to find out which -p you need to use. For example if the patch said

--- blablabla/apps/plugins/bubbles.c
+++ blablabla/apps/plugins/bubbles.c

You would use -p1 to strip the blablabla (that's assuming that your patch file is in the rockbox folder).
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: File to patch
« Reply #3 on: July 11, 2007, 07:26:57 PM »
If I understand your question, this happens when the patch won't apply directly.  Try following the patching instructions and increase the p value; it also can work to place the patch in the folder(s) containing the file(s) to be patched, and to run the patch command from those folders.  (Note that you'll have to go into the patch to see what files are to be patched.)
Logged

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

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

Page created in 0.08 seconds with 15 queries.