Game Development Community

Patching Problem

by XoCluTch · in Torque Game Engine · 04/22/2005 (10:15 pm) · 6 replies

When i try to apply this patch to torque i get the following error:

patch -p0 < cryptainer.patch
patching file engine/targets.torque.mk
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 340

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

using gnuwin32 patch program...

Anyhelp with this i would greatly apprecaite it.

#1
04/23/2005 (3:40 pm)
You most likely have changed code in your project that the hunk is appropriate for: go into the patch.c line, read the hunk, see what it is trying to do, and apply it manually. You may, based on the nature of your error, have to apply the rest of the patch manually as well (it sounds like your gnu patch program may be buggy).
#2
04/23/2005 (4:52 pm)
Alright ill check it out thanks for fast response. ill post what i find.
#3
04/23/2005 (5:03 pm)
Actually I mean the cryptainer.patch file, not the patch.c file. Sorry if that pushed you into the wrong direction :(

The .patch files contains the code that gnupatch is supposed to change, in a semi-cryptic series of hunks that tell the patch executable how to modify the code.
#4
04/23/2005 (5:44 pm)
Ya thats what i assumed
#5
04/24/2005 (8:19 am)
Try the patch in the Cygwin distribution. Cygwin stays pretty up-to-date with open source software ports to Win32. If you can find the bug and submit a patch for patch ;) all the better!
#6
05/08/2005 (5:25 pm)
I got it to work using cygwin, thanks for help