From owner-freebsd-questions@FreeBSD.ORG Mon Jan 26 06:15:04 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 F2F91106564A for ; Mon, 26 Jan 2009 06:15:04 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 8B1318FC13 for ; Mon, 26 Jan 2009 06:15:04 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 12111 invoked by uid 399); 26 Jan 2009 05:48:24 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 26 Jan 2009 05:48:24 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <497D4EA6.1020100@FreeBSD.org> Date: Sun, 25 Jan 2009 21:48:22 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.19 (X11/20090111) MIME-Version: 1.0 To: josh.carroll@gmail.com References: <20090125214457.GA4568@phenom.cordula.ws> <8cb6106e0901251422q1412ed38gd14f7591d4dfcabd@mail.gmail.com> In-Reply-To: <8cb6106e0901251422q1412ed38gd14f7591d4dfcabd@mail.gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: cpghost , freebsd-questions@freebsd.org Subject: Re: 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: Mon, 26 Jan 2009 06:15:05 -0000 Josh Carroll wrote: > What I do is the following via make.conf, I think this is a good solution. Given that incredible foot-shooting power of the -j stuff I am not inclined to add something like this to portmaster, not even as an "advanced" option. Doug > which will work for > portmaster/portupgrade or manual builds: > > # set MAKE_ARGS for the build target(s) > .if !(make(*install) || make(package)) > MAKE_ARGS+=-j8 > .endif > > Then as you find ports that don't build properly, add an entry like this: > > # some ports don't like -j8, so we can undo the MAKE_ARGS addition for those > .if ${.CURDIR:M*/multimedia/mplayer} > MAKE_ARGS:=${MAKE_ARGS:C/-j8//} > .endif > > It's a bit of a hack, but I've had decent success with this. Enough > ports fail to build with -jX, that I'd never do the above on a > production machine, especially since it's possible for some sort of > silent error that produces an unpredictable binary. But for my home > machine, I've been pretty happy with it. > > Regards, > Josh > -- This .signature sanitized for your protection