Re: distcc only builds locally when using rpmbuild

2015-06-01 Thread stan
On Mon, 01 Jun 2015 07:14:16 -0400 Sam Varshavchik wrote: [snip] > ...for some reason, distcc ends up > ignoring everything but the localhost setting, in /etc/distcc/hosts, > when it's started from rpmbuild. That's where the problem is. > Obviously rpmbuild has something to do with it, but it's n

Re: distcc only builds locally when using rpmbuild

2015-06-01 Thread Suvayu Ali
Hi, On Mon, Jun 01, 2015 at 07:14:16AM -0400, Sam Varshavchik wrote: > > Once again: the correct number of distcc processes get started. But they > throttle each other, and only four, at a time, kick off a compile on > localhost, the configured distcc max job setting for localhosts, with the > ot

Re: distcc only builds locally when using rpmbuild

2015-06-01 Thread Sam Varshavchik
Suvayu Ali writes: Hi Sam, On Sun, May 31, 2015 at 08:05:44PM -0400, Sam Varshavchik wrote: > Suvayu Ali writes: > > > >How does rpmbulid decide how many threads to run? I think it looks at > >the local machine and decides. I also recall some variable called > >RPMBUILD_NCPU or something like

Re: distcc only builds locally when using rpmbuild

2015-06-01 Thread Suvayu Ali
Hi Sam, On Sun, May 31, 2015 at 08:05:44PM -0400, Sam Varshavchik wrote: > Suvayu Ali writes: > > > >How does rpmbulid decide how many threads to run? I think it looks at > >the local machine and decides. I also recall some variable called > >RPMBUILD_NCPU or something like that. That would exp

Re: distcc only builds locally when using rpmbuild

2015-05-31 Thread Sam Varshavchik
Suvayu Ali writes: On Sun, May 31, 2015 at 03:29:29PM -0400, Sam Varshavchik wrote: > Suvayu Ali writes: > > >On Sun, May 31, 2015 at 01:24:07PM -0400, Sam Varshavchik wrote: > >> > >> >> ps shows the maximum number of "/usr/bin/distcc /usr/bin/g++ [options]" > >> >> processes running locally,

Re: distcc only builds locally when using rpmbuild

2015-05-31 Thread Suvayu Ali
On Sun, May 31, 2015 at 03:29:29PM -0400, Sam Varshavchik wrote: > Suvayu Ali writes: > > >On Sun, May 31, 2015 at 01:24:07PM -0400, Sam Varshavchik wrote: > >> > >> >> ps shows the maximum number of "/usr/bin/distcc /usr/bin/g++ [options]" > >> >> processes running locally, that I but nothing get

Re: distcc only builds locally when using rpmbuild

2015-05-31 Thread Sam Varshavchik
Suvayu Ali writes: On Sun, May 31, 2015 at 01:24:07PM -0400, Sam Varshavchik wrote: > > >> ps shows the maximum number of "/usr/bin/distcc /usr/bin/g++ [options]" > >> processes running locally, that I but nothing gets distributed to other > >> hosts. > > I've got distcc configured for 10 concur

Re: distcc only builds locally when using rpmbuild

2015-05-31 Thread Suvayu Ali
On Sun, May 31, 2015 at 01:24:07PM -0400, Sam Varshavchik wrote: > > >> ps shows the maximum number of "/usr/bin/distcc /usr/bin/g++ [options]" > >> processes running locally, that I but nothing gets distributed to other > >> hosts. > > I've got distcc configured for 10 concurrent builds. 4 local

Re: distcc only builds locally when using rpmbuild

2015-05-31 Thread Sam Varshavchik
Kevin Cummings writes: As I recall, distcc involves running distcc instead of gcc. Do the RPM builds somehow override which compiler get used to use the standard gcc compiler instead of distcc? Perhaps through an environment variable in the build script? As I've explained in the paragraph yo

Re: distcc only builds locally when using rpmbuild

2015-05-31 Thread Kevin Cummings
On 05/31/2015 08:12 AM, Sam Varshavchik wrote: > I've got distcc working correctly, when I run a build myself. I see the > build jobs getting distributed just fine. > > However, when I use rpmbuild, all builds appear to be running locally. As I recall, distcc involves running distcc instead of gc

distcc only builds locally when using rpmbuild

2015-05-31 Thread Sam Varshavchik
I've got distcc working correctly, when I run a build myself. I see the build jobs getting distributed just fine. However, when I use rpmbuild, all builds appear to be running locally. ps shows the maximum number of "/usr/bin/distcc /usr/bin/g++ [options]" processes running locally, that I b