speed up ports install

Doug Barton dougb at FreeBSD.org
Sun Oct 19 20:23:19 UTC 2008

Stephen Montgomery-Smith wrote:
> Eitan Adler wrote:
>> Hash: SHA1
>> I have a simple idea to make use the threads without any possibility of
>> conflicts.  I am sure there will be someone to point out a negative, but
>> I don't see any.
>> When you do "make install" launch a "make fetch-recursive" thread at the
>> same time.  That way you don't need to wait for the files to
>> install->fetch the next one->install it->fetch the next one...
>> For those who don't want that you could get the old behavior with "make
>> onlyinstall".  I currently do this with a "make" wrapper script and I
>> find installation to be faster.
> I quite often so this also.  But I do find I have to watch it, because
> sometimes the two make threads try to download the files at the same
> time.  And that tends to screw things up.

ports-mgmt/portmaster already has solutions to both of these problems.
It only launches background fetches for files related to ports that
need upgrading, and it has collision detection built in so if a second
port tries to d/l the same sources the background fetch will exit.

Eitan is right however, having the sources ready when it's time to
build the port does speed up the overall process quite a bit.




    This .signature sanitized for your protection

More information about the freebsd-ports mailing list