Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137594 - distcc-config uses incorect CHOST
Summary: distcc-config uses incorect CHOST
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on: 192741
Blocks:
  Show dependency tree
 
Reported: 2006-06-22 07:46 UTC by roma1390
Modified: 2010-09-11 22:35 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roma1390 2006-06-22 07:46:40 UTC
-----------------
case 1:
-----------------

# cat /etc/make.conf | grep CHOST
CHOST="i586-pc-linux-gnu"
#CHOST="i686-pc-linux-gnu"

# ls /usr/lib/distcc/bin/
c++  cc  g++  gcc

# distcc-config --install

# ls /usr/lib/distcc/bin/
c++  cc  g++  gcc  i586-pc-linux-gnu-c++  i586-pc-linux-gnu-g++  i586-pc-linux-gnu-gcc

-----------------

-----------------
case 2:
-----------------

# cat /etc/make.conf | grep CHOST
#CHOST="i686-pc-linux-gnu"
CHOST="i586-pc-linux-gnu"


# ls /usr/lib/distcc/bin/
c++  cc  g++  gcc

# distcc-config --install

# ls /usr/lib/distcc/bin/
c++  cc  g++  gcc  i686-pc-linux-gnu-c++  i686-pc-linux-gnu-g++  i686-pc-linux-gnu-gcc

-----------------

This is incorrect!!!!

distcc-config --install uses first CHOST value, and ignores if it is commented or not.
Comment 1 Ulf Bartelt (RETIRED) gentoo-dev 2006-08-02 22:18:44 UTC
(In reply to comment #0)
your observation is correct

distcc-config is buggy in multople ways.

it uses a regular expression to extract CHOST from make.conf without thinking about comments...

and even if it would do so, it'd be wrong because gentoo setups where CHOST is not defined in make.conf are possible and perfectly legal.

maybe using "portageq envvar CHOST" is a better way to get CHOST than that regexp in distcc-config...


but now for something (not really) completely different...


who will clean up the things "distcc-config --install" did upon unmerging?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-10-11 12:03:21 UTC
I don't get why this ebuild exists; also see Bug 192741.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-19 10:35:17 UTC
# Ryan Hill <dirtyepic@gentoo.org> (10 Jan 2008)
# Duplicates functionality already in sys-devel/distcc
# Masked for removal (treecleaner)
# Bug #192741
sys-devel/distcc-config