CFT: New version of portmaster in svn

Doug Barton dougb at FreeBSD.org
Fri Jul 23 19:01:02 UTC 2010


On Fri, 23 Jul 2010, Douglas Berry wrote:

> Thanks for the new code!  Package updates for perl work fine here, and 
> no regressions found.

Excellent! Thanks for taking the time to look it over.

> With respect to the --clean-* options, my earlier (a long time ago) 
> test with --clean-distfiles showed that valid distfiles would be 
> deleted if the corresponding port was not installed.  I'd like to only 
> delete them if they are no longer valid (similar to portsclean -D).

The problem is that in order to accomplish that portmaster would have to 
check every port in the tree. Assuming 22,000 ports, and that any given 
port is equally likely to fall anywhere in the tree, on average you'd 
have to search 11,000 ports for every distfile that is not related to a 
port installed on that system.

Now what I _could_ do is use the same technique I use in 
--clean-distfiles (create a text file with the distfile information) but 
instead of limiting it to installed ports, do all of them. I have never 
even tested that to see how long it would take, but I suppose I could 
take a look.

> Would the --clean-packages feature behave the same way?

No, because the packages contain the ORIGIN in the ports tree that they 
were created from, so it's trivial to test their validity. If they 
package is not the most recent version there is a fallback test that 
compares it to what is installed on the local host, but if the package 
is up to date you'll never even get there.


hth,

Doug

--

 	Improve the effectiveness of your Internet presence with
 	a domain name makeover!  http://SupersetSolutions.com/

 	Computers are useless. They can only give you answers.
 			-- Pablo Picasso



More information about the freebsd-ports mailing list