delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/02/00:36:20

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FREEMAIL_REPLY,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <821543.82660.qm@web25502.mail.ukl.yahoo.com>
Date: Sat, 2 Oct 2010 04:36:05 +0000 (GMT)
From: Marco Atzeri <marco_atzeri AT yahoo DOT it>
Subject: Re: R: patch can't find files by linux-stype path
To: Andrey Repin <cygwin AT cygwin DOT com>
In-Reply-To: <63338435.20101002014533@mtu-net.ru>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--- Ven 1/10/10, Andrey Repin ha scritto:

> Greetings, Marco Atzeri!
>=20
> >>
> [C:\arc\games\online\WoW\AddOns\DebuffFilter-1.98]$patch
>=20
> > C:\arc\games\online\WoW\AddOns\DebuffFilter-1.98
> > is not a cygwin path, so what is your shell ?
>=20
> http://www.farmanager.com/index.php?l=3Den
>=20
> > I will expect something like
> >
> /cygdrive/c/arc/games/online/WoW/AddOns/DebuffFilter-1.98
>=20
> >> < ../.modd/DebuffFilter/TinyFontFix.patch
> >> can't find file to patch at input line 3
> >> Perhaps you should have used the -p or --strip
> option?
>=20
> > patch --help is your friend,
> > you need likely to specify=20
> > "-p number"=20
>=20
> Hope it's not a joke, just misunderstanding.
> Files are exactly where they are supposed to be.
> In ./DebuffFilter/* in this case.

Thanks for the test case.
You are right

 /tmp/DebuffFilter-1.98
$ patch -i TinyFontFix-linpath.patch
can't find file to patch at input line 3

but

 /tmp/DebuffFilter-1.98
$ patch -p0 -i TinyFontFix-linpath.patch
patching file DebuffFilter/DebuffFilter.xml

works. I don't know the reason.
Sometimes patch tries to be too smart.

>=20
> But just as I said:
>=20
> >> But when I change these lines to
> >> --- DebuffFilter\DebuffFilter.xml=A0 2010-09-18
> >> 16:25:08.000000000 +0400
> >> +++ DebuffFilter\DebuffFilter.xml=A0 2010-10-01
> >> 17:54:35.746500000 +0400
> >>=20
> >> the patch works well.
>=20
> Testcase attached.
>=20
>=20
> --
> WBR,
>  Andrey Repin (anrdaemon AT freemail DOT ru)
> 02.10.2010, <1:39>
>=20
> Sorry for my terrible english...

much better than my russian ;-)
Marco






--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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