Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2007 08:29:31 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Stephen Montgomery-Smith <stephen@math.missouri.edu>
Cc:        ports@freebsd.org
Subject:   Re: Speeding up pkg_version and perhaps other port utilities
Message-ID:  <20070520082931.47fe8db9@deskjail>
In-Reply-To: <464FD334.9040705@math.missouri.edu>
References:  <464FD334.9040705@math.missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Stephen Montgomery-Smith <stephen@math.missouri.edu> (Sat, 19 May 2007 23:48:52 -0500):

> On my system, the program pkg_version can double its speed simply by 
> replacing "make -V PKGNAME" by "make BEFOREPORTMK=yes -V PKGNAME" in 
> src/usr.sbin/pkg_install/version.  Basically what it does is to tell 
> "make" to process only about half of bsd.port.mk.
> 
> It seems to me that with some clever use like this, certain commands 
> like "make all-package-depends" could selectively read only parts of 
> bsd.port.mk.

You have to make sure no dependency is set in the second part of
bsd.port.mk then. I don't know for sure if this is already the case. I
expect that it is not the case.

Bye,
Alexander.

-- 
A stagnant science is at a standstill.
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070520082931.47fe8db9>