summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2000-09-15 09:18:21 +0000
committertron <tron@pkgsrc.org>2000-09-15 09:18:21 +0000
commitd363304159da784f5dabae15347f29879f033775 (patch)
treeb0de01ba890d333aaa48fa886257fb3c91d122e0
parent82cf593ae1721c39c8983b64040d9590eb06d295 (diff)
downloadpkgsrc-d363304159da784f5dabae15347f29879f033775.tar.gz
Use "dc" instead of "expr" to calculate total package size to avoid
another integer overflow which occured on "i386", too.
-rw-r--r--mk/bsd.pkg.mk4
1 files changed, 2 insertions, 2 deletions
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}"; \