From a12264fa644d507522a2b856c3992f8d90e64439 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 15 Sep 2000 09:18:21 +0000 Subject: Use "dc" instead of "expr" to calculate total package size to avoid another integer overflow which occured on "i386", too. --- mk/bsd.pkg.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 2edc9dabca8..bd464d1e5a0 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.574 2000/09/15 09:14:21 tron Exp $ +# $NetBSD: bsd.pkg.mk,v 1.575 2000/09/15 09:18:21 tron Exp $ # # This file is in the public domain. # @@ -3046,7 +3046,7 @@ fake-pkg: ${PLIST} ${DESCR} size_this=`${MAKE} ${MAKEFLAGS} print-pkg-size-this`; \ size_depends=`${MAKE} ${MAKEFLAGS} print-pkg-size-depends`; \ ${ECHO} $$size_this >${SIZE_PKG_FILE}; \ - expr $$size_this + $$size_depends >${SIZE_ALL_FILE} || ${TRUE} + ${ECHO} $$size_this $$size_depends + p | ${DC} >${SIZE_ALL_FILE} ${_PKG_SILENT}${_PKG_DEBUG} \ if [ ! -d ${PKG_DBDIR}/${PKGNAME} ]; then \ ${ECHO_MSG} "${_PKGSRC_IN}> Registering installation for ${PKGNAME}"; \ -- cgit v1.2.3