Date: Fri, 16 Apr 2021 05:57:22 +0900 (JST) From: Yasuhiro Kimura <yasu@utahime.org> To: freebsd-questions@freebsd.org Subject: Re: Cleaning Ports Tree Message-ID: <20210416.055722.1793592145762578454.yasu@utahime.org> In-Reply-To: <0a04f310-af5c-371c-0940-1b0af0f5aca4@tundraware.com> References: <0a04f310-af5c-371c-0940-1b0af0f5aca4@tundraware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Tim Daneliuk via freebsd-questions <freebsd-questions@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210416.055722.1793592145762578454.yasu>