+ Post New Thread
Results 1 to 6 of 6
Windows Thread, Patching things *nix style in Technical; I am running XAMPP on server 2003 R2 and trying to use patch (from gnuwin32) but it is constantly failing. ...
  1. #1

    GrumbleDook's Avatar
    Join Date
    Jul 2005
    Location
    Gosport, Hampshire
    Posts
    9,950
    Thank Post
    1,345
    Thanked 1,799 Times in 1,117 Posts
    Blog Entries
    19
    Rep Power
    597

    Patching things *nix style

    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?

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    What syntax are you using Tony?

  3. #3

    GrumbleDook's Avatar
    Join Date
    Jul 2005
    Location
    Gosport, Hampshire
    Posts
    9,950
    Thank Post
    1,345
    Thanked 1,799 Times in 1,117 Posts
    Blog Entries
    19
    Rep Power
    597
    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.

  4. #4

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65
    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.
    Last edited by OutToLunch; 18th June 2008 at 08:36 AM.

  5. #5

    GrumbleDook's Avatar
    Join Date
    Jul 2005
    Location
    Gosport, Hampshire
    Posts
    9,950
    Thank Post
    1,345
    Thanked 1,799 Times in 1,117 Posts
    Blog Entries
    19
    Rep Power
    597
    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.

  6. #6


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    Sorry, missed this Tony.

SHARE:
+ Post New Thread

Similar Threads

  1. patching quicktime, adobe falash java
    By projector1 in forum How do you do....it?
    Replies: 5
    Last Post: 11th April 2008, 03:31 PM
  2. Get married in style
    By StewartKnight in forum General Chat
    Replies: 7
    Last Post: 4th March 2008, 10:05 AM
  3. Performance costs of fibre patching
    By meastaugh1 in forum Wireless Networks
    Replies: 7
    Last Post: 12th December 2007, 03:25 PM
  4. Patching Windows
    By Michael in forum Windows
    Replies: 10
    Last Post: 19th December 2005, 12:14 PM
  5. Kiosk-style XP PC?
    By tarquel in forum Windows
    Replies: 15
    Last Post: 24th June 2005, 09:38 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •