diff options
author | hubertf <hubertf@pkgsrc.org> | 2002-02-13 22:59:53 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2002-02-13 22:59:53 +0000 |
commit | 22b284ab1cb5f09dd1f2fbc57a38d28e0e8a4e61 (patch) | |
tree | 497cfff6f70e3d4f361af3c8c8387fcb69cf8cef /mk | |
parent | 0e0e72714d646bee1cdb46c2a070a2b2c29875b3 (diff) | |
download | pkgsrc-22b284ab1cb5f09dd1f2fbc57a38d28e0e8a4e61.tar.gz |
n-install: use uname(1) over sysctl(1) to find out machine arch
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index c6ab1137bb4..042384dd44d 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.924 2002/02/13 20:05:04 abs Exp $ +# $NetBSD: bsd.pkg.mk,v 1.925 2002/02/13 22:59:53 hubertf Exp $ # # This file is in the public domain. # @@ -2877,7 +2877,7 @@ bin-install: ${PKG_ADD} ${PKGFILE} ; \ else \ rel=`${UNAME} -r | ${SED} 's@\.\([0-9]*\)[\._].*@\.\1@'`; \ - arch=`sysctl -n hw.machine_arch`; \ + arch=`uname -p`; \ for site in ${BINPKG_SITE} ; do \ ${ECHO} Trying `eval ${ECHO} $$site`/All ; \ ${SHCOMMENT} ${ECHO} ${SETENV} PKG_PATH="`eval ${ECHO} $$site`/All" ${PKG_ADD} ${BIN_INSTALL_FLAGS} ${PKGNAME}${PKG_SUFX} ; \ |