From owner-freebsd-questions@FreeBSD.ORG Tue Mar 15 23:14:19 2011 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 2C9A41065711; Tue, 15 Mar 2011 23:14:19 +0000 (UTC) (envelope-from dforsythe@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id D613D8FC16; Tue, 15 Mar 2011 23:14:18 +0000 (UTC) Received: by iyj12 with SMTP id 12so1285744iyj.13 for ; Tue, 15 Mar 2011 16:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=M/9eCEjdklOs/uJE5SHefgcuzIe9ptDVFKG2E2ZmLnU=; b=XKtE3mgXSRoc0XR/Q0ZEva0JVjl+CtsQ3iIpZdNtQilcE2qkl3WtImZ8vsxwRDndUu WDBXFdMf67LyyRsg1XxUeickUjBp4kmq+r1cgD/ulUDtlh+4lcU56VYX5qLuITD01yMs WXEKaAFUkdQg0QmO+hivZd5hGTKt3BtFhbS28= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=GymXBQz8uIqNMVrKl409Zt6qj845x05wRar0A/7nME+VgOrdrQxJEwvycWONOomSsS fcbz6raBygERt1JuSWnO4eJ4JOkdCAKHIkwPy9mOUW1fbNYzGUI6ww58yMxlMB0GpLI9 DuhWVge+alerf1fDAz7AQnqQjRE5pDuohceDM= MIME-Version: 1.0 Received: by 10.231.142.20 with SMTP id o20mr34593ibu.65.1300229088731; Tue, 15 Mar 2011 15:44:48 -0700 (PDT) Sender: dforsythe@gmail.com Received: by 10.231.14.5 with HTTP; Tue, 15 Mar 2011 15:44:48 -0700 (PDT) In-Reply-To: References: <4D7FBC0E.5020302@reiteration.net> <1468BFDD-5E3C-4756-830B-266D0942AED0@mac.com> Date: Tue, 15 Mar 2011 15:44:48 -0700 X-Google-Sender-Auth: YTAHEVijGnZ6soL5aWE7ctxd_7Q Message-ID: From: David Forsythe To: Eitan Adler Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Ports ML , freebsd-questions@freebsd.org Subject: Re: can make -j be used for ports? 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: Tue, 15 Mar 2011 23:14:19 -0000 I had patches for this a couple of years ago when I worked on this problem for summer of code. What I did back then is surely stale, but if people really want it, I'd be happy to take another stab at it. On Tue, Mar 15, 2011 at 3:35 PM, Eitan Adler wrote: >>Is this possible or am I being unreasonable, or both, or not? > > This is unsupported, but you are not being unreasonable. This is a > much wanted feature. > >> Yes. =C2=A0Ports which support parallel builds will have MAKE_JOBS_SAFE= =3Dyes set in the port Makefile. =C2=A0It defaults to running -j with MAKE_= JOBS_NUMBER=3D`${SYSCTL} -n kern.smp.cpus`, but you can change that to some= other # if you like. > > No, this is incorrect. The MAKE_JOBS_NUMBER and MAKE_JOBS_SAFE is used > internally when building a single port. When the OP is asking if he > can manually specify -j on the command line which would end up > building multiple ports in parallel. This can not be done (primarily > because there is no locking done on ports) > > Certain utilities can make this process faster. For example portmaster > prefetches as much as it can, > > > -- > Eitan Adler > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > --=20 David