Subject: new platform (aka a twisted maze of MACHINE_PLATFORM, MACHINE_GNU_PLATFORM, config.guess, ...)
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz.maer.vier@onlinehome.de>
List: tech-pkg
Date: 03/31/2004 16:29:04
Hi,
on UnixWare 7 I get the following from configure:
Checking build system type... i586-unknown-sysv5UnixWare7.1.1
Checking host system type... i386--sysv4.2uw
I am unsure how those two values interact with each other.
The first result is the output of mk/gnu-config/config.guess while the
second is the output of
mk/gnu-config/config.sub i386--unixware
i386--unixware is the current value of MACHINE_GNU_PLATFORM (used by
pkgsrc in "CONFIGURE_ARGS+= --host=$MACHINE_GNU_PLATFORM") which I
probably need to change. The question is, how it should be changed.
The latest config.sub from autoconf (timestamp='2004-01-20') only knows
about "sysv4.2uw" while configure.in and libtool.m4 from gcc-3.3.3 know
"i[3456]86-*-sysv5*)" and "sysv5uw[78]* | sysv4*uw2*".
config.guess from gcc-3.3.3 still shows "i586-unknown-sysv5UnixWare7.1.1".
It seems as if i586-unknown-sysv5UnixWare7.1.1 should rather be
i586-unknown-sysv5uw7
or
i586-pc-sysv5uw7
Should I set LOWER_OPSYS explicitly rather than use the default of
"unixware":
LOWER_OPSYS=sysv5uw7
or
LOWER_OPSYS=sysv5uw
LOWER_OPSYS_VERSUFFIX=7
?
Current values I use for UnixWare:
$ bmake show-var VARNAME=OPSYS
UnixWare
$ bmake show-var VARNAME=LOWER_VENDOR
$ bmake show-var VARNAME=MACHINE_PLATFORM
UnixWare-5-i386
$ bmake show-var VARNAME=MACHINE_GNU_PLATFORM
i386--unixware
ciao
Klaus