Subject: Re: pkgsrc and distcc
To: None <>
From: Jukka Salmi <>
List: tech-pkg
Date: 05/25/2005 21:47:14
Roland Illig --> tech-pkg (2005-05-25 20:55:20 +0200):
> Jukka Salmi wrote:
> >Hi,
> >
> >is distcc supposed to work with pkgsrc? I just installed devel/distcc on
> >three NetBSD/i386 hosts, two of which run 2.0_STABLE, one runs -current;
> >all of them use the gcc from the base system (3.3.3 nb3 20040520).
> >
> >The -current system (which is the build host) has the following settings in
> >/etc/mk.conf:
> >
> >	PKGSRC_COMPILER  = distcc gcc
> >	DISTCC_HOSTS     = localhost host1 host2
> >	MAKEFLAGS       += -j6
> You could try MAKE_FLAGS+=-j6 instead of MAKEFLAGS.
> MAKE_FLAGS affects the ${MAKE_PROGRAM}, which is used to build, test and 
> install packages.
> MAKEFLAGS affects the ${MAKE} calls inside the pkgsrc infrastructure.

Hmm, just tried this, but if I use MAKE_FLAGS+=-j6 everything is compiled
on localhost (with MAKEFLAGS all three hosts took part in compiling).
Furthermore, building print/xpdf now fails with:

===> build-message [xpdf-3.00pl3] ===> Building for xpdf-3.00pl3
--- all ---
cd goo; /usr/bin/make
c++ -O2 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include -DHAVE_CONFIG_H -I.. -I. -c
ranlib libGoo.a
cd fofi; /usr/bin/make
cd: can't cd to fofi
cd splash; /usr/bin/make
cd: can't cd to splash
cd xpdf; /usr/bin/make all
cd: can't cd to xpdf
=> Unwrapping files-to-be-installed.

and I can't find the source of the problem...

Regards, Jukka

bashian roulette:
$ ((RANDOM%6)) || rm -rf ~