pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Limit xargs to 256 args when passing args to ls for...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/172c97699ceb
branches:  trunk
changeset: 467974:172c97699ceb
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Feb 09 05:42:57 2004 +0000

description:
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:

 mk/bsd.pkg.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f1bb8d2f6da2 -r 172c97699ceb mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Mon Feb 09 05:22:43 2004 +0000
+++ b/mk/bsd.pkg.mk     Mon Feb 09 05:42:57 2004 +0000
@@ -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 @@
                <${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"); }'                                  \



Home | Main Index | Thread Index | Old Index