public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev]  [RFC] Create a JOBS variable to replace -jX in MAKEOPTS
@ 2008-12-04 20:29 Diego 'Flameeyes' Pettenò
  2008-12-04 20:37 ` Luca Barbato
                   ` (3 more replies)
  0 siblings, 4 replies; 33+ messages in thread
From: Diego 'Flameeyes' Pettenò @ 2008-12-04 20:29 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]


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.

-- 
Diego "Flameeyes" Pettenò
http://blog.flameeyes.eu/


[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2012-09-12 18:54 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-04 20:29 [gentoo-dev] [RFC] Create a JOBS variable to replace -jX in MAKEOPTS Diego 'Flameeyes' Pettenò
2008-12-04 20:37 ` Luca Barbato
2008-12-04 20:40 ` [gentoo-dev] " Tiziano Müller
2008-12-04 20:46   ` Diego 'Flameeyes' Pettenò
2008-12-04 20:56 ` [gentoo-dev] " Alec Warner
2008-12-04 21:12   ` [gentoo-dev] " Diego 'Flameeyes' Pettenò
2008-12-05  4:33     ` Joe Peterson
2008-12-05  7:23       ` Rémi Cardona
2008-12-05 10:30         ` Peter Volkov
2008-12-05 11:44           ` Diego 'Flameeyes' Pettenò
2012-08-31  8:21 ` [gentoo-dev] EJOBS variable for EAPI 5? (was: [RFC] Create a JOBS variable to replace -jX in MAKEOPTS) Ulrich Mueller
2012-08-31 14:45   ` Ciaran McCreesh
2012-08-31 15:12     ` Alexis Ballier
2012-09-02  0:20       ` Brian Harring
2012-09-02  1:26         ` Michael Mol
2012-09-04 11:00         ` Walter Dnes
2012-09-04 17:15           ` [gentoo-dev] EJOBS variable for EAPI 5? Zac Medico
2012-09-11 16:36             ` vivo75
2012-09-11 16:43               ` Zac Medico
2012-09-11 16:54                 ` Ian Stakenvicius
2012-09-11 17:07                   ` Zac Medico
2012-09-11 19:16                     ` Rich Freeman
2012-09-12  9:55                   ` Gregory M. Turner
2012-09-12 12:58                     ` Ian Stakenvicius
2012-09-12 16:33                       ` Hans de Graaff
2012-09-12 16:48                         ` Michael Mol
2012-09-12 16:58                         ` Zac Medico
2012-09-12 17:03                           ` Ian Stakenvicius
2012-09-12 18:52                       ` Gregory M. Turner
2012-09-12 15:18                 ` vivo75
2012-08-31 15:27     ` [gentoo-dev] EJOBS variable for EAPI 5? (was: [RFC] Create a JOBS variable to replace -jX in MAKEOPTS) Alexandre Rostovtsev
2012-08-31 16:08       ` [gentoo-dev] EJOBS variable for EAPI 5? Ian Stakenvicius
2012-08-31 16:11         ` Ian Stakenvicius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox