I am running XAMPP on server 2003 R2 and trying to use patch (from gnuwin32) but it is constantly failing.
Is there anyone out there that has successfully used this tool to patch things?

I am running XAMPP on server 2003 R2 and trying to use patch (from gnuwin32) but it is constantly failing.
Is there anyone out there that has successfully used this tool to patch things?

What syntax are you using Tony?

I am changing to the directory containing moodle then running the patch tool using the full location.
e:/"program files"/gnuwin32/bin/patch.exe -p1 < e:/patches/admin_roles_assign_html.patch
I then get the error of:
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c line 354
In all reality there is something I am missing through not reading the docs fully ... but I have been back through them and cannot find it.
THe syntax is comparable between *nix and Gnuwin32 ... The only thing I have not done yet is pulled down the whole of gnuwin32, as I had previously been told I only needed Patch.
Any use chief? That's from a while back so 343 may now be 354. Just had a quick look at the file on the Joomla CVS and it does seem to be LF only.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.
Last edited by OutToLunch; 18th June 2008 at 08:36 AM.

Thanks to everyone who pointed out I needed to change the format of the file and to Steve Ludlow for a bit more hand holding.
Up and running now. I'll let people know how it goes.

Sorry, missed this Tony.
There are currently 1 users browsing this thread. (0 members and 1 guests)