Where is patch?
René Berber
r.berber@computer.org
Wed Dec 14 21:30:00 GMT 2005
Dave Korn wrote:
[snip]
> And I imagine both of you have testcases available to prove your respective
> claims..... ?
Test case attached.
The files are part of mailman, I just included a shortened patch file and the
file to be patched. The test procedure (with the output I get):
$ mkdir patch-testcase
$ cd patch-testcase/
# [copy both files here]
$ ls
copyof-mailman-2.1.6.tar.bz2 indexing-2.1.6-0.1.patch
$ tar xvf copyof-mailman-2.1.6.tar.bz2
mailman-2.1.6/
mailman-2.1.6/templates/
mailman-2.1.6/templates/da/
mailman-2.1.6/templates/da/archidxfoot.html
$ patch --version
patch 2.5.8
...
$ cd mailman-2.1.6/
$ patch -p1 < ../indexing-2.1.6-0.1.patch
patching file templates/da/archidxfoot.html
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 18.
2 out of 2 hunks FAILED -- saving rejects to file templates/da/archidxfoot.html.rej
$ cd ..
$ rm -rf mailman-2.1.6/
$ tar xvf copyof-mailman-2.1.6.tar.bz2
...
$ cd mailman-2.1.6/
$ /usr/local/bin/patch --version
patch 2.5.4
...
$ /usr/local/bin/patch -p1 < ../indexing-2.1.6-0.1.patch
patching file templates/da/archidxfoot.html
---
René Berber
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copyof-mailman-2.1.6.tar.bz2
Type: application/octet-stream
Size: 555 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20051214/1cf28596/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: indexing-2.1.6-0.1.patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20051214/1cf28596/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list