🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1157

Modifications for patch-2.0.12g8

#1157
From: Gaumond Pierre
Date: Fri, 11 Dec 1992 19:38
84 lines
2610 bytes
Here are some patches for "patch-2.0.12g8" that can solve installation problems
in that package as well as a bug in option decoding for some SGI machines.

Modificatins in config.h.in and getopt.c come from me. Those in patch.c
come from Francois Pinard. Another poster has also suggested the same
corrections in patch.c.

I am on an SGI 4D/380 machine under IRIX 4.0.1 (System V Unix).


*** config.h.in.orig	Thu Dec 10 10:54:26 1992
--- config.h.in	Thu Dec 10 10:57:06 1992
***************
*** 21,26 ****
--- 21,29 ----
  /* Define if the system has unistd.h.  */
  #undef HAVE_UNISTD_H
  
+ /* Define if the system has alloca.h.  */
+ #undef HAVE_ALLOCA_H
+ 
  /* Define as either int or void -- the type that signal handlers return.  */
  #undef RETSIGTYPE

*** getopt.c.orig	Thu Dec 10 10:45:18 1992
--- getopt.c	Thu Dec 10 10:46:47 1992
***************
*** 19,24 ****
--- 19,25 ----
     along with this program; if not, write to the Free Software
     Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  
+ #include "config.h"
  /* AIX requires this to be the first thing in the file.  */
  #ifdef __GNUC__
  #define alloca __builtin_alloca
*** patch.c.orig	Fri Dec 11 09:03:51 1992
--- patch.c	Fri Dec 11 11:38:41 1992
***************
*** 125,130 ****
--- 125,132 ----
  
  /* Apply a set of diffs as appropriate. */
  
+ char *program_name;
+ 
  int
  main(argc,argv)
  int argc;
***************
*** 139,144 ****
--- 141,148 ----
      int failtotal = 0;
      int i;
  
+     program_name = argv[0];
+ 
      setbuf(stderr, serrbuf);
      for (i = 0; i<MAXFILEC; i++)
  	filearg[i] = Nullch;
***************
*** 474,480 ****
  void
  get_some_switches()
  {
!     Reg1 char optc;
  
      rejname[0] = '\0';
      optind_last = optind;
--- 478,484 ----
  void
  get_some_switches()
  {
!     Reg1 int optc;
  
      rejname[0] = '\0';
      optind_last = optind;

o
-- 
Pierre Gaumond.        gaumondp@ERE.UMontreal.CA
Services Informatiques, Universite de Montreal. 
C.P. 6128, Succursale "A", Montreal,            
Quebec, Canada.   H3C 3J7                       
Technical Details
Message-ID: <1992Dec11.193858.23036@cc.umontreal.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ere.umontreal.CA!gaumondp

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ere.umontreal.CA!gaumondp
From: gaumondp@ere.umontreal.CA (Gaumond Pierre)
Subject: Modifications for patch-2.0.12g8
Message-ID: <1992Dec11.193858.23036@cc.umontreal.ca>
Sender: gnulists@ai.mit.edu
Organization: Universite de Montreal
Distribution: gnu
Date: Fri, 11 Dec 1992 19:38:58 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 85