Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2007 15:20:48 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        ports@freebsd.org, Stephen Montgomery-Smith <stephen@math.missouri.edu>
Subject:   Re: Speeding up pkg_version and perhaps other port utilities
Message-ID:  <4650C9C0.3080706@FreeBSD.org>
In-Reply-To: <20070520082931.47fe8db9@deskjail>
References:  <464FD334.9040705@math.missouri.edu> <20070520082931.47fe8db9@deskjail>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Leidinger wrote:
> 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"

This is very cool! I've already added it to my devel version of 
portmaster in several places. I call make a LOT in portmaster, so I 
went through every invocation and added this wherever it worked (i.e., 
didn't cause a difference in (or absence of) output.

I'd also like to say thanks to Stephen, Alexander, and everyone else 
who's taken an interest in optimizing the ports infrastructure. I've 
managed to work around some of the inefficiencies with portmaster, but 
I learn new tricks (like this one) on a regular basis. Having things 
be more efficient to start with would be a great thing for all of our 
users.

>> 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.

It depends on the target. My suggestion would be to test them on an 
individual basis. It's usually pretty clear if they will work or not.

hth,

Doug

-- 

     This .signature sanitized for your protection




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