home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume13 / perl / patches6-10 / patch7 < prev    next >
Encoding:
Internet Message Format  |  1988-01-30  |  7.4 KB

  1. Path: bbn.com!bbn!uwmcsd1!ig!agate!pasteur!ames!elroy!devvax!lroot
  2. From: lroot@devvax.JPL.NASA.GOV (The Superuser)
  3. Newsgroups: comp.sources.bugs
  4. Subject: perl 1.0 patch #7
  5. Summary: This is an official patch for perl 1.0.  Please apply it.
  6. Message-ID: <1158@devvax.JPL.NASA.GOV>
  7. Date: 26 Jan 88 23:04:26 GMT
  8. Organization: Jet Propulsion Laboratory, Pasadena, CA
  9. Lines: 273
  10.  
  11. System: perl version 1.0
  12. Patch #: 7
  13. Priority: HIGH if malloc.c doesn't compile
  14. Subject: use of included malloc.c should be optional
  15. From: gatech!skeeve!arnold (Arnold D. Robbins)
  16.  
  17. Description:
  18.     The version of malloc.c that comes with perl was not really intended
  19.     to be used everywhere--it was included mostly for debugging purposes.
  20.     It's a nice little package, however, so I'm making it optional (via
  21.     Configure) as to whether you want it or not.
  22.  
  23. Fix:    From rn, say "| patch -p0 -d DIR", where DIR is your perl source
  24.     directory.  Outside of rn, say "cd DIR; patch -p0 <thisarticle".
  25.     If you don't have the patch program, apply the following by hand,
  26.     or get patch.
  27.  
  28. >>> You must say -p0 to patch, or it will try to patch ./Makefile.SH twice,
  29. >>> instead of patching both ./Makefile.SH and x2p/Makefile.SH.
  30.  
  31.     If patch indicates that patchlevel is the wrong version, you may need
  32.     to apply one or more previous patches, or the patch may already
  33.     have been applied.  See the patchlevel.h file to find out what has or
  34.     has not been applied.  In any event, don't continue with the patch.
  35.  
  36.     If you are missing previous patches they can be obtained from me:
  37.  
  38.     Larry Wall
  39.     lwall@jpl-devvax.jpl.nasa.gov
  40.  
  41.     If you send a mail message of the following form it will greatly speed
  42.     processing:
  43.  
  44.     Subject: Command
  45.     @SH mailpatch PATH perl 1.0 LIST
  46.            ^ note the c
  47.  
  48.     where PATH is a return path FROM ME TO YOU in Internet notation, and
  49.     LIST is the number of one or more patches you need, separated by spaces,
  50.     commas, and/or hyphens.  Saying 35- says everything from 35 to the end.
  51.  
  52.     You can also get the patches via anonymous FTP from
  53.     jpl-devvax.jpl.nasa.gov (128.149.8.43).
  54.  
  55. Index: patchlevel.h
  56. Prereq: 6
  57. 1c1
  58. < #define PATCHLEVEL 6
  59. ---
  60. > #define PATCHLEVEL 7
  61.  
  62. Index: Configure
  63. Prereq: 1.0.1.2
  64. *** Configure.old    Tue Jan 26 14:16:00 1988
  65. --- Configure    Tue Jan 26 14:16:05 1988
  66. ***************
  67. *** 8,14 ****
  68.   # and edit it to reflect your system.  Some packages may include samples
  69.   # of config.h for certain machines, so you might look for one of those.)
  70.   #
  71. ! # $Header: Configure,v 1.0.1.2 88/01/24 03:51:55 root Exp $
  72.   #
  73.   # Yes, you may rip this off to use in other distribution packages.
  74.   # (Note: this Configure script was generated automatically.  Rather than
  75. --- 8,14 ----
  76.   # and edit it to reflect your system.  Some packages may include samples
  77.   # of config.h for certain machines, so you might look for one of those.)
  78.   #
  79. ! # $Header: Configure,v 1.0.1.3 88/01/26 14:14:14 root Exp $
  80.   #
  81.   # Yes, you may rip this off to use in other distribution packages.
  82.   # (Note: this Configure script was generated automatically.  Rather than
  83. ***************
  84. *** 79,84 ****
  85. --- 79,87 ----
  86.   d_voidsig=''
  87.   libc=''
  88.   libnm=''
  89. + mallocsrc=''
  90. + mallocobj=''
  91. + usemymalloc=''
  92.   mansrc=''
  93.   manext=''
  94.   models=''
  95. ***************
  96. *** 1249,1255 ****
  97. --- 1252,1283 ----
  98.       esac
  99.   fi
  100.   
  101. + : determine which malloc to compile in
  102.   echo " "
  103. + case "$usemymalloc" in
  104. + '')
  105. +     if bsd || v7; then
  106. +     dflt='y'
  107. +     else
  108. +     dflt='n'
  109. +     fi
  110. +     ;;
  111. + *)  dflt="$usemymalloc"
  112. +     ;;
  113. + esac
  114. + rp="Do you wish to attempt to use the malloc that comes with $package? [$dflt]"
  115. + $echo $n "$rp $c"
  116. + . myread
  117. + case "$ans" in
  118. + '') ans=$dflt;;
  119. + esac
  120. + usemymalloc="$ans"
  121. + case "$ans" in
  122. + y*) mallocsrc='malloc.c'; mallocobj='malloc.o';;
  123. + *) mallocsrc=''; mallocobj='';;
  124. + esac
  125. + echo " "
  126.   echo "End of configuration questions."
  127.   echo " "
  128.   
  129. ***************
  130. *** 1309,1314 ****
  131. --- 1337,1345 ----
  132.   d_voidsig='$d_voidsig'
  133.   libc='$libc'
  134.   libnm='$libnm'
  135. + mallocsrc='$mallocsrc'
  136. + mallocobj='$mallocobj'
  137. + usemymalloc='$usemymalloc'
  138.   mansrc='$mansrc'
  139.   manext='$manext'
  140.   models='$models'
  141.  
  142. Index: Makefile.SH
  143. Prereq: 1.0.1.2
  144. *** Makefile.SH.old    Tue Jan 26 14:55:03 1988
  145. --- Makefile.SH    Tue Jan 26 14:15:06 1988
  146. ***************
  147. *** 14,22 ****
  148.   esac
  149.   echo "Extracting Makefile (with variable substitutions)"
  150.   cat >Makefile <<!GROK!THIS!
  151. ! # $Header: Makefile.SH,v 1.0.1.2 88/01/26 08:46:04 root Exp $
  152.   #
  153.   # $Log:    Makefile.SH,v $
  154.   # Revision 1.0.1.2  88/01/26  08:46:04  root
  155.   # patch 4: make depend didn't work right if . wasn't in PATH.
  156.   # 
  157. --- 14,25 ----
  158.   esac
  159.   echo "Extracting Makefile (with variable substitutions)"
  160.   cat >Makefile <<!GROK!THIS!
  161. ! # $Header: Makefile.SH,v 1.0.1.3 88/01/26 14:14:52 root Exp $
  162.   #
  163.   # $Log:    Makefile.SH,v $
  164. + # Revision 1.0.1.3  88/01/26  14:14:52  root
  165. + # Added mallocsrc stuff.
  166. + # 
  167.   # Revision 1.0.1.2  88/01/26  08:46:04  root
  168.   # patch 4: make depend didn't work right if . wasn't in PATH.
  169.   # 
  170. ***************
  171. *** 36,41 ****
  172. --- 39,46 ----
  173.   LDFLAGS = $ldflags
  174.   SMALL = $small
  175.   LARGE = $large $split
  176. + mallocsrc = $mallocsrc
  177. + mallocobj = $mallocobj
  178.   
  179.   libs = $libnm -lm
  180.   !GROK!THIS!
  181. ***************
  182. *** 57,68 ****
  183.   
  184.   h = $(h1) $(h2)
  185.   
  186. ! c1 = arg.c array.c cmd.c dump.c form.c hash.c malloc.c
  187.   c2 = search.c stab.c str.c util.c version.c
  188.   
  189.   c = $(c1) $(c2)
  190.   
  191. ! obj1 = arg.o array.o cmd.o dump.o form.o hash.o malloc.o
  192.   obj2 = search.o stab.o str.o util.o version.o
  193.   
  194.   obj = $(obj1) $(obj2)
  195. --- 62,73 ----
  196.   
  197.   h = $(h1) $(h2)
  198.   
  199. ! c1 = arg.c array.c cmd.c dump.c form.c hash.c $(mallocsrc)
  200.   c2 = search.c stab.c str.c util.c version.c
  201.   
  202.   c = $(c1) $(c2)
  203.   
  204. ! obj1 = arg.o array.o cmd.o dump.o form.o hash.o $(mallocobj)
  205.   obj2 = search.o stab.o str.o util.o version.o
  206.   
  207.   obj = $(obj1) $(obj2)
  208.  
  209. If this complains below, perhaps you neglected to say patch -p0.
  210. If so, patch is trying to apply this patch to ./Makefile.SH instead
  211. of x2p/Makefile.SH.  Abort this patch and reapply as you did before
  212. only this time add both -p0 and -N, e.g.
  213.     patch -p0 -N -d DIR < thisarticle
  214.  
  215. Index: x2p/Makefile.SH
  216. Prereq: 1.0
  217. *** x2p/Makefile.SH.old    Tue Jan 26 14:16:41 1988
  218. --- x2p/Makefile.SH    Tue Jan 26 14:17:13 1988
  219. ***************
  220. *** 12,22 ****
  221.   case "$0" in
  222.   */*) cd `expr X$0 : 'X\(.*\)/'` ;;
  223.   esac
  224.   echo "Extracting x2p/Makefile (with variable substitutions)"
  225.   cat >Makefile <<!GROK!THIS!
  226. ! # $Header: Makefile.SH,v 1.0 87/12/18 17:50:17 root Exp $
  227.   #
  228.   # $Log:    Makefile.SH,v $
  229.   # Revision 1.0  87/12/18  17:50:17  root
  230.   # Initial revision
  231.   # 
  232. --- 12,29 ----
  233.   case "$0" in
  234.   */*) cd `expr X$0 : 'X\(.*\)/'` ;;
  235.   esac
  236. + case "$mallocsrc" in
  237. + '') ;;
  238. + *) mallocsrc="../$mallocsrc";;
  239. + esac
  240.   echo "Extracting x2p/Makefile (with variable substitutions)"
  241.   cat >Makefile <<!GROK!THIS!
  242. ! # $Header: Makefile.SH,v 1.0.1.1 88/01/26 14:15:24 root Exp $
  243.   #
  244.   # $Log:    Makefile.SH,v $
  245. + # Revision 1.0.1.1  88/01/26  14:15:24  root
  246. + # Added mallocsrc stuff.
  247. + # 
  248.   # Revision 1.0  87/12/18  17:50:17  root
  249.   # Initial revision
  250.   # 
  251. ***************
  252. *** 31,36 ****
  253. --- 38,45 ----
  254.   LDFLAGS = $ldflags
  255.   SMALL = $small
  256.   LARGE = $large $split
  257. + mallocsrc = $mallocsrc
  258. + mallocobj = $mallocobj
  259.   
  260.   libs = $libnm -lm
  261.   !GROK!THIS!
  262. ***************
  263. *** 49,57 ****
  264.   
  265.   h = EXTERN.h INTERN.h config.h handy.h hash.h a2p.h str.h util.h
  266.   
  267. ! c = hash.c ../malloc.c str.c util.c walk.c
  268.   
  269. ! obj = hash.o malloc.o str.o util.o walk.o
  270.   
  271.   lintflags = -phbvxac
  272.   
  273. --- 58,66 ----
  274.   
  275.   h = EXTERN.h INTERN.h config.h handy.h hash.h a2p.h str.h util.h
  276.   
  277. ! c = hash.c $(mallocsrc) str.c util.c walk.c
  278.   
  279. ! obj = hash.o $(mallocobj) str.o util.o walk.o
  280.   
  281.   lintflags = -phbvxac
  282.   
  283.