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 04:57:41
--Signature=_Wed__19_May_2004_04_57_41_+0200_dMarjUUK.tuLkN/G
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
On Tue, 18 May 2004 19:22:20 +0000
"Bruce J.A. Nourish" <netbsd@bjan.freeshell.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:
PKGSRC_COMPILER=distcc gcc
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.
HTH,
--
Juan RP <juan@xtraeme.unixbsd.org>
--Signature=_Wed__19_May_2004_04_57_41_+0200_dMarjUUK.tuLkN/G
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
iD8DBQFAqs0pypkLYVDran0RAvkyAJ0QBk0Z0rSPNf7z6UT766ZrgpNf5QCfYVTJ
/v2RbAizziQBM5TqF0jsKR0=
=y3mL
-----END PGP SIGNATURE-----
--Signature=_Wed__19_May_2004_04_57_41_+0200_dMarjUUK.tuLkN/G--