From owner-freebsd-ports@FreeBSD.ORG Wed May 17 13:50:29 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 476CB16A5AE for ; Wed, 17 May 2006 13:50:29 +0000 (UTC) (envelope-from vivek@khera.org) Received: from yertle.kcilink.com (yertle.kcilink.com [65.205.34.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB21143D6E for ; Wed, 17 May 2006 13:50:28 +0000 (GMT) (envelope-from vivek@khera.org) Received: from [192.168.7.103] (host-103.int.kcilink.com [192.168.7.103]) by yertle.kcilink.com (Postfix) with ESMTP id 8AC1BB826 for ; Wed, 17 May 2006 09:50:28 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <20060517060026.GA40653@qlovarnika.bg.datamax> References: <200605171353.37745.paul.koch@statseeker.com> <20060517045403.GI1113@k7.mavetju> <200605171508.07228.paul.koch@statseeker.com> <20060517060026.GA40653@qlovarnika.bg.datamax> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <66F2413E-5D81-4BD6-B842-104A449E4753@khera.org> Content-Transfer-Encoding: 7bit From: Vivek Khera Date: Wed, 17 May 2006 09:50:27 -0400 To: ports@freebsd.org X-Mailer: Apple Mail (2.750) Cc: Subject: Re: Is it safe to compile multiple ports at the same time ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 13:50:30 -0000 On May 17, 2006, at 2:00 AM, Vasil Dimov wrote: > Ofcourse if B depends also on Y it can fallback to building Y if it > cannot gain exclusive lock on X. If you do that, then you get a lock on Y, which may also happen to be a dependency of X, and now you have deadlock. You also need to ensure that all ports specify dependencies in the same order (or at least take the locks in the same order) else you will deadlock at some point if you allow the port to take more than one lock at a time.