Package: colorgcc
Version: 1.3.2.0-5
Followup-For: Bug #447697
Hi!
Please apply this patch. It allow me to use distcc with colorgcc.
With this patch I can write
g++: distcc /usr/bin/g++
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing'), (800, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/dash
Versions of packages colorgcc depends on:
ii perl 5.8.8-7 Larry Wall's Practical Extraction
ii perl-modules 5.8.8-7 Core Perl modules
colorgcc recommends no packages.
-- no debconf information
--- colorgcc 2007-10-10 00:53:00.000000000 +0400
+++ /usr/bin/colorgcc 2007-10-23 12:23:41.000000000 +0400
@@ -204,7 +204,7 @@
# Read the configuration file, if there is one.
$configFile = $ENV{"HOME"} . "/.colorgccrc";
-$default_configFile = "/etc/colorgccrc";
+$default_configFile = "/etc/colorgcc/colorgccrc";
if (-f $configFile)
{
loadPreferences($configFile);
@@ -217,6 +217,9 @@
$progName = $1 || $0;
$compiler = $compilerPaths{$progName} || $compilerPaths{"gcc"};
[EMAIL PROTECTED] = split /\s+/, $compiler;
+$compiler = $comp_list[0];
[EMAIL PROTECTED] = ( @comp_list[1 .. $#comp_list], @ARGV );
# Check that we don't reference self
die "$compiler is self-referencing"
@@ -229,13 +232,13 @@
# we're writing to something that's not a tty, don't do color.
if (! -t STDOUT || $nocolor{$terminal})
{
- exec $compiler, @ARGV
+ exec $compiler, @comp_args
or die("Couldn't exec");
}
# Keep the pid of the compiler process so we can get its return
# code and use that as our return code.
-$compiler_pid = open3('<&STDIN', \*GCCOUT, \*GCCOUT, $compiler, @ARGV);
+$compiler_pid = open3('<&STDIN', \*GCCOUT, \*GCCOUT, $compiler, @comp_args);
# Colorize the output from the compiler.
while(<GCCOUT>)