From owner-freebsd-ports Fri Apr 26 3:57:10 2002 Delivered-To: freebsd-ports@freebsd.org Received: from south.nanolink.com (south.nanolink.com [217.75.134.10]) by hub.freebsd.org (Postfix) with SMTP id A7D2437B41B for ; Fri, 26 Apr 2002 03:57:00 -0700 (PDT) Received: (qmail 43028 invoked from network); 26 Apr 2002 11:02:57 -0000 Received: from unknown (HELO straylight.ringlet.net) (212.116.140.125) by south.nanolink.com with SMTP; 26 Apr 2002 11:02:57 -0000 Received: (qmail 25793 invoked by uid 1000); 26 Apr 2002 10:56:41 -0000 Date: Fri, 26 Apr 2002 13:56:40 +0300 From: Peter Pentchev To: Doug Barton Cc: Maxime Henrion , freebsd-ports@FreeBSD.org Subject: Re: patch to have make clean not recurse in ${PORTSDIR} Message-ID: <20020426135640.E59183@straylight.oblivion.bg> Mail-Followup-To: Doug Barton , Maxime Henrion , freebsd-ports@FreeBSD.org References: <20020424224454.GM88736@elvis.mu.org> <20020424191430.W62277-100000@zoot.corp.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ZInfyf7laFu/Kiw7" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020424191430.W62277-100000@zoot.corp.yahoo.com>; from DougB@FreeBSD.org on Wed, Apr 24, 2002 at 07:16:48PM -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --ZInfyf7laFu/Kiw7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 24, 2002 at 07:16:48PM -0700, Doug Barton wrote: > On Wed, 24 Apr 2002, Maxime Henrion wrote: >=20 > > Currently, if you do a ``make clean'' in /usr/ports, it will recurse > > through each port's dependencies and clean them too. >=20 > This has been discussed at great length on various lists. The two > answers to your question are, A) You can already do what you want to do, > with an option that allows you NOT to do it if for some reason you > actually WANT to repetitively clean dependencies, and B) The fastest way > to clean up your ports tree is not to use make at all, it's: >=20 > find /usr/ports -type d -name work -exec rm -r {} \; FWIW, this could be further speeded up by -mindepth 3 -maxdepth 3, and it would be *much* cheaper on child processes if | xargs rm -rf is used instead of the -exec. Oh, and yes, there are many other ways to achieve the same :) Yes, I know the door is that-a-way.. what's your point? :P > Therefore, with all due respect, I think this patch is a step in the wrong > direction. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I am the meaning of this sentence. --ZInfyf7laFu/Kiw7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzJMmcACgkQ7Ri2jRYZRVN0lACeIyXRnWW7hahq9k2UCAoRbvyp fL0AnRcshYr3h8O0u/D8HTnv+pTwqLs5 =fWMg -----END PGP SIGNATURE----- --ZInfyf7laFu/Kiw7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message