Den 02.10.2019 11:01, skrev Dr Rainer Woitok:
Hakon,

On Tuesday, 2019-10-01 16:07:55 +0200, you wrote:

...
I've got this in make.conf, which gets me part-way there:

CMAKE_COLOR_MAKEFILE=OFF
NOCOLOR="true"
GCC_COLORS=""
I already had the  "NOCOLOR" environment variable set  (there was a typo
in my mail, not in my "make.conf" file :-),  but the Cmake and Gcc spec-
ific environment variables were not yet there.  Thankyou for this tip.

I've also got this in /usr/local/bin/rustc and symlinked to
/usr/local/bin/cargo:
This assumes "/usr/local/bin" to precede "/usr/bin" in environment vari-
able "PATH".  Can I set this for Portage only in "make.conf"?
Correct.
----/usr/local/bin/rustc:----#!/usr/bin/perlmy @newargs=();my $skipnext=0;my 
$me=$0;$me =~
s(.*\/)();push @newargs, "--color";push @newargs, "never";foreach $arg
(@ARGV) {    if($arg eq "--color"){    $skipnext =1;    }
elsif($skipnext == 1){    $skipnext = 0;    } else { # any arg EXCEPT
color gets passed along verbatim     push @newargs, $arg  Â
}}exec("/usr/bin/${me}",@newargs);
---
Alas,  this code snippet did not survive  mail transmission :-(.   Could
you please run

    perl -MMIME::Base64 -ne 'print encode_base64($_)' < /usr/local/bin/rustc

and post (or send me privately) the base64 encoded output?  Thankyou.

Sincerely,
   Rainer

Just doing an attachment, so you'll get the charset as well. Don't know if that gets through to the list.


#!/usr/bin/perl
my @newargs=();
my $skipnext=0;
my $me=$0;
$me =~ s(.*\/)();
#print STDERR "$me\n";
push @newargs, "--color";
push @newargs, "never";
foreach $arg (@ARGV) {
    if($arg eq "--color"){
        $skipnext =1;
    } elsif($skipnext == 1){
        $skipnext = 0;
    } else {
        push @newargs, $arg
    }
#    print STDERR "$arg\n";
}
exec("/usr/bin/${me}",@newargs);
#foreach $arg (@newargs) {
#    print STDERR "$arg\n";
#}
#exit 0;
#exec /usr/bin/rustc "$@"

Reply via email to