From owner-freebsd-stable Sun Nov 19 14:39:21 2000 Delivered-To: freebsd-stable@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id 0CDCF37B479 for ; Sun, 19 Nov 2000 14:39:19 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id eAJMdDa90818; Sun, 19 Nov 2000 14:39:13 -0800 (PST) (envelope-from dillon) Date: Sun, 19 Nov 2000 14:39:13 -0800 (PST) From: Matt Dillon Message-Id: <200011192239.eAJMdDa90818@earth.backplane.com> To: Warner Losh Cc: James , stable@FreeBSD.ORG Subject: Re: cd /usr/ports; make clean References: <20001118231633.A85206@evilcode.com> <200011190635.eAJ6ZRS94516@grumpy.dyndns.org> <20001118230305.A83848@evilcode.com> <20001119151138.A7434@bsdvm.jtjang.idv.tw> <200011192202.eAJM2cG03593@billy-club.village.org> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :In message <20001118231633.A85206@evilcode.com> James writes: :: If I understand it correctly, there is a limit to the maximum number :: of command line arguments that a program can have. : :Yes, but unless you've built all the ports, you won't even come close :to hitting that limit. There are 4200 ports, which is below the :limit as far as counts go (which is 8192, iirc). You might hit the :64k total arg length limit. : :When I have a boatload of ports to delete, I use something like: : find /usr/ports -name work -type d -prune | xargs rm -rf :so that I don't exec too many times, but yet I don't overflow the :argument size limits. : :Warner Since I export /usr/ports read-only, I never put my work directories in the ports hierarchy itself. I set /etc/make.conf to: WRKDIRPREFIX= /var/tmp Or something similar, then simply 'rm -rf /var/tmp/usr' when it gets full or I want to clean it out. (I have a big /var/tmp to accomodate it, but there is nothing preventing you from creating a directory in /usr to hold the workdirs either). -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message