Gentoo Archives: gentoo-user

From: "Håkon Alstadheim" <hakon@×××××××××××××××.no>
To: Dr Rainer Woitok <rainer.woitok@×××××.com>, gentoo-user@l.g.o
Subject: Re: [gentoo-user] Globally disabling colour
Date: Wed, 02 Oct 2019 14:50:21
Message-Id: be5a2406-f509-0458-4d3e-053edd17b6f7@alstadheim.priv.no
In Reply to: Re: [gentoo-user] Globally disabling colour by Dr Rainer Woitok
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.

Attachments

File name MIME type
rustc text/plain