Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15303 - allow openh323 ebuild to use distcc
Summary: allow openh323 ebuild to use distcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-07 23:03 UTC by Alastair Tse (RETIRED)
Modified: 2003-02-17 22:05 UTC (History)
0 users

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


Attachments
patch to allow openh323 build to use distcc (openh323-cxx.patch,621 bytes, patch)
2003-02-07 23:04 UTC, Alastair Tse (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alastair Tse (RETIRED) gentoo-dev 2003-02-07 23:03:45 UTC
openh323-1.9.11.ebuild cannot be used with distcc because it doesn't honour the
CXX flag (well, it calls it $CPLUS).

Here is a patch that fixes this in the ebuild.

Reproducible: Always
Steps to Reproduce:
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-02-07 23:04:21 UTC
Created attachment 8031 [details, diff]
patch to allow openh323 build to use distcc
Comment 2 Wayne Davison 2003-02-09 19:58:13 UTC
The new distcc ebuild that Zach Welch should be releasing soon will have a set of compiler-wrappers that let ebuilds work without changing the CC/CXX variables, so we won't need to patch individual packages for distcc support anymore (hopefully).  You'll just need to turn on "distcc" in the FEATURES, upgrade to the latest portage, and it should just work.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2003-02-10 00:19:05 UTC
well, I tried the distcc flag in FEATURES, and it works for only a subset of packages. The problem here is that firstly openh323 has an unconventional Makefile that uses $(CPLUS) as its C++ compiler rather than $(CXX) as is the norm.

So therefore, you really do need this patch in order to get openh323 to compile using distcc, whether you use the distcc feature that zwelch added or not.
Comment 4 Wayne Davison 2003-02-17 21:15:07 UTC
You seem to be confusing the portage change (which was not done by Zwelch) and
the new distcc ebuild (which was).  Just adding distcc to the FEATURES setting
without upgrading to the latest (currrently masked) distcc ebuild only gets you
part way there, as you discovered.  The latest distcc ebuild installs wrappers
for gcc/g++/etc., and these don't require the twiddling of any environment
variables to make distcc work.  The latest portage know about these wrapper
symlinks, and updates the PATH to use them rather than playing games with CC
and CXX.  This neatly bypasses all the problems with programs that either
don't use the compiler environement variables, or have problems with them
containing multiple words.

Give distcc-1.1-r10 a try, and I think you'll find that it works for you.

I also recommend the gcc-config 1.3.1 ebuild, which installs gcc/g++/etc.
wrappers for the currently-configured gcc profile into /usr/bin, but I don't
think that this is required to make this work.
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-02-17 22:04:04 UTC
yep. the new distcc-1.1-r8 works for me now (very well, i might add). thanks for looking into this, i think you are correct when you said part of the problem was with my older distcc.

Comment 6 Alastair Tse (RETIRED) gentoo-dev 2003-02-17 22:05:06 UTC
yep. the new distcc-1.1-r8 works for me now (very well, i might add). thanks for looking into this, i think you are correct when you said part of the problem was with my older distcc.