Subject: pkg/13196: GNU_CONFIGURE using packages on mipseb platforms broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal@netbsd.org>
List: netbsd-bugs
Date: 06/13/2001 19:26:33
>Number:         13196
>Category:       pkg
>Synopsis:       packages using GNU_CONFIGURE don't get right host setting on mipseb platforms
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 13 16:21:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        pkgsrc anoncvs'd on 6/6/2001
>Organization:
Highly doubtful
>Environment:
System: NetBSD teal 1.5W NetBSD 1.5W (TEAL) #2: Wed Jun 13 08:25:16 EDT 2001     rafal@cyclops:/extra/src-current/sys/arch/sgimips/compile/TEAL sgimips
Architecture: mipseb
Machine: sgimips

>Description:
	packages using GNU_CONFIGURE don't get right host setting on mipseb 
	platforms, including sgimips.  The --host parameter passed to the
	configure script by the pkgsrc machinery is '--netbsd' which is not
	the expected form nor content.

>How-To-Repeat:
	Try to build pkgsrc/shells/tcsh on a mipseb platform.  
	Note the configure script barfs due to bad platform '--netbsd'
	Run `make -dx' to see what's passed to the configure script.
	Note that this isn't a configure bug but a value passed down from
	 the pkgsrc machinery.

>Fix:

This is a minimal fix just to get the mipseb platforms working.  The whole 
GNU_ARCH mapping table should probably be pulled over from bsd.own.mk.

Index: bsd.prefs.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.prefs.mk,v
retrieving revision 1.36
diff -u -r1.36 bsd.prefs.mk
--- bsd.prefs.mk	2001/05/17 15:08:17	1.36
+++ bsd.prefs.mk	2001/06/13 23:13:45
@@ -39,6 +39,7 @@
 GNU_ARCH.i686?=		i386
 GNU_ARCH.m68k?=		m68k
 GNU_ARCH.mips?=		mipsel
+GNU_ARCH.mipseb?=	mipseb
 GNU_ARCH.ns32k?=	ns32k
 GNU_ARCH.sparc?=	sparc
 GNU_ARCH.vax?=		vax
>Release-Note:
>Audit-Trail:
>Unformatted: