From owner-freebsd-questions@freebsd.org Thu Apr 15 20:58:09 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 694B05D7555 for ; Thu, 15 Apr 2021 20:58:09 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from maybe.home.utahime.org (gate.home.utahime.org [183.180.29.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FLsB82kT1z4r4b for ; Thu, 15 Apr 2021 20:58:08 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by maybe.home.utahime.org (Postfix) with ESMTPS id 3E0DF23387 for ; Fri, 16 Apr 2021 05:58:04 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1618520284; bh=APslqmmvn7r6RXOY2qdxy35Dasm0oW4ox17PuJMiric=; h=Date:To:Subject:From:In-Reply-To:References; b=ojC6R9TgyleerRGj0Y0zxTH/dus0ZnySZewpQ43zudm0sY1eM2YzuAyIhgoZz00E7 vAFdzDKRX6TsXIn4IT6UhPGxSUpQ2bX6MLF6rZd53jl2RDLAJeHFWH7UZe4gmPHzLs YNKCH10PBYGohntdQ6/tsMK+5fFC1iRjQBUBUtLZq27jWSPNKnrtWiaKjcVwjJuwu2 fM/qJRO44RIeSIJ71dn5gI6pz/E3wMtlPLjP4J/Se+4xvtSOx76Nr/z3h5j4J2llfN c2QnC+596s6sgL895XoOdPIsdmhMp/k7T1uhATPI7PEdDKEBLhGF5OLmmMRikA3gP7 nxoxxNe1alb7A== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 6B110264A8; Fri, 16 Apr 2021 05:58:03 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.2 at eastasia.home.utahime.org Date: Fri, 16 Apr 2021 05:57:22 +0900 (JST) Message-Id: <20210416.055722.1793592145762578454.yasu@utahime.org> To: freebsd-questions@freebsd.org Subject: Re: Cleaning Ports Tree From: Yasuhiro Kimura In-Reply-To: <0a04f310-af5c-371c-0940-1b0af0f5aca4@tundraware.com> References: <0a04f310-af5c-371c-0940-1b0af0f5aca4@tundraware.com> X-Mailer: Mew version 6.8 on Emacs 27.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FLsB82kT1z4r4b X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.b=ojC6R9Tg; dmarc=none; spf=pass (mx1.freebsd.org: domain of yasu@utahime.org designates 183.180.29.210 as permitted sender) smtp.mailfrom=yasu@utahime.org X-Spamd-Result: default: False [-0.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:spf-authorized.utahime.org]; TO_DN_NONE(0.00)[]; HFILTER_HELO_IP_A(1.00)[maybe.home.utahime.org]; HFILTER_HELO_NORES_A_OR_MX(0.30)[maybe.home.utahime.org]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[utahime.org:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[183.180.29.210:from]; ASN(0.00)[asn:2519, ipnet:183.180.0.0/16, country:JP]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[utahime.org:s=maybe2019112701]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[utahime.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[183.180.29.210:from:127.0.2.255]; MID_CONTAINS_FROM(1.00)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2021 20:58:09 -0000 From: Tim Daneliuk via freebsd-questions Subject: Cleaning Ports Tree Date: Thu, 15 Apr 2021 15:37:08 -0500 > I am aware that one can do this to clean the ports tree: > > cd /usr/ports > make clean > > However, this is very slow. Is there any reason not to do this instead: > > find /usr/ports -type d -name work -exec -vrf {} \; > > This second approach is much, much (much) faster, I just want to make > sure I am not creating nasty side-effects thereby. 1. If a port is flavorized, default working directory is /usr/ports/category/portname/work-(flavor name). and above command don't remove it. `make clean` works fine whether or not a port is flavorized. 2. `make clean` works fine even if WRKDIRPREFIX is set. You need not aware where real working directory is. --- Yasuhiro Kimura