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
Ping! Any progress here?
Ping! Any progress here?
Only as much as one might expect from the preceding comment being
Though no comments since 2011 isn't a good sign :(
:-D
I guess as a first step I should try and :
Darn. I would have expected to find that patch in the mailing list archive for Q1 of 2010 based on the comments above. https://lists.samba.org/archive/distcc/2010q1/thread.html I cannot see it there though. Does anyone know where patches would have gone to and if comments made on them could be retrieved?
I am also interested in this, could not find the original comments (found references to a distcc-patches mailing list that seems to be lost) so I created a branch from madkinder's zeroconf_options2.patch
with some minor modifications just to make it compile.
It seems to be working for me, I also added a bunch of comments that I would appreciate input on (I have not committed to this project before so I don't know what your overall/long term goals are).
I have not committed to this project before so I don't know what your overall/long term goals are
Survival of the project is about all we have planned at the moment. The original developers do not have much time to focus on this anymore so there are a couple of us trying to just keep the system going.
If there are any non-breaking improvements or fixes then I do not see a reason we should not add them to the code base.
Looks like this still haven't been implemented :disappointed: using 3.3.2
Original issue reported on code.google.com by
madkinder
on 23 Jan 2010 at 4:38