[avahi] [PATCH] Updated Avahi/Zeroconf support for distcc

Lennart Poettering lennart at poettering.net
Sun Dec 30 07:47:41 PST 2007


Hi!

I updated my Zeroconf/Avahi patch for distcc:

http://0pointer.de/public/distcc-avahi.patch

It has been a while since I wrote the original patch. Changes since
then are mostly replacing code that now moved into the official Avahi
API with calls to the latter.

However, there's also a very important change: We now publish a DNS-SD
service subtype for our distcc service, which includes the GCC version
and machine id. Previously the zeroconf patch would use all distccd
servers it found regardless of their GCC versions or even
architectures. In a homogenous LAN with systems running all the same
distros and having all the same CPUs this is not much of a problem,
but with heterogenous networks this becomes a problem. Since I moved
to Fedora on desktop machines but left some other machines with an old
Debian this became a problem for me.

Please note that Fedora and Debian use different machine strings ("gcc
-dumpmachine"), hence Fedora distccs won't find Debian distccs and
vice versa even if they nominally run the same GCC version. But that's
expected behaviour and the way it should be, because GCC is usually
heavily patched by the distributors! Of course, the information from
gcc -dumpversion still doesn't reflect the distribution's patch
levels, but I implicitly hope that the distributors won't break the
gcc binary interface or the language understood too wildly between
their own patch levels.

I will blog how to use a patched distcc on http://0pointer.de/blog
shortly; watch that space!

Maintainers, please consider merging this patch into your
distribution's packages now, since distcc maintainership upstream
seems to be, uh..., dormant. Zeroconf support in distcc is such a cool
feature, it would be a pity to deprive your users of it any longer!

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/avahi/attachments/20071230/07a8fc99/attachment.pgp 


More information about the avahi mailing list