[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-patch] patch failure
From: |
Martin Panter |
Subject: |
Re: [bug-patch] patch failure |
Date: |
Tue, 23 Nov 2010 09:54:52 +1100 |
On 22 November 2010 09:07, Richard Deglin - SISA
<address@hidden> wrote:
> C:\src\894>patch -p1 -i ..\894_for_lsi\894_for_lsi.diff
>
> patching file source/Build/CoreObjects.mk
>
> Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354
I'm pretty sure this is the issue mentioned at:
http://gnuwin32.sourceforge.net/packages/patch.htm#install
http://gnuwin32.sourceforge.net/faq.html#Patch_exits_with_the_message_Assertion_failed,_hunk,_file_patch.c,_line_354_
I used to use Patch on Windows and from memory the problem was related
to Patch opening the diff file in "text" mode and trying to seek in
the file. Seeking text mode files doesn't work properly in a common
Windows C library. I made a workaround for Patch to treat the file as
unseekable, but looking at the current patch source code I don't think
it ever got merged in. It's the patch-seekable.diff in this email if
you're interested:
http://lists.gnu.org/archive/html/bug-patch/2009-05/msg00004.html
-Martin