From owner-freebsd-ports@FreeBSD.ORG Thu Apr 2 21:57:07 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F39141065676 for ; Thu, 2 Apr 2009 21:57:06 +0000 (UTC) (envelope-from dforsythe@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id 9AEF88FC19 for ; Thu, 2 Apr 2009 21:57:06 +0000 (UTC) (envelope-from dforsythe@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so644989qwb.7 for ; Thu, 02 Apr 2009 14:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=5j0M3Rdt6wtSXWfu0VboogND9JghwSaTFBage2HrIkY=; b=JbKdXOELBHqMKA/oDs36GerUKSvP1ZBMcbzIgiRZhwAiU25qTM8PRilNTXeV49AfyC b563GFUifjjRmFWxzK3Ty8VbEm/WRpYbBkUD3pLRMP0VUDrZUIM2tnNfnaUJPq4EJAly +K1Ir1U6c+cudq77V9gPEc6HDtSsrYPY1d+kI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=t3RD+XunEMCbBnwB9tbzQS+k0x0tyj0Vnl5U3YXKQJ71wF6KsCImEBbVGi1IMV1D0j qt3GwfC4w5xQfymDeYnImimPNKrW3AidRytRmm7tzKdKQ6l5fOJ1/GlqtvGaMES5RTLO S/cSXHcXBX5uciO8DcJeLLUCXv7lubeKhnGtQ= MIME-Version: 1.0 Sender: dforsythe@gmail.com Received: by 10.220.96.135 with SMTP id h7mr931574vcn.87.1238709425769; Thu, 02 Apr 2009 14:57:05 -0700 (PDT) Date: Thu, 2 Apr 2009 17:57:05 -0400 X-Google-Sender-Auth: 9008e89aa916dba6 Message-ID: From: David Forsythe To: freebsd-ports@freebsd.org, pav@FreeBSD.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Parallel builds, build locks, pkg_dbdir locked 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: Thu, 02 Apr 2009 21:57:07 -0000 Hey all, A week or two ago I sent mail with a patch/makefile for locks and parallel builds. I was asked to put it all into bsd.port.mk, so here it is. If you set either of the parallel flags, I strongly suggest you use BATCH. If a config screen pops up during a build where 4 dependencies are running at a time, you will not be too happy. You can set NO_LOCKS to ignore all the locks that have been added, but parallel dependencies and fetching won't work without them (I don't know why you wouldn't want them anyway...). You can also set BUILD_TRACKER to get some tagged output to see which ports are building when, but this breaks certain messages. I also plan on adding a list of relevant targets so that when running targets what don't need the initial lock, there aren't duplicate warnings. patch: http://dmz2.khome.utcorp.net/~dforsyth/port.mk-locks.diff makefile: http://dmz2.khome.utcorp.net/~dforsyth/bsd.port.mk Thanks, Dave -- David Forsythe