Open GoogleCodeExporter opened 9 years ago
Please take a look at the patch I've attached which fixes this problem.
It makes distccd broadcast supported options via new "options" TXT record. For
now
the options are hardcoded to "cpp,lzo".
The patch also makes distcc aware of "options" record so that "distcc
--show-hosts"
now takes it into consideration while creating hosts file. Also note that
distcc will
handle absence of "options" record properly so that it will remain compatible
with
older implementations of distccd.
Original comment by madkinder
on 24 Jan 2010 at 9:20
Attachments:
Thanks for the patch!
I've sent some comments on the patch to the distcc-patches mailing list.
Original comment by fergus.h...@gmail.com
on 16 Feb 2010 at 9:40
I modified the patch provided by madkinder to work with distcc in Gentoo
portage and created an ebuild. It compiles, but distcc does not find any hosts
with "cpp,lzo" - what is the status on this issue? Has a new solution been
worked out since the last post from 7 months ago?
Original comment by cat.mole...@gmail.com
on 25 Sep 2010 at 9:52
Attachments:
Running 'avahi-browse _distcc._tcp -rtkv' doesn't show any mention of lzo or
cpp. Should it? Output follows:
matt@thelonious ~ $ avahi-browse _distcc._tcp -rtkv
Server version: avahi 0.6.25; Host name: thelonious.local
E Ifce Prot Name Type
Domain
+ eth0 IPv4 distcc@mingus _distcc._tcp
local
+ eth0 IPv4 distcc@thelonious _distcc._tcp
local
= eth0 IPv4 distcc@mingus _distcc._tcp
local
hostname = [mingus.local]
address = [192.168.69.2]
port = [3632]
txt = ["cc_machine=x86_64-pc-linux-gnu" "cc_version=4.3.4" "gnuhost=x86_64-pc-linux-gnu" "distcc=3.1" "cpus=2" "txtvers=1"]
= eth0 IPv4 distcc@thelonious _distcc._tcp
local
hostname = [thelonious.local]
address = [192.168.69.8]
port = [3632]
txt = ["cc_machine=x86_64-pc-linux-gnu" "cc_version=4.3.4" "gnuhost=x86_64-pc-linux-gnu" "distcc=3.1" "cpus=2" "txtvers=1"]
: All for now
: Cache exhausted
matt@thelonious ~ $
Original comment by cat.mole...@gmail.com
on 25 Sep 2010 at 9:57
With the patch from madkinder I got the options from avahi (avahi-browse
_distcc._tcp -rtkv):
= eth1 IPv4 distcc@polly.vanutsteen.nl _distcc._tcp
local
hostname = [polly.local]
address = [192.168.1.105]
port = [3632]
txt = ["cc_machine=x86_64-linux-gnu" "cc_version=4.4.5" "options=cpp,lzo" "gnuhost=x86_64-unknown-linux-gnu" "distcc=3.1" "cpus=2" "txtvers=1"]
But when running: make CC=pump I got the following error:
distcc[30286] (dcc_show_hosts) CRITICAL! Failed to get host list
/usr/bin/pump: error: pump mode requested, but distcc hosts list does not
contain any hosts with ',cpp' option
/usr/bin/pump: 547: -DHAVE_CONFIG_H: not found
Original comment by leonboga...@gmail.com
on 27 Oct 2010 at 8:17
Running "make CC=pump" won't work. You would need to use "pump make CC=distcc".
Original comment by fergus.h...@gmail.com
on 27 Oct 2010 at 8:24
Is there any chance to add this patch to sources? so it will appear in distros
;)
Original comment by Kice...@gmail.com
on 20 Jun 2011 at 6:23
Revised patch with most of Fergus' comments handled. Now hosts file supports
turning off discovery of cpp and/or lzo options announced by distccd.
Original comment by madkinder
on 27 Jun 2011 at 10:09
Attachments:
If distcc is still being developed, I'd like to see this added.
Though no comments since 2011 isn't a good sign :(
Original comment by stevenho...@gmail.com
on 17 Aug 2014 at 2:25
Original issue reported on code.google.com by
madkinder
on 23 Jan 2010 at 4:38