1 |
Den 02.10.2019 11:01, skrev Dr Rainer Woitok: |
2 |
> Hakon, |
3 |
> |
4 |
> On Tuesday, 2019-10-01 16:07:55 +0200, you wrote: |
5 |
> |
6 |
>> ... |
7 |
>> I've got this in make.conf, which gets me part-way there: |
8 |
>> |
9 |
>> CMAKE_COLOR_MAKEFILE=OFF |
10 |
>> NOCOLOR="true" |
11 |
>> GCC_COLORS="" |
12 |
> I already had the "NOCOLOR" environment variable set (there was a typo |
13 |
> in my mail, not in my "make.conf" file :-), but the Cmake and Gcc spec- |
14 |
> ific environment variables were not yet there. Thankyou for this tip. |
15 |
> |
16 |
>> I've also got this in /usr/local/bin/rustc and symlinked to |
17 |
>> /usr/local/bin/cargo: |
18 |
> This assumes "/usr/local/bin" to precede "/usr/bin" in environment vari- |
19 |
> able "PATH". Can I set this for Portage only in "make.conf"? |
20 |
Correct. |
21 |
>> ----/usr/local/bin/rustc:----#!/usr/bin/perlmy @newargs=();my $skipnext=0;my $me=$0;$me =~ |
22 |
>> s(.*\/)();push @newargs, "--color";push @newargs, "never";foreach $arg |
23 |
>> (@ARGV) {Â Â Â if($arg eq "--color"){Â Â Â $skipnext =1;Â Â Â } |
24 |
>> elsif($skipnext == 1){Â Â Â $skipnext = 0;Â Â Â } else { # any arg EXCEPT |
25 |
>> color gets passed along verbatim    push @newargs, $arg   |
26 |
>> }}exec("/usr/bin/${me}",@newargs); |
27 |
>> --- |
28 |
> Alas, this code snippet did not survive mail transmission :-(. Could |
29 |
> you please run |
30 |
> |
31 |
> perl -MMIME::Base64 -ne 'print encode_base64($_)' < /usr/local/bin/rustc |
32 |
> |
33 |
> and post (or send me privately) the base64 encoded output? Thankyou. |
34 |
> |
35 |
> Sincerely, |
36 |
> Rainer |
37 |
|
38 |
Just doing an attachment, so you'll get the charset as well. Don't know |
39 |
if that gets through to the list. |