Is it safe to compile multiple ports at the same time ?

Edwin Groothuis edwin at mavetju.org
Wed May 17 12:51:31 UTC 2006


On Wed, May 17, 2006 at 09:13:37AM -0300, Fernan Aguero wrote:
> +----[ Edwin Groothuis <edwin at mavetju.org> (17.May.2006 03:16):
> |
> | You have to obtain a lock on the X's Makefile before you are doing
> | to check if you have this port installed.
> | 
> | For example, a dependcy on pkg-config in the directory devel/pkgconfig:
> | 
> | - obtain lock on devel/pkgconfig/Makefile
> | - check if pkg-config exists, and if not, build and install it.
> | - release lock on devel/pkgconfig/Makefile
> |
> +----]
> 
> Why not
> 
> - check if pkg-config exists and only if it doesn't exist,
>   try to obtain lock on the lock target.

Because if it doesn't exist, there is still a chance it being build
at this moment, and then you're waiting for it to be compiled and
installed, you get the lock and you're going to build and (try to)
install it again.

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin at mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/


More information about the freebsd-ports mailing list