I tried to apply Daniel Pittman's patch created by `cvs diff' to my
workspace using `patch -d /my/workspace'. However, it only patched
the files in the root directory, like configure.in. Files in the
lwlib/ directory couldn't be found by patch, even though the headers
for those files look like:
Index: lwlib/xlwradio.h
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/lwlib/Attic/xlwradio.h,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 xlwradio.h
--- xlwradio.h 1999/07/30 09:13:56 1.1.2.1
+++ xlwradio.h 1999/12/16 09:34:00
The documentation for `patch' indicates that it should look at the
Index: line when patching. So why couldn't it find the file to
patch? More generally, what is the procedure for applying patches
generated by `cvs diff'?
Why doesn't cvs generate headers that look like this instead? patch
understands those.
Index: lwlib/xlwradio.h
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/lwlib/Attic/xlwradio.h,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 xlwradio.h
--- lwlib/xlwradio.h 1999/07/30 09:13:56 1.1.2.1
+++ lwlib/xlwradio.h 1999/12/16 09:34:00
I'm using patch 2.5. Should I bother the CVS or the patch
maintainers with a bug report? If so, which program is buggy?
Martin