GrumbleDook Posted June 17, 2008 Posted June 17, 2008 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?
GrumbleDook Posted June 17, 2008 Author Posted June 17, 2008 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.
OutToLunch Posted June 18, 2008 Posted June 18, 2008 (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 June 18, 2008 by OutToLunch
GrumbleDook Posted June 19, 2008 Author Posted June 19, 2008 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now