Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233843 - improvements (Gentoo specific) to distcc zeroconf support
Summary: improvements (Gentoo specific) to distcc zeroconf support
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard: patch waiting review
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-03 20:40 UTC by Zhang Le (RETIRED)
Modified: 2013-02-03 12:50 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
this patch applies on top of all existing patches to distcc-2.18.3-r13 (distcc-2.18.3-r13-zeroconf-multiple-gcc-registration.patch,4.68 KB, patch)
2008-08-03 20:43 UTC, Zhang Le (RETIRED)
Details | Diff
coding style change (distcc-2.18.3-r13-zeroconf-multiple-gcc-registration.patch,4.69 KB, patch)
2008-08-03 20:45 UTC, Zhang Le (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zhang Le (RETIRED) gentoo-dev 2008-08-03 20:40:40 UTC
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".
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})"
done
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.