Speedup for pkg_version

Stephen Montgomery-Smith stephen at math.missouri.edu
Sun Jul 29 01:09:32 UTC 2007


Pav Lucistnik wrote:
> Stephen Montgomery-Smith píše v so 28. 07. 2007 v 19:44 -0500:
> 
>> This is a kludge, but it makes pkg_version 4 times faster on my set up. 
>>   The idea is that "make -V PKGNAME" should ordinarily be a very fast 
>> operation.  So it runs a very cut down version of bsd.port.mk.  If that 
>> bombs with an error, then it does the full bsd.port.mk.
>>
>> Maybe portsmanager and similar tools could use this idea.
> 
> What does this to with ports that have something like
> 
> PORTVERSION=	${MAJOR_VER}.${MINOR_VER}
> 
> MAJOR_VER=	2
> MINOR_VER=	15
> 
> 
> And what about slave ports that inherit PORTVERSION from their master?
> 


It will probably work.




More information about the freebsd-ports mailing list