Difference between revisions of "Talk:Patching"

From NetHackWiki
Jump to navigation Jump to search
Line 13: Line 13:
  
 
What did I do wrong?
 
What did I do wrong?
 +
 +
==What?==
 +
 +
I'd like to use this moment to say: WHAT?! This instruction is completely incomprehensible!
 +
"note: On MS-Windows, the patchfile must be a text file, i.e. CR-LF must be used as line endings. A file with LF may give the error: "Assertion failed, hunk, file patch.c, line 343," unless the option '--binary' is given."
 +
What's the patchfile? What does CR-LF mean? What does "line ending" mean? What option "--binary"? What the hell is going on here? I know that the majority of NetHack players are Computer geeks, but you don't have to make it even harder for normal people than it already is! [[User:MC-Dirty|MC-Dirty]] 12:27, 31 July 2009 (UTC)

Revision as of 12:27, 31 July 2009

Can someone please expand on this? As a windoze programmer I have never used patch and am trying to apply the vs2005 patch and it keeps failing and I do not understand why...

missing header for context diff at line 13 of patch

I assume you're speaking of this patch. I unpacked nethack's sources, and downloaded the vc2005-file in the source root directory, and typed
patch -p0 < vc2005

in the command line, which seems to work ok for me, but I'm on linux... Haven't tried compiling nethack with that patch either. --Paxed 14:59, 19 July 2007 (UTC)

Using cygwin helps. I tried using a windows binary of patch, but that didn't work too well. I eventually installed cygwin and used that to apply a patch (menucolors) and it worked.Addps4cat 13:31, 7 September 2007 (UTC)

Now what?

Well everything went all right, except that none of the patches still took any effect. I concluded that they'd have no way of knowing where my SLASH'EM is, so I copy-pasted all them files to the source directory. Still no effect.

What did I do wrong?

What?

I'd like to use this moment to say: WHAT?! This instruction is completely incomprehensible! "note: On MS-Windows, the patchfile must be a text file, i.e. CR-LF must be used as line endings. A file with LF may give the error: "Assertion failed, hunk, file patch.c, line 343," unless the option '--binary' is given." What's the patchfile? What does CR-LF mean? What does "line ending" mean? What option "--binary"? What the hell is going on here? I know that the majority of NetHack players are Computer geeks, but you don't have to make it even harder for normal people than it already is! MC-Dirty 12:27, 31 July 2009 (UTC)