distcc doesn't read /etc/distcc/hosts when started by rpmbuild

Sam Varshavchik <[email protected]> Sun, 14 Jun 2015 10:33:00 -0400
Newsgroups gmane.comp.compilers.distcc
Message-ID <[email protected]>
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--===============1561354140063313171==
Content-Type: multipart/signed;
    boundary="=_monster.email-scan.com-10703-1434292380-0001";
    micalg=pgp-sha1; protocol="application/pgp-signature"

This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_monster.email-scan.com-10703-1434292380-0001
Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I have /etc/distcc/hosts configured with 4 local builds, and 6 distibuted =20
builds.

When I run 'make -j 10' myself, the build gets correctly distributed. But =20
something strange happens when I try to use rpmbuild.

I have rpmbuild properly configured to run 'make -j 10'. And I see that t=
en =20
distcc instances get started, but only for localhost builds appear to be =20
running, and the remaining processes wait until a localhost slot becomes =20
available, before spawning off g++.

I strace-d the entire rpmbuild.

What I see is that distcc never reads /etc/distcc/hosts, and just proceed=
s =20
to run a local build.

When I run 'make -j 10' myself, this is what I see the distcc process doi=
ng:

17180 mkdir("/home/mrsam/.distcc", 0777 <unfinished =E2=80=A6>
17180 <=E2=80=A6 mkdir resumed> )             =3D -1 EEXIST (File exists)
17180 access("/home/mrsam/.distcc/hosts", R_OK) =3D -1 ENOENT (No such fi=
le or =20
directory)
17180 access("/etc/distcc/hosts", R_OK <unfinished =E2=80=A6>

=E2=80=A6 and so on.

When I strace an entire rpmbuild, the distcc process, instead, does this:

10068 mkdir("/home/mrsam/.distcc", 0777 <unfinished =E2=80=A6>
10068 <=E2=80=A6 mkdir resumed> )             =3D -1 EEXIST (File exists)
10068 mkdir("/home/mrsam/.distcc/lock", 0777 <unfinished =E2=80=A6>
10068 <=E2=80=A6 mkdir resumed> )             =3D -1 EEXIST (File exists)
10068 open("/home/mrsam/.distcc/lock/cpu_localhost_0", O_WRONLY|O_CREAT, =20
0666 <unfinished =E2=80=A6>

=E2=80=A6 and so on. What are the reasons distcc decides to skip checking =20
/etc/distcc/hosts? grepping the entire strace, distcc never tries to read =20
/etc/distcc/hosts.


--=_monster.email-scan.com-10703-1434292380-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJVfZCcAAoJEGs6Yr4nnb8l3xkQAKHYf8EW3F7n2OTBsC4duFm6
3mWYifbU9oN60EptvgrDETl6W73ktLSnGPdUCqVk95V2iIL/33MjXp5+G/gLN6So
BStKy3Nrl46rlhvWdmaYBQEbjDJ2G1SfZ4yoi/Js57g0kts6fQEezY8fPEBs38Zf
vRcSW7HGBnR8wAbDy67RIy5uY6QbFiPg9AkWCFkVR1hyM0MLAga5EZA22sYtCkou
ASg10n16+X73oAMou9m7f/JCjS0UzeAd88zATB73U3+al+eGVI7s08kJD62arkPU
XQwjj3ymGchNr9zJRQUjU92Lupf3i6eC92X4MGGc/F3ewOKeJ96Im45g/hb1D0Zy
eHqrUM8vRW2oUvXcBMBSgoQ2uYLAl7Urz/2evf9p2IrK7jiDXmWshHzHnr+IitAw
TLNUhk6NU9RoXREQSaYv3Wqgocr6IbteS4+k5veI10zrS7Bthhdlia8XCE9s58lx
WQ9PRdLfi9B4ITxKOkTE1qGt3Z3oagm3vMIQ2HBG4zzOl1oMvJ/ljQ1MESR6tdIQ
I63OCCjIxHNjCigqMxb3KhQncdW7uXBU0NnY1dcauFSPNn2gVy+wvqgFDlgCsaWp
tDI6Hy4SxB+CcRuocUXza7tChzgwOHLMgGuah7PsjpWDZxkByOeXqk8bKBaIhkfo
oTyxBsTxCOnLGn5sw7g3
=8UUR
-----END PGP SIGNATURE-----

--=_monster.email-scan.com-10703-1434292380-0001--

--===============1561354140063313171==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc
--===============1561354140063313171==--