From owner-freebsd-ports@FreeBSD.ORG Thu May 23 14:26:31 2013 Return-Path: Delivered-To: ports@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 43F7FB51; Thu, 23 May 2013 14:26:31 +0000 (UTC) Date: Thu, 23 May 2013 14:26:31 +0000 From: Alexey Dokuchaev To: Bryan Drewery Subject: Re: Plans for making MAKE_JOBS_SAFE the default? Message-ID: <20130523142631.GA68535@FreeBSD.org> References: <1A22DCEC-9548-4FD2-BFC5-4F3F4EC1E1C2@gmail.com> <20130523075627.GA79696@FreeBSD.org> <519E0912.4070500@FreeBSD.org> <20130523130041.GA47068@FreeBSD.org> <519E243D.9020501@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <519E243D.9020501@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Martin Wilke , Chris Rees , Ports Management Team , FreeBSD Ports , Eitan Adler , Olivier Smedts , Martin Wilke , Bryan Drewery X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 May 2013 14:26:31 -0000 On Thu, May 23, 2013 at 09:14:21AM -0500, Bryan Drewery wrote: > On 5/23/2013 8:00 AM, Alexey Dokuchaev wrote: > > On Thu, May 23, 2013 at 07:18:26AM -0500, Bryan Drewery wrote: > >> On 5/23/2013 2:56 AM, Alexey Dokuchaev wrote: > >>> FORCE_MAKE_JOBS is removed because it is the default. While here, I've > >>> moved empty(MAKE_JOBS_NUMBER) check higher, IMHO where it should belong, > >>> also saves a few lines. Reviews are welcome. > >> > >> Moving MAKE_JOBS_NUMBER is wrong, see r317639 > > > > Hmm, can you explain a bit more? Maybe I am missing something here, but > > as I read log for r317639: > > > > "[F]ix MAKE_JOBS_NUMBER not being set if none of DISABLE_MAKE_JOBS or > > MAKE_JOBS_UNSAFE or MAKE_JOBS_SAFE or FORCE_MAKE_JOBS were set." > > > > Previously (without my patch) it could happen because of nested .if's. Now > > _MAKE_JOBS is set in both branches (true and false). [...] > > I see now. You removed this > > -.if defined(MAKE_JOBS_SAFE) || defined(FORCE_MAKE_JOBS) > > So it should be fine now. Right. Just to make it clear (for everyone who is reading): previously we needed FORCE_MAKE_JOBS as it was not the default; now we don't need it and it was removed; thus making second .if check needless. Ergo, we can easily ensure that _MAKE_JOBS_NUMBER is always set now, without using the separate check for its emptiness (after the .if). ./danfe