From owner-freebsd-ports@FreeBSD.ORG Tue Mar 24 14:50:36 2009 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 156D01065672; Tue, 24 Mar 2009 14:50:36 +0000 (UTC) (envelope-from niclas.zeising@gmail.com) Received: from mx6.bahnhof.se (mx6.bahnhof.se [213.80.101.16]) by mx1.freebsd.org (Postfix) with ESMTP id BCFF18FC21; Tue, 24 Mar 2009 14:50:35 +0000 (UTC) (envelope-from niclas.zeising@gmail.com) Received: from localhost (mx6.local [127.0.0.1]) by mx6-reinject (Postfix) with ESMTP id B597A21109D; Tue, 24 Mar 2009 15:29:20 +0100 (CET) Received: from mx6.bahnhof.se ([127.0.0.1]) by localhost (mx6.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 66238-04; Tue, 24 Mar 2009 15:29:17 +0100 (CET) Received: from [10.0.0.3] (h-85-24-219-30.NA.cust.bahnhof.se [85.24.219.30]) by mx6.bahnhof.se (Postfix) with ESMTP id 978342110F8; Tue, 24 Mar 2009 15:29:17 +0100 (CET) Received: from 127.0.0.1 (AVG SMTP 8.0.238 [270.11.25/2019]); Tue, 24 Mar 2009 15:28:49 +0100 Message-ID: <49C8EE21.3080702@gmail.com> Date: Tue, 24 Mar 2009 15:28:49 +0100 From: Niclas Zeising User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: pav@FreeBSD.org References: <1237901632.1849.19.camel@pav.hide.vol.cz> In-Reply-To: <1237901632.1849.19.camel@pav.hide.vol.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MX6) X-Spam-Status: No, score=1.44 tagged_above=-99 required=5 tests=[DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.44 X-Spam-Level: * Cc: ports@FreeBSD.org Subject: Re: HEADS UP multi processor compilations for everyone 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: Tue, 24 Mar 2009 14:50:36 -0000 Great work! Pav Lucistnik wrote: > Two days ago, I have checked in probably most requested feature of last > few years. Ports framework now systematically supports building ports on > multiple processing cores. It is achieved by passing -jX flag to make(1) > running on vendor code. Of course not all ports handle this well, > experimental run on pointyhat with this flag globally enabled turned up > shy of 400 failures. Because of that, the feature was designed as a > whitelist. Individual ports need to be enabled, and indeed, fellow > developers took on and already started adding required declarations to > popular ports like Firefox and others. > > If you are FreeBSD ports user: > > You don't need to do anything to enable the new feature. Whitelisted > ports will automatically make use of all processors available in your > computer. If you want, for some reasons, to disable this feature, put > DISABLE_MAKE_JOBS=yes to your /etc/make.conf. By default, the level of > parallelization will be equal to a number of processing cores in your > machine. If you want to override this number, use for example > MAKE_JOBS_NUMBER=6, again in /etc/make.conf. And if you are extra brave, > or you want to check out all the yet unmarked ports, if they will build, > you can define FORCE_MAKE_JOBS=yes in /etc/make.conf. Not to nitpick or be an annoyance, but you might want to document this in ports(7) or make.conf(5) (or both) so it doesn't get lost in the mail-lists or if people are not reading ports@ > > If you are FreeBSD port maintainer: > > Nothing changes for you, if you don't want. If you want to enable the > use of multiple cores in your port, add MAKE_JOBS_SAFE=yes to a block > somewhere below dependency declarations. If you know your port does not > handle -jX well, and want to disable it from using -jX even when user > forces this feature, use MAKE_JOBS_UNSAFE=yes. And that's all to it. > Regards! //Niclas