Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

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?

Posted

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.

Posted (edited)

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.

 

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.

Edited by OutToLunch
Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...