Subject: pkg/5449: FIX: teTeX configuration not alpha (64bit) clean
To: None <gnats-bugs@gnats.netbsd.org>
From: Johnny C. Lam <lamj@stat.cmu.edu>
List: netbsd-bugs
Date: 05/14/1998 13:33:47
>Number:         5449
>Category:       pkg
>Synopsis:       FIX: teTeX configuration not alpha (64bit) clean
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 14 10:35:01 1998
>Last-Modified:
>Originator:     Johnny C. Lam
>Organization:
>Release:        1.3E
>Environment:
System: NetBSD kasparov 1.3E NetBSD 1.3E (KASPAROV) #0: Tue May 12 15:39:07 EDT 1998 toor@kasparov:/usr/src/sys/arch/alpha/compile/KASPAROV alpha

>Description:
	teTeX configuration fails to set the preprocessor variable
`POINTER_IS_NOT_INT' on 64bit platforms like the alpha.

>How-To-Repeat:
N/A

>Fix:
	The following is a patch against the current teTeX package's
Makefile skeleton that should fix this.

--- teTeX/Makefile.orig	Thu May 14 13:11:32 1998
+++ teTeX/Makefile	Thu May 14 13:23:24 1998
@@ -34,6 +34,10 @@
 TETEX_LIB=	teTeX-lib-0.4pl8.tar.gz
 WRKLIB=		${WRKDIR}/teTeX
 
+.if (${MACHINE_ARCH} == "alpha")
+MAKE_ENV+=	64BIT=YES
+.endif
+
 .if defined(CFLAGS) && ${CFLAGS} == "-O"
 CFLAGS=	-O2
 .endif
--- teTeX/patches/patch-aa.orig	Thu May 14 13:11:25 1998
+++ teTeX/patches/patch-aa	Thu May 14 13:23:40 1998
@@ -1,6 +1,6 @@
---- Makefile.orig	Fri Feb 14 11:58:11 1997
-+++ Makefile	Sun Nov 23 13:48:36 1997
-@@ -8,10 +8,10 @@
+--- Makefile.orig	Fri Feb 14 05:58:11 1997
++++ Makefile	Thu May 14 13:18:49 1998
+@@ -8,20 +8,22 @@
  #=========================================================================
  VERSION = 0.4
  PATCHLEVEL = 7
@@ -12,8 +12,13 @@
 +CFLAGS	:= $(CFLAGS) -pipe -DHAVE_EXTERN_SYS_ERRLIST=1
  
  # For "real" 64bit OS, e.g. Digital Unix 4.0. Irix6?, use:
- # CFLAGS += -DPOINTER_IS_NOT_INT
-@@ -21,7 +21,7 @@
+-# CFLAGS += -DPOINTER_IS_NOT_INT
++ifeq ($(64BIT),YES)
++CFLAGS += -DPOINTER_IS_NOT_INT
++endif
+ 
+ # For BSD4.4 based systems (e.g. FreeBSD2.x.x)
+ # CFLAGS += -DHAVE_EXTERN_SYS_ERRLIST
  
  # -s makes problems on some platforms. We run strip after "make install",
  # so we really do not need -s here.
@@ -22,7 +27,7 @@
  
  # The shared libXmu from OpenWindows is buggy on some SunOS 4.1.3 systems.
  # If you run into this problem (when linking xdvi), set BROKEN_SUNOS_LIBXMU
-@@ -70,24 +70,24 @@
+@@ -70,24 +72,24 @@
  # set USE_DIALOG=false if compiling dialog causes trouble on your system
  # texconfig will still run in command-mode
  #=========================================================================
@@ -51,7 +56,7 @@
  
  # change the true/false definition of FOIL, if you get an error with wchar_t
  FOIL		= false
-@@ -111,17 +111,17 @@
+@@ -111,17 +113,17 @@
  platform	= $(shell ./config.guess | sed 's/-.*-/-/')
  CWD		:= $(shell pwd)
  INSTALL		= $(CWD)/$(KPSEDIR)/bin/install -c
@@ -75,7 +80,7 @@
  override USE_NCURSES = no
  endif
  
-@@ -205,7 +205,6 @@
+@@ -205,7 +207,6 @@
  	for i in $(SUBDIRS); do \
  	  (set -x; cd $$i; $(MAKE) $(PASSENV) $@ || exit 1); \
  	done
@@ -83,7 +88,7 @@
  
  rmcache:
  	rm -f config.cache
-@@ -259,16 +258,7 @@
+@@ -259,16 +260,7 @@
  	rm -rf tmp
  
  $(TETEXDIR)/texmf.cnf:
>Audit-Trail:
>Unformatted: