diff options
author | tron <tron> | 2000-09-15 09:18:21 +0000 |
---|---|---|
committer | tron <tron> | 2000-09-15 09:18:21 +0000 |
commit | a12264fa644d507522a2b856c3992f8d90e64439 (patch) | |
tree | b0de01ba890d333aaa48fa886257fb3c91d122e0 | |
parent | 025ac0bb54e9b37511366ccfa4301aae2d007919 (diff) | |
download | pkgsrc-a12264fa644d507522a2b856c3992f8d90e64439.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.mk | 4 |
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}"; \ |