Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 233843

Summary: improvements (Gentoo specific) to distcc zeroconf support
Product: Gentoo Linux Reporter: Zhang Le (RETIRED) <r0bertz>
Component: Current packagesAssignee: Gentoo Cluster Team <cluster>
Status: CONFIRMED ---    
Severity: normal CC: betelgeuse, cluster, kanelxake, lars, pacho, tetromino
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: patch waiting review
Package list:
Runtime testing required: ---
Attachments: this patch applies on top of all existing patches to distcc-2.18.3-r13
coding style change

Description Zhang Le (RETIRED) gentoo-dev 2008-08-03 20:40:40 UTC
distccd only registers one service subtype, e.g.
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".
Comment 1 Zhang Le (RETIRED) gentoo-dev 2008-08-03 20:43:09 UTC
Created attachment 162157 [details, diff]
this patch applies on top of all existing patches to distcc-2.18.3-r13
Comment 2 Zhang Le (RETIRED) gentoo-dev 2008-08-03 20:45:49 UTC
Created attachment 162158 [details, diff]
coding style change
Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2008-12-04 09:28:02 UTC
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})"
Comment 4 Zhang Le (RETIRED) gentoo-dev 2008-12-07 11:19:19 UTC
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.