Am Sonntag, 6. Dezember 2020, 04:23:53 CET schrieb Simon Lees:
Hi,
On 12/5/20 12:47 AM, Hans-Peter Jansen wrote:
Hi,
is it possible to trick a local osc build into producing colored output without much fuzz?
The point is, if I 'osc chroot' into the package and trigger a build manually, colored output is generated. Therefor I guess, rpmbuild ignores/avoids certain environment values (COLORTERM?) for better parsebility.
For local builds of huge projects, colored output would be much nicer, since it would be easier to distinguish between warnings and errors.
There is a tool "grc" that uses regular expressions, it does a reasonable job and is certainly better then nothing. I've been using it for around 5 years and it works well enough for me but patches to make it better are more then welcome.
zypper in grc
grc osc build
Exactly, what I was looking for, thanks Simon. Now I need to train my vegetative nervous system to type grc before osc build.. Cheers, Pete