Subject: Re: distcc and make -jN
To: Bruce J.A. Nourish <firstname.lastname@example.org>
From: Juan RP <email@example.com>
Date: 05/19/2004 04:57:41
Content-Type: text/plain; charset=US-ASCII
On Tue, 18 May 2004 19:22:20 +0000
"Bruce J.A. Nourish" <firstname.lastname@example.org> wrote:
> Hey everyone,
> I'd like to set up distcc with pkgsrc. I have distcc set up and working,
> but I can't find out how to make pkgsrc pass -jN to the package build.
> Without this flag, only localhost gets used, rendering the "dist" in
> "distcc" pretty useless.
> I have tried adding MAKEFLAGS+=-j2 to /etc/mk.conf, but that broke
> the su-install feature, which is something I rely on.
> Any ideas?
You cannot use -j X with pkgsrc, but you can use the following to use distcc:
DISTCC_HOSTS=REMOTE_HOST1 REMOTE_HOST2 ... localhost
in the box that you want to use distcc as client.
In the server side you'll have to run distccd "distccd=yes" in rc.conf.
This is what I'm using here, and this works perfectly.
Juan RP <email@example.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
-----END PGP SIGNATURE-----