From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1L8Kpw-0003I6-Aw for garchives@archives.gentoo.org; Thu, 04 Dec 2008 20:30:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80FD1E03CE; Thu, 4 Dec 2008 20:30:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 50EE2E03CE for ; Thu, 4 Dec 2008 20:30:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id D8E9C64ADD for ; Thu, 4 Dec 2008 20:30:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.09 X-Spam-Level: X-Spam-Status: No, score=-3.09 required=5.5 tests=[AWL=0.509, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JbZ6kntqhy7q for ; Thu, 4 Dec 2008 20:30:03 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 2F83F64ACB for ; Thu, 4 Dec 2008 20:30:02 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L8Kpa-0004LY-RB for gentoo-dev@gentoo.org; Thu, 04 Dec 2008 20:29:50 +0000 Received: from ppp-122-238.21-151.libero.it ([151.21.238.122]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2008 20:29:50 +0000 Received: from flameeyes by ppp-122-238.21-151.libero.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2008 20:29:50 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: flameeyes@gmail.com (Diego 'Flameeyes' =?utf-8?Q?Petten=C3=B2?=) Subject: [gentoo-dev] [RFC] Create a JOBS variable to replace -jX in MAKEOPTS Date: Thu, 04 Dec 2008 21:29:39 +0100 Message-ID: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-122-238.21-151.libero.it User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:xNphwohc9iwxmYECOgF+S29fUWE= Sender: news X-Archives-Salt: 0c93a398-5a8a-4654-b807-b1ffbcce61bf X-Archives-Hash: 750e33f68b16d971dff1f40dd9145e56 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Since not all the buildsystem we support use make for the actual build, and they don't necessarily support make-like options (-jX -s and so on), it would be nice to be able to express a JOBS variable that could be used for parallel build with any build systems. Right now there are ebuilds like openoffice or some scons-based ebuilds that parse MAKEOPTS and get out of that the number of jobs from the -j option, but this is a) suboptimal b) error-prone. One has to consider people might be using -l for parallel building too, for which reasons I'd be suggesting doing something like this to make the change transparent: - ebuilds using non-make build systems would use JOBS; - ebuilds using make builds systems would just use emake as usual; - Portage takes care, if JOBS is unset, to parse it out of MAKEOPTS; - if user has set JOBS but not MAKEOPTS this defaults to -j${JOBS}; - if user has JOBS and MAKEOPTS, MAKEOPTS keeps the same (for -l). The result is that you can finally combine -l with parallel build on OpenOffice and other packages, with a fallback number of maximum jobs instead of using load-based decisions. =2D-=20 Diego "Flameeyes" Petten=C3=B2 http://blog.flameeyes.eu/ --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkk4PbMACgkQe2h1+2mHVWPN9wCeJM0woqslsUGUAPc7GGmRj39y WFkAoKW3eZkT4FUqoalQlj/DjVpBaQw5 =zH8V -----END PGP SIGNATURE----- --=-=-=--