Subject: Re: distcc and make -jN
To: Bruce J.A. Nourish <netbsd@bjan.freeshell.org>
From: Juan RP <juan@xtraeme.unixbsd.org>
List: tech-pkg
Date: 05/19/2004 08:52:40
--Signature=_Wed__19_May_2004_08_52_40_+0200_gsf+fw9E=OU7Ec58
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Wed, 19 May 2004 05:48:09 +0000
"Bruce J.A. Nourish" <netbsd@bjan.freeshell.org> wrote:

> This is almost exactly what I'm doing (I have localhost at the front). 
> The problem is, that unless -jN (for N > 1) is specified, this 
> configuration is worthless - you would be better not using distcc at 
> all. 
> 
> This is because distcc round-robins through the host list from the
> start each time, passing over a host only if it has exceeded its
> job limit. As -j1 (or no -j option) will only ever cause one job to
> be running at once, only the first host will ever be used. 
> 
> Ergo, unless -jN (N > 1) is given, *the use of distcc is a complete
> waste of time* (except in a few very special cases).
> 
> I'm rather inclined to submit a PR on the matter, as it shouldn't
> be that difficult to a create a variable (say, PKG_MAKEFLAGS) to
> pass flags to the make invocation in the package's build stage.
> 
> What does everyone think?

You are right... in that case MAKE_FLAGS is what we need, because it's only
defined in the "do-build" target.

-- 
	Juan RP <juan@xtraeme.unixbsd.org>

--Signature=_Wed__19_May_2004_08_52_40_+0200_gsf+fw9E=OU7Ec58
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAqwQ7ypkLYVDran0RAuwmAJ4lnmoHKsvhh9yToePW3MAXYITMFQCgp3Af
+zBoSjHkN/wJPC9DtxtRxqI=
=KB4n
-----END PGP SIGNATURE-----

--Signature=_Wed__19_May_2004_08_52_40_+0200_gsf+fw9E=OU7Ec58--