<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>18243</bug_id>
          
          <creation_ts>2003-03-26 14:09 0000</creation_ts>
          <short_desc>yaboot ebuild ignores $CC</short_desc>
          <delta_ts>2003-03-26 19:50:35 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jesus@warwickcompsoc.co.uk</reporter>
          <assigned_to>zwelch@gentoo.org</assigned_to>
          <cc>ppc@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jesus@warwickcompsoc.co.uk</who>
            <bug_when>2003-03-26 14:09:58 0000</bug_when>
            <thetext>I&apos;m using distcc with cross compilers, so I need to specify CC=$CHOST-gcc. The ebuild 
ignores this and uses straight gcc, causing failure. 

Reproducible: Always
Steps to Reproduce:
1. CC=powerpc-unknown-linux-gnu-gcc CXX=powerpc-unknown-linux-gnu-g++ emerge 
-u --nodeps yaboot 
 
Actual Results:  
Calculating dependencies ...done! 
&gt;&gt;&gt; emerge (1 of 9) sys-apps/yaboot-1.3.10-r1 to / 
&gt;&gt;&gt; md5 ;-) yaboot-1.3.10.tar.gz 
&gt;&gt;&gt; Unpacking source... 
&gt;&gt;&gt; Unpacking yaboot-1.3.10.tar.gz to /var/tmp/portage/yaboot-1.3.10-r1/work 
&gt;&gt;&gt; Source unpacked. 
 * Applying yabootconfig-1.3.10.patch...                                                                                      
[ ok ] 
gcc -Os  -nostdinc -Wall -isystem `gcc -print-file-name=include` -fsigned-char 
-DVERSION=\&quot;1.3.10\&quot;      -DTEXTADDR=0x200000 -DDEBUG=0 
-DMALLOCADDR=0x300000 -DMALLOCSIZE=0x100000 -DKERNELADDR=0x01400000 -I 
./include -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP 
-DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS 
-D__ASSEMBLY__  -c -o second/crt0.o second/crt0.S 
gcc -Os  -nostdinc -Wall -isystem `gcc -print-file-name=include` -fsigned-char 
-DVERSION=\&quot;1.3.10\&quot;      -DTEXTADDR=0x200000 -DDEBUG=0 
-DMALLOCADDR=0x300000 -DMALLOCSIZE=0x100000 -DKERNELADDR=0x01400000 -I 
./include -DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP 
-DUSE_MD5_PASSWORDS -DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o 
second/yaboot.o second/yaboot.c 
distcc[11606] (dcc_recursion_safeguard) CRITICAL! distcc seems to have invoked itself 
recursively! 
make: *** [second/yaboot.o] Error 111 
 
!!! ERROR: sys-apps/yaboot-1.3.10-r1 failed. 
!!! Function src_compile, Line 29, Exitcode 2 
!!! (no error message) 
 
 

Expected Results:  
Calculating dependencies ...done! 
&gt;&gt;&gt; emerge (1 of 9) sys-apps/yaboot-1.3.10-r1 to / 
&gt;&gt;&gt; md5 ;-) yaboot-1.3.10.tar.gz 
&gt;&gt;&gt; Unpacking source... 
&gt;&gt;&gt; Unpacking yaboot-1.3.10.tar.gz to /var/tmp/portage/yaboot-1.3.10-r1/work 
&gt;&gt;&gt; Source unpacked. 
 * Applying yabootconfig-1.3.10.patch...                                                                                      
[ ok ] 
powerpc-unknown-linux-gnu-gcc -Os  -nostdinc -Wall -isystem `gcc 
-print-file-name=include` -fsigned-char -DVERSION=\&quot;1.3.10\&quot;      
-DTEXTADDR=0x200000 -DDEBUG=0 -DMALLOCADDR=0x300000 
-DMALLOCSIZE=0x100000 -DKERNELADDR=0x01400000 -I ./include 
-DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS 
-DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -D__ASSEMBLY__  -c -o second/crt0.o 
second/crt0.S 
powerpc-unknown-linux-gnu-gcc -Os  -nostdinc -Wall -isystem `gcc 
-print-file-name=include` -fsigned-char -DVERSION=\&quot;1.3.10\&quot;      
-DTEXTADDR=0x200000 -DDEBUG=0 -DMALLOCADDR=0x300000 
-DMALLOCSIZE=0x100000 -DKERNELADDR=0x01400000 -I ./include 
-DCONFIG_COLOR_TEXT -DCONFIG_SET_COLORMAP -DUSE_MD5_PASSWORDS 
-DCONFIG_FS_XFS -DCONFIG_FS_REISERFS -c -o second/yaboot.o second/yaboot.c 
..... 

Fix: 
 
/usr/portage/sys-apps/yaboot/yaboot-1.3.10-r1.ebuild 
29/29 
-        emake ${MAKEOPTS}|| die 
---------------------------------------- 
+        emake ${MAKEOPTS} CC=${CC}|| die</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zwelch@gentoo.org</who>
            <bug_when>2003-03-26 19:50:35 0000</bug_when>
            <thetext>This has been fixed and committed to portage.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>