distccd only registers one service subtype, e.g. _i686-pc-linux-gnu--4.3.1._sub._distcc._tcp if you don't have cross compiler, then this patch wouldn't do any good to you. However, if your system has cross compilers, then you wish they would be discovered by other distcc client, then this patch will help you a lot. This patch uses gcc-config, and hence "Gentoo specific".
Created attachment 162157 [details, diff] this patch applies on top of all existing patches to distcc-2.18.3-r13
Created attachment 162158 [details, diff] coding style change
sorry for delay. I think that it is better way to use environment variables same as DISTCC_CMDLIST and DISTCC_CMDLIST_NUMWORDS in >=distcc-3.0. -- local myprofile for myprofile in $(gcc-config -l | awk '{print $2}'); do DISTCC_ZEROCONF="${DISTCC_ZEROCONF} $(gcc-config -S ${myprofile})" done
Thank you for reminding me of DISTCC_CMDLIST. I will take a look if I can come up with a better solution based on DISTCC_CMDLIST.