R: patch can't find files by linux-stype path
Sat Oct 2 04:36:00 GMT 2010
--- Ven 1/10/10, Andrey Repin ha scritto:
> Greetings, Marco Atzeri!
> > C:\arc\games\online\WoW\AddOns\DebuffFilter-1.98
> > is not a cygwin path, so what is your shell ?
> > I will expect something like
> >> < ../.modd/DebuffFilter/TinyFontFix.patch
> >> can't find file to patch at input line 3
> >> Perhaps you should have used the -p or --strip
> > patch --help is your friend,
> > you need likely to specify
> > "-p number"
> 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
$ patch -i TinyFontFix-linpath.patch
can't find file to patch at input line 3
$ 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.
> But just as I said:
> >> But when I change these lines to
> >> --- DebuffFilter\DebuffFilter.xml 2010-09-18
> >> 16:25:08.000000000 +0400
> >> +++ DebuffFilter\DebuffFilter.xml 2010-10-01
> >> 17:54:35.746500000 +0400
> >> the patch works well.
> Testcase attached.
> Andrey Repin (email@example.com)
> 02.10.2010, <1:39>
> Sorry for my terrible english...
much better than my russian ;-)
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin