delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/11/20:55:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <00e001c1b367$2d48be70$4a265fa6@LAPTOP>
From: "Jason Diamond" <jason AT injektilo DOT org>
To: <cygwin AT cygwin DOT com>
Subject: patch oddities.
Date: Mon, 11 Feb 2002 17:46:49 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

I'm new to Cygwin so don't know if this is the best place to report this. If
not, please let me know.

I installed patch 2.5-2 using Cygwin Setup. I tried to apply a patch that
was stored on /cygdrive/c to some files in ~. Using the -i option to specify
the patch file told me that there was "No such file or directory". But I
used tab completion to find the file so I knew it existed. Using the "<"
operator instead of "-i" did find the file, though.

Even though it found the file using the "<" operator, patch didn't work. I
got this message:

Assertion failed: hunk, file ..\patch.c, line 325

So I used Cygwin Setup to download the source for patch to see what was up
with that assertion. I opened up patch.c and jumped to line 325. There is no
assertion there. But 9 lines down on line 334 there is an assertion with a
single parameter of "hunk". That got me thinking that maybe the binary
version of patch wasn't recompiled with these (newer?) sources.

So I configure, make, and test the new patch.exe and everything works fine
now. The "-i" option can find files on /cygdrive/c and the patch was applied
successfully. (Though there was some line ending issues that I haven't
figured out yet--I don't know if that was caused by patch or me, though.)

Is it possible that the executable version of patch needs to be recompiled?

One more thing, the man page for patch wasn't installed after I first
installed everything (same for diff) but after rebuilding patch from source,
the man page is there. But I didn't type make install. Does anybody know how
that happened?

Thanks,
Jason



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019