NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/54100: _HOST_ARCH on NetBSD/amd64 returns 'uname -m' not 'uname -p'



The following reply was made to PR toolchain/54100; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: mrg%eterna.com.au@localhost
Cc: gnats-bugs%netbsd.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: toolchain/54100: _HOST_ARCH on NetBSD/amd64 returns 'uname -m'
	 not 'uname -p'
Date: Sun, 23 Jun 2019 22:32:03 +0900

 mrg@ wrote:
 
 > >  Is it okay to commit the diff?
 > >  Or should we keep bug compatibility for third party scripts?
 > 
 > i would rather not bother with bug compat here -- the uname answers
 > for netbsd are treated special so i doubt it was ever used.
 
 I have to add the following lines to my local script to get
 the default ${TOOLDIR}:
 
 ---
 # tooldir settings
 _HOST_OSNAME=`uname -s`
 _HOST_OSREL=`uname -r`
 _HOST_ARCH=`uname -p 2> /dev/null || uname -m`
 # XXX see PR toolchain/54100
 if [ "${_HOST_ARCH}"X = "x86_64X" ]; then
 	_HOST_ARCH=`uname -m`
 fi
 TOOLDIRNAME=tooldir.${_HOST_OSNAME}-${_HOST_OSREL}-${_HOST_ARCH}
 ---
 
 I also wonder if we can share TOOLDIR among the same ${MACHINE_ARCH}
 because there are many '.if ${MACHINE} == "foo"' conditionals in
 src/tools/Makefile.
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index