From owner-freebsd-questions@FreeBSD.ORG Sun Jan 25 21:43:24 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70D67106564A for ; Sun, 25 Jan 2009 21:43:24 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id DD2448FC08 for ; Sun, 25 Jan 2009 21:43:23 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from phenom.cordula.ws (phenom [192.168.254.60]) by fw.farid-hajji.net (Postfix) with ESMTP id 52B6336B06; Sun, 25 Jan 2009 22:43:22 +0100 (CET) Date: Sun, 25 Jan 2009 22:44:57 +0100 From: cpghost To: freebsd-questions@freebsd.org Message-ID: <20090125214457.GA4568@phenom.cordula.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: dougb@FreeBSD.org Subject: make -jN build with portmaster X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2009 21:43:24 -0000 To build ports in parallel on a 4 core machine, I usually do this manually: # cd /usr/ports/some/port # make configure && make -j5 build && make install clean because all steps except "make build" are not compatible with -jN (some ports don't work with -jN in the "make build" phase either, but they are quite rare). Now, is there a way to teach portmaster to build or rebuild ports this way? The only workaround for now is something like: # cd /usr/ports/some/port # make configure && make -j5 build # portmaster -b -d -C which doesn't clean up some/port/work before building, thus using the manual parallel step before. So, how can portmaster run 'make -jN build' instead of simple 'make build'? (I know about portmaster's -m option, but passing -jN to it won't work, as it would also try to apply this to other phases than "make build"). Thanks, -cpghost. -- Cordula's Web. http://www.cordula.ws/