Subject: pkg/12993: pkgsrc tcsh thinks every mips box is made by DEC
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal@mediaone.net>
List: netbsd-bugs
Date: 05/20/2001 23:50:39
>Number:         12993
>Category:       pkg
>Synopsis:       pkgsrc tcsh thinks every mips box is made by DEC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 20 20:48:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        pkgsrc as of ~ 5/18/01
>Organization:
Highly unlikely
>Environment:
System: NetBSD teal 1.5V NetBSD 1.5V (TEAL) #20: Sun May 20 22:24:55 EDT 2001 rafal@cyclops.waterside.net:/extra/src-current/sys/arch/sgimips/compile/TEAL sgimips
Architecture: mipseb
Machine: sgimips

>Description:
	tcsh's version-info generator thinks `mips box' == `pmax' for NetBSD,
	and hence sets the vendor to `dec'.  This is pretty inaccurate, as 
	we support a bunch of MIPS based boxes that aren't made by DEC.

	Here's tcsh's version string:
	version tcsh 6.10.00 (Astron) 2000-11-19 (mipseb-dec-NetBSD) options 8b,nls,dl,al,rh,color

>How-To-Repeat:
	Build tcsh on sgimips, newmips, or any other non-DEC mips box.
	Watch it claim it's build target was `mips{,e[lb]}-dec-netbsd'.

>Fix:

----8<------
$NetBSD$

--- host.defs.orig	Mon May 21 03:18:39 2001
+++ host.defs	Mon May 21 03:21:49 2001
@@ -477,8 +477,8 @@
 vendor	: defined(m68k)					: "motorola"
 vendor	: defined(mac68k)				: "apple"
 vendor	: defined(pc532)				: "national-semi"
-vendor	: defined(pmax)	|| defined(mips)		: "dec"
-vendor	: defined(M_mipsel)				: "dec"
+vendor	: defined(pmax)					: "dec"
+vendor	: defined(mips)					: "mips"
 vendor	: defined(sparc)				: "sun"
 vendor	: defined(sun3)					: "sun"
 vendor	: defined(vax)					: "digital"
----8<------
>Release-Note:
>Audit-Trail:
>Unformatted: