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
Applying the following to sys-apps/man/man-1.5l-r1.ebuild fixes the problem 83c83 < make || die --- > make CC=${CC}|| die
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.
Fixed in the main portage tree. I also fixed the sed for the main file.