www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/01/25/10:57:47

From: kunst AT prl DOT philips DOT nl (Pieter Kunst)
Subject: 'Patch' program problem
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list)
Date: Mon, 25 Jan 93 16:16:17 MET
Mailer: Elm [revision: 70.30]

I have a problem with the 'patch' program supplied with DJGPP (1.09).
When a patch has been applied, the 'patch' program' is unable
to save the patched result file.
(patch: can't backup curses/curses.h, output is in c:/tmp/patchob00072)

Furthermore, the bad thing with this name scheme is if more than one file
is being patched, the patched files all end up in the same 'tmp' file,
only leaving the last file correctly patched !

E.g. when I use the command: 'patch -p0 <curses.pat >patch.out'
I get the following output of the 'patch program' (see 'patch.out').
Has anyone experienced similar problems ?
What am I doing wrong ?
Has anyone more information on the 'patch' program ?
Am I using an (too) old version of the patch program (NB DJGPP 1.09) ?

Any help is appreciated.

--

Pieter Kunst (kunst AT prl DOT philips DOT nl)



<start of 'curses.pat'>
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
diff  +context +recursive curses.old/curses.h curses/curses.h
*** curses.old/curses.h Sat Dec 05 18:16:06 1992
--- curses/curses.h     Sun Jan 17 03:20:36 1993
***************
*** 235,240 ****
--- 235,262 ----
  #endif

  /*----------------------------------------
+ *       GNU compilers     djgpp
+ *
+ *             djgpp definitions:
+ *                             GO32
+ *                             DOS
+ */
+ #ifdef __GO32__                                 /* You may have to define in m
akefile */
+ #  define GO32        1
+ #  define ANSI  1                   /* GNU supports ANSI C prototypes  */
+ #  define DOS 6
+ #      include <dos.h>
+ #  ifdef __FLEXOS__              /* define this on the command line      */
+ #    define FLEXOS 2           /* or latest major release value.       */
+ #  endif
+ #  define CURSES__32BIT__
+ #  ifdef _cplusplus
+ #      define CPLUSPLUS 1
+ #  endif
+ #  define NO_VSSCANF 1 /* define if no vsscanf() function in library */
+ #endif
+
+ /*----------------------------------------
  *       Watcom C/386 9.0X compiler
  *
  *       WATCOM definitions:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
<end of 'curses.pat'>


<start of 'patch.out'>
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Hmm...  Looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff  +context +recursive curses.old/curses.h curses/curses.h
|*** curses.old/curses.h        Sat Dec 05 18:16:06 1992
|--- curses/curses.h    Sun Jan 17 03:20:36 1993
--------------------------
Patching file curses/curses.h using Plan A...
Hunk #1 succeeded at 235.
patch: can't backup curses/curses.h, output is in c:/tmp/patchob00072
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

- Raw text -


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