Subject: arch conflict on update
To: None <current-users@NetBSD.org, port-sparc64@NetBSD.org>
From: None <sigsegv@rambler.ru>
List: port-sparc64
Date: 03/21/2005 10:28:17
Greetings, I'm running 32-bit GENERIC_SUN4U kernel, along with 32-bit 
userland. I've just built a distribution for sparc port from netbsd-3 
tree. The problem is I'm trying to update my current system with:

MAKECONF=/opt/sandbox/scripts/mk.sparc.conf
export MAKECONF

/opt/src/build.sh -E -m sparc -x -O /opt/sandbox/opt/obj.sparc \
     -D /opt/sandbox/opt/obj.sparc/destdir.sparc \
     -T /opt/sandbox/opt/tools.sparc install=/

And it fails with the following message:

ERROR: 'install=/' must != / for cross builds.
*** BUILD ABORTED ***

I think this is because 'uname -m' returns sparc64, even though 
everything is 32-bit. How can I override this sanity check? It looks 
like the script is trying to be too clever for its own good.