<?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>18242</bug_id>
          
          <creation_ts>2003-03-26 13:56 0000</creation_ts>
          <short_desc>man ebuild ignores the CC environment variable</short_desc>
          <delta_ts>2003-03-26 20:08:01 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>PPC</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 13:56:46 0000</bug_when>
            <thetext>man-1.5l-r1 ignores the value of CC in the environment, and uses gcc. This causes 
make to fail on my system, as I&apos;m using distcc with a crosscompiler, and need to use 
$CHOST-gcc. 

Reproducible: Always
Steps to Reproduce:
1. CC=powerpc-unknown-linux-gnu-gcc emerge -u man 
2. 
3. 
Actual Results:  
(approximate) 
 
gcc .... man.c 
[distcc] CRITICAL! distcc seems to have invoked itself recursively! 
make: *** Error 111 

Expected Results:  
compiled</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jesus@warwickcompsoc.co.uk</who>
            <bug_when>2003-03-26 13:59:32 0000</bug_when>
            <thetext>Applying the following to sys-apps/man/man-1.5l-r1.ebuild fixes the problem 
 
83c83 
&lt;       make || die 
--- 
&gt;       make CC=${CC}|| die 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aiken@gentoo.org</who>
            <bug_when>2003-03-26 18:40:03 0000</bug_when>
            <thetext>Created an attachment (id=9878)
removes line that forces CC = gcc

There is a line src_unpack() that forces CC=gcc. This patch removes that line.
With that line removed CC can now be over ridden from the command line.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zwelch@gentoo.org</who>
            <bug_when>2003-03-26 20:08:01 0000</bug_when>
            <thetext>Fixed in the main portage tree. I also fixed the sed for the main file.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9878</attachid>
            <date>2003-03-26 18:40 0000</date>
            <desc>removes line that forces CC = gcc</desc>
            <filename>man-1.5l-r1.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG1hbi0xLjVsLXIxLmVidWlsZC5vcmlnCTIwMDMtMDMtMjYgMjM6MzI6NTQuMDAwMDAwMDAw
ICswMDAwCisrKyBtYW4tMS41bC1yMS5lYnVpbGQJMjAwMy0wMy0yNiAyMzozMTo1OC4wMDAwMDAw
MDAgKzAwMDAKQEAgLTM3LDcgKzM3LDYgQEAKIAkJY3AgTWFrZWZpbGUuaW4gTWFrZWZpbGUuaW4u
b3JpZwogCQlzZWQgLWUgJy9pbnN0LnNoL2QnIFwKIAkJCS1lICcvXkNDID0vY1wnIFwKLQkJCS1l
ICJDQyA9IGdjYyIgXAogCQkJLWUgJy9eQ0ZMQUdTID0vY1wnIFwKIAkJCS1lICJDRkxBR1MgPSAk
e0NGTEFHU30iIFwKIAkJCU1ha2VmaWxlLmluLm9yaWcgPiBNYWtlZmlsZS5pbgo=
</data>        

          </attachment>
    </bug>

</bugzilla>