Bug 198919 - new port: misc/stderred Library that will display STDERR output in red
Summary: new port: misc/stderred Library that will display STDERR output in red
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-26 03:30 UTC by braakvaak
Modified: 2016-01-18 06:36 UTC (History)
2 users (show)

See Also:


Attachments
shar file (5.61 KB, text/plain)
2015-03-26 03:30 UTC, braakvaak
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description braakvaak 2015-03-26 03:30:22 UTC
Created attachment 154817 [details]
shar file

stderred hooks on write() and a family of stream functions (fwrite, fprintf, error...) from libc in order to colorize all stderr output that goest to terminal, thus making it distinguishable from stdout. Basically it wraps text that goes to file with descriptor "2" with proper ANSI escape codes making text red.

It's implemented as a shared library and doesn't require recompilation of existing binaries thanks to preload/insert feature of dynamic linkers.

WWW: https://github.com/sickill/stderred
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2015-04-02 15:52:17 UTC
Why do you patch CMakeLists.txt while you override the build so cmake is not used? The upstream installation is preferred. You should also not use GH_COMMIT, it's deprecated.
Comment 2 Dmitry Marakasov freebsd_committer freebsd_triage 2015-05-14 10:00:18 UTC
Ping
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2015-06-02 02:42:24 UTC
Ping.