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
| | |-+  Is there a tutorial for fixing "hunk failures" when attempting to apply a patch?
« previous next »
  • Print
Pages: [1]

Author Topic: Is there a tutorial for fixing "hunk failures" when attempting to apply a patch?  (Read 1494 times)

Offline lee321987

  • Member
  • *
  • Posts: 76
Is there a tutorial for fixing "hunk failures" when attempting to apply a patch?
« on: June 16, 2008, 06:17:35 PM »
   The subject is my question.

  If not would someone at least tell me this...
  Does this message:
Code: [Select]
Hunk #1 FAILED at 99.
refer line 99 of the file I'm trying to patch, or the .patch file itself.

   Thank you.
« Last Edit: June 16, 2008, 06:25:35 PM by lee321987 »
Logged
What are you waiting for? You're faster than this. Don't think you are... know you are. -- The Matrix

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Is there a tutorial for fixing "hunk failures" when attempting to apply a pa
« Reply #1 on: June 16, 2008, 11:07:00 PM »
It's referring to the file it's trying to patch.
Logged

Offline mschneider

  • Member
  • *
  • Posts: 235
Re: Is there a tutorial for fixing "hunk failures" when attempting to apply a pa
« Reply #2 on: June 17, 2008, 11:55:20 AM »
Hunk failures are just places where the patch and the file don't match up. Just go to the .rej file (automatically created) and paste in the code at the line numbers it says. Just manually apply it. 
Logged

Offline PaulPosition

  • Member
  • *
  • Posts: 76
Re: Is there a tutorial for fixing "hunk failures" when attempting to apply a pa
« Reply #3 on: June 17, 2008, 12:08:28 PM »
Uh...

Before you go in and f*ck everything up, I suggest you have a look at the .rej file itself. The parts with minus signs ( - ) are lines that should be replaced or removed, and the parts with plus signs ( + ) are lines that should be added.

When hunk fails it's either because the ' - ' lines couldn't be found NEAR the place they were expected to be (ie, a previous patch or revision added so much code that they are now hundreds of lines lower down the file) OR because those replaced lines couldn't be found AT ALL (ie, they've already been replaced or removed entirely).  In the later case, it's much, much, much more difficult - perhaps impossible - to apply your patch.
Logged

Offline lee321987

  • Member
  • *
  • Posts: 76
Re: Is there a tutorial for fixing "hunk failures" when attempting to apply a pa
« Reply #4 on: June 17, 2008, 09:27:59 PM »
   Thanks for the help guys.
   And <PaulPosition> -- excellent explanation.
Logged
What are you waiting for? You're faster than this. Don't think you are... know you are. -- The Matrix

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Is there a tutorial for fixing "hunk failures" when attempting to apply a patch?
 

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

Page created in 0.082 seconds with 15 queries.