Speedup for pkg_version

Pav Lucistnik pav at FreeBSD.org
Sun Jul 29 00:50:35 UTC 2007


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?

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

Why does the Earth have colors?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070729/ce849842/attachment.pgp


More information about the freebsd-ports mailing list