Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18242 - man ebuild ignores the CC environment variable
Summary: man ebuild ignores the CC environment variable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Zach Welch (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-26 13:56 UTC by Tom Ward
Modified: 2003-03-26 20:08 UTC (History)
1 user (show)

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


Attachments
removes line that forces CC = gcc (man-1.5l-r1.diff,332 bytes, patch)
2003-03-26 18:40 UTC, James Boddington (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Ward 2003-03-26 13:56:46 UTC
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 Tom Ward 2003-03-26 13:59:32 UTC
Applying the following to sys-apps/man/man-1.5l-r1.ebuild fixes the problem 
 
83c83 
<       make || die 
--- 
>       make CC=${CC}|| die 
 
Comment 2 James Boddington (RETIRED) gentoo-dev 2003-03-26 18:40:03 UTC
Created attachment 9878 [details, diff]
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 Zach Welch (RETIRED) gentoo-dev 2003-03-26 20:08:01 UTC
Fixed in the main portage tree. I also fixed the sed for the main file.