Subject: misc/1729: NetBSD/pmax needs various Makefile etc. fixes
To: None <gnats-bugs@gnats.netbsd.org>
From: Arne H. Juul <arnej@pvv.unit.no>
List: netbsd-bugs
Date: 11/05/1995 20:40:18
>Number:         1729
>Category:       misc
>Synopsis:       NetBSD/pmax needs various Makefile etc. fixes
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov  5 14:50:00 1995
>Last-Modified:
>Originator:     arnej@pvv.unit.no
>Organization:
	University of Trondheim, Norway
>Release:        NetBSD-1.1_ALPHA
>Environment:
	
Any NetBSD/pmax machine for 1.1.

>Description:
	I have found various places where NetBSD/pmax needs
	special attention in system Makefiles, mostly because it
	uses a non-standard toolchain.  A couple of these are also
	needed for other architectures (alpha and/or vax).
	I hope there is no problem with installing any of these
	in the 1.1 branch.
>How-To-Repeat:
	cd /usr/src ; make build ; make build
	and noting how it breaks
>Fix:
	
	Apply these patches:

diff -u usr.bin/kdump/mkioctls.orig usr.bin/kdump/mkioctls
--- usr.bin/kdump/mkioctls.orig	Sun Nov  5 20:14:43 1995
+++ usr.bin/kdump/mkioctls	Sun Nov  5 20:21:54 1995
@@ -33,7 +33,7 @@
 #
 #	@(#)mkioctls	8.2 (Berkeley) 4/28/95
 #
-cpp -dM ${1+"$@"} | awk '
+cat ${1+"$@"} | cpp -dM | awk '
 BEGIN {
 	print "#include <sys/param.h>"
 	print "#include <sys/socket.h>"
diff -u gnu/lib/Makefile.orig gnu/lib/Makefile
--- gnu/lib/Makefile.orig	Sun Nov  5 20:14:42 1995
+++ gnu/lib/Makefile	Sun Nov  5 20:21:54 1995
@@ -1,7 +1,7 @@
 #	$NetBSD: Makefile,v 1.7 1995/04/23 07:50:21 cgd Exp $
 
 SUBDIR+= libmalloc
-.if (${MACHINE_ARCH} != "alpha")
+.if(${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "mips")
 SUBDIR+= libg++
 .endif
 
diff -u gnu/usr.bin/groff/Makefile.cfg.orig gnu/usr.bin/groff/Makefile.cfg
--- gnu/usr.bin/groff/Makefile.cfg.orig	Sun Nov  5 20:14:42 1995
+++ gnu/usr.bin/groff/Makefile.cfg	Sun Nov  5 20:21:54 1995
@@ -37,7 +37,8 @@
 		-DHAVE_SYS_SIGLIST=1
 
 # XXX actually, >= 2.7.0 gcc's; for scoping rules changed.
-.if (${MACHINE_ARCH} == "alpha")
+.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "mips") || \
+    (${MACHINE_ARCH} == "vax")
 CXXFLAGS+=	-fno-for-scope
 .endif
 
diff -u sys/arch/pmax/Makefile.orig sys/arch/pmax/Makefile
--- sys/arch/pmax/Makefile.orig	Sun Nov  5 20:14:42 1995
+++ sys/arch/pmax/Makefile	Sun Nov  5 20:21:54 1995
@@ -4,10 +4,11 @@
 
 # Makefile for pmax links, tags file
 
-.include "../kern/Make.tags.inc"
+.include "../../kern/Make.tags.inc"
 
-all:
-	@echo "make links or tags only"
+NOPROG=	noprog
+NOMAN=	noman
+NOOBJ=	noobj
 
 DIRS=	conf dev dist include pmax ultrix
 
@@ -27,3 +28,5 @@
 	sort -o tags tags
 	chown bin.wsrc tags
 	chmod 444 tags
+
+.include <bsd.prog.mk>
diff -u usr.bin/xlint/lint1/param.h.orig usr.bin/xlint/lint1/param.h
--- usr.bin/xlint/lint1/param.h.orig	Sun Nov  5 20:14:43 1995
+++ usr.bin/xlint/lint1/param.h	Sun Nov  5 20:21:54 1995
@@ -63,6 +63,9 @@
 #ifdef __alpha__
 #define PTRDIFF_IS_LONG		1
 #define SIZEOF_IS_ULONG		1
+#elif __mips__
+#define PTRDIFF_IS_LONG		1
+#define SIZEOF_IS_ULONG		1
 #elif __i386__
 #define PTRDIFF_IS_LONG		0
 #define SIZEOF_IS_ULONG		0
diff -u usr.bin/lorder/Makefile.orig usr.bin/lorder/Makefile
--- usr.bin/lorder/Makefile.orig	Sun Nov  5 20:14:43 1995
+++ usr.bin/lorder/Makefile	Sun Nov  5 20:21:54 1995
@@ -3,7 +3,7 @@
 
 MAN=	lorder.1
 
-.if (${MACHINE_ARCH} != "alpha")
+.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "mips")
 SCRIPT=	lorder.sh
 .else
 # alpha uses special version which works with GNU nm.
>Audit-Trail:
>Unformatted: