summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-09 05:42:57 +0000
committerjlam <jlam>2004-02-09 05:42:57 +0000
commit9f902a2b7fb6e4c3ef795ccccabe3d96b9b77653 (patch)
tree6c1ff1349dae94e3a8454c2597bde55a63e65963 /mk
parentb7655835ff81485b7e0cef92840c086d903ca2dc (diff)
downloadpkgsrc-9f902a2b7fb6e4c3ef795ccccabe3d96b9b77653.tar.gz
Limit xargs to 256 args when passing args to ls for the package size
computation. The motivation for this is that kdelibs3 was overflowing ls through xargs.
Diffstat (limited to 'mk')
-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 49779544191..cf1a9fb9e10 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1382 2004/02/09 01:52:14 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1383 2004/02/09 05:42:57 jlam Exp $
#
# This file is in the public domain.
#
@@ -4448,7 +4448,7 @@ print-pkg-size-this:
<${PLIST} \
| ${SORT} -u \
| ${SED} -e "s/'/'\\\\''/g" -e "s/.*/'&'/" \
- | ${XARGS} ${LS} -ld \
+ | ${XARGS} -n 256 ${LS} -ld \
| ${AWK} 'BEGIN { print("0 "); } \
{ print($$5, " + "); } \
END { print("p"); }' \