parallel builds revisited

Pav Lucistnik pav at FreeBSD.org
Fri Apr 13 15:10:51 UTC 2007


Peter Pentchev píše v pá 13. 04. 2007 v 18:06 +0300:
> On Tue, Apr 10, 2007 at 07:44:47PM +0200, Pav Lucistnik wrote:
> > Benjamin Lutz p??e v ?t 10. 04. 2007 v 04:52 +0200:
> [snip]
> > >   3) Save this to /usr/local/etc/parallel_builds.conf:
> > >      http://www.maxlor.com/temp/parallel_builds.conf .
> > >      This is a list of ports as stored in PKGORIGIN, or as
> > >      pkg_info -o reports them.
> > 
> > I was thinking about having it embedded in every port's Makefile
> > directly, instead. Something like
> > 
> > USE_MAKE_JOBS=	2
> 
> Funny that this discussion should come up here at about the same time
> as a very similar discussion on a Debian list :)
> 
> IMHO, hardcoding the number of jobs in the port's Makefile would not
> be the best approach.  I think a port should only flag whether it
> supports parallel building at all or not - and leave the number of jobs
> to either the ports framework or the administrator's choice.

That was just an example. You can do

USE_MAKE_JOBS=	yes

for autoscaling perfectly well. For details, see the patch I linked.

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

But soft, what light through yonder window breaks? It is the East,
and Juliet is the sun! Arise, fair sun, and kill the envious moon,
who is already sick and pale with grief that thou her maid art far
more fair than she.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070413/792a68ec/attachment.pgp


More information about the freebsd-ports mailing list