*BSD News Article 7606


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!uw-beaver!rice!news.Rice.edu!rich
From: rich@Rice.edu (Richard Murphey)
Subject: [386BSD] Ghostscript 2.5.2 patches
In-Reply-To: nbladt@autelca.ascom.ch's message of Mon, 9 Nov 1992 07:35:00 GMT
Message-ID: <RICH.92Nov9085925@omicron.Rice.edu>
Sender: news@rice.edu (News)
Reply-To: Rich@rice.edu
Organization: Department of Electrical and Computer Engineering, Rice
	University
References: <1992Nov9.073500.17048@autelca.ascom.ch>
Date: Mon, 9 Nov 1992 14:59:25 GMT
Lines: 77


These are patches to Ghostscript 2.5.2 for installation under 386BSD
0.1 and XFree86.  They've been submitted to Peter Deutsch, so the next
version may not require any patching.

    NOTE!

    Before applying these patches, type

    ln -s unix-gcc.mak Makefile

    as suggested in make.doc.  Otherwise the third patch will fail.

For 386BSD only the first patch (to malloc_.h) is required.  The
others are just an example of how I configured it.

I gave up on compiling the fonts into ghostscript, though dynamicly
loading them works fine.  If anyone solves it please send me a note!
Rich Murphey 

*** gs252/malloc_.h~	Fri Sep 18 14:42:24 1992
--- gs252/malloc_.h	Tue Sep 29 18:44:20 1992
***************
*** 33,39 ****
  #    if defined(BSD4_2) || defined(apollo) || defined(vax) || defined(sequent) || defined(UTEK) || defined(_IBMR2)
         extern char *malloc();
  #    else  /* should really be a POSIX define */
! #      if defined(_HPUX_SOURCE) || defined(__CONVEX__) || defined(__convex__) || defined(__OSF__)
  #        include <stdlib.h>
  #      else
  #        include <malloc.h>
--- 33,39 ----
  #    if defined(BSD4_2) || defined(apollo) || defined(vax) || defined(sequent) || defined(UTEK) || defined(_IBMR2)
         extern char *malloc();
  #    else  /* should really be a POSIX define */
! #      if defined(_HPUX_SOURCE) || defined(__CONVEX__) || defined(__convex__) || defined(__OSF__) || defined(__386BSD__)
  #        include <stdlib.h>
  #      else
  #        include <malloc.h>
*** gs252/gdevxini.c~	Tue Sep  8 18:46:26 1992
--- gs252/gdevxini.c	Tue Sep 29 18:33:37 1992
***************
*** 31,37 ****
  /* Define whether to use a backing pixmap to handle expose events. */
  /* Note that this is a variable rather than a #define. */
  /* Note also that it is consulted each time we open an X device. */
! private int use_backing = 1;
  
  /* Define default window parameters. */
  /* Some of these can be set in the makefile. */
--- 31,37 ----
  /* Define whether to use a backing pixmap to handle expose events. */
  /* Note that this is a variable rather than a #define. */
  /* Note also that it is consulted each time we open an X device. */
! private int use_backing = 0;
  
  /* Define default window parameters. */
  /* Some of these can be set in the makefile. */
*** gs252/Makefile~	Tue Sep 29 18:32:41 1992
--- gs252/Makefile	Tue Sep 29 18:35:22 1992
***************
*** 33,39 ****
  INSTALL_PROGRAM = $(INSTALL) -m 775
  INSTALL_DATA = $(INSTALL) -m 664
  
! prefix = /usr/local
  exec_prefix = $(prefix)
  bindir = $(exec_prefix)/bin
  datadir = $(prefix)/lib
--- 33,39 ----
  INSTALL_PROGRAM = $(INSTALL) -m 775
  INSTALL_DATA = $(INSTALL) -m 664
  
! prefix = /usr/site/gs252
  exec_prefix = $(prefix)
  bindir = $(exec_prefix)/bin
  datadir = $(prefix)/lib