Bug 18242 - man ebuild ignores the CC environment variable
Bug#: 18242 Product:  Gentoo Linux Version: unspecified Platform: PPC
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: zwelch@gentoo.org Reported By: jesus@warwickcompsoc.co.uk
Component: Core system
URL: 
Summary: man ebuild ignores the CC environment variable
Keywords:  
Status Whiteboard: 
Opened: 2003-03-26 13:56 0000
Description:   Opened: 2003-03-26 13:56 0000
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'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

------- Comment #1 From Tom Ward 2003-03-26 13:59:32 0000 -------
Applying the following to sys-apps/man/man-1.5l-r1.ebuild fixes the problem 
 
83c83 
<       make || die 
--- 
>       make CC=${CC}|| die 
 

------- Comment #2 From James Boddington 2003-03-26 18:40:03 0000 -------
Created an attachment (id=9878) [details]
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.

------- Comment #3 From Zach Welch (RETIRED) 2003-03-26 20:08:01 0000 -------
Fixed in the main portage tree. I also fixed the sed for the main file.