Bug 298486 - [NEW PORT] sysutils/clout: colorize command standard error output
Summary: [NEW PORT] sysutils/clout: colorize command standard error output
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Michael Osipov
URL: https://github.com/mateofz/clout
Keywords:
Depends on:
Blocks:
 
Reported: 2026-09-14 13:31 UTC by Mahdi feyzolahy
Modified: 2026-10-09 17:51 UTC (History)
1 user (show)

See Also:


Attachments
Patch for new sysutils/clout port (1.72 KB, patch)
2026-09-14 13:31 UTC, Mahdi feyzolahy
no flags Details | Diff
Git-formatted patch (2.51 KB, patch)
2026-09-27 14:47 UTC, Michael Osipov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mahdi feyzolahy 2026-09-14 13:31:54 UTC
Created attachment 274734 [details]
Patch for new sysutils/clout port

New port: sysutils/clout

clout is a small Unix utility that colorizes command standard error output.

It executes a command, captures its standard error output, and writes it to the terminal using a selected ANSI color.

The port has been tested on FreeBSD 15.0-RELEASE with:

- make stage
- make check-plist
- make package
- portlint -A

The generated package was installed and tested successfully.

The patch adds:

- sysutils/clout/Makefile
- sysutils/clout/distinfo
- sysutils/clout/pkg-descr
- sysutils/Makefile entry for clout
Comment 1 Yusuf Yaman freebsd_committer freebsd_triage 2026-09-14 14:15:42 UTC
^Triage: Move [NEW PORT] to beginning and add project URL.
Comment 2 Mahdi feyzolahy 2026-09-24 18:50:05 UTC
(In reply to Yusuf Yaman from comment #1)
just for remind
Comment 3 Michael Osipov freebsd_committer freebsd_triage 2026-09-26 23:39:08 UTC
How is this different from lolcat? It is in games/
https://ports.freebsd.org/cgi/ports.cgi?query=lolcat&stype=all&sektion=all
Comment 4 Mahdi feyzolahy 2026-09-27 07:19:43 UTC
(In reply to Michael Osipov from comment #3)
clout and lolcat serve different purposes. lolcat is a general-purpose stream filter that colorizes its input, while clout is a command wrapper specifically designed to colorize only the wrapped command's stderr while leaving stdout untouched. It also preserves the wrapped command's exit status, making it suitable for use transparently in scripts and command chains.
Comment 5 Michael Osipov freebsd_committer freebsd_triage 2026-09-27 13:22:32 UTC
(In reply to Mahdi feyzolahy from comment #4)

I see, this makes sense. Question about the category: Do you consider sysutils or rather textproc the right one?
Comment 6 Michael Osipov freebsd_committer freebsd_triage 2026-09-27 14:47:01 UTC
Created attachment 275183 [details]
Git-formatted patch

Improved your patch. We need to settle the category and we are good.
Comment 7 Michael Osipov freebsd_committer freebsd_triage 2026-10-09 15:38:11 UTC
Let me know how to proceed?
Comment 8 Mahdi feyzolahy 2026-10-09 17:38:16 UTC
(In reply to Michael Osipov from comment #7)
Hi Michael,

Thanks for improving the patch!

I think `sysutils` is the appropriate category for `clout`, since it is a command wrapper intended for use in Unix command lines and scripts, rather than a general-purpose text-processing filter.

I'm happy with the updated patch. Please proceed with `sysutils` if you agree.

Thanks again for your time and help
Comment 9 commit-hook freebsd_committer freebsd_triage 2026-10-09 17:48:28 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0abb606c94763e8b4efb9ba6d6a5f566c5219164

commit 0abb606c94763e8b4efb9ba6d6a5f566c5219164
Author:     Mahdi Feyzolahy <mahdifeyzolahy@gmail.com>
AuthorDate: 2026-09-14 13:31:00 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-10-09 17:47:49 +0000

    sysutils/clout: new port

    clout is a small Unix utility that colorizes command standard error
    output. It executes a command, captures its standard error, and
    writes it to the terminal using a selected ANSI color.

    Co-authored-by: Michael Osipov <michaelo@FreeBSD.org>
    PR:             298486

 sysutils/Makefile              |  1 +
 sysutils/clout/Makefile (new)  | 23 +++++++++++++++++++++++
 sysutils/clout/distinfo (new)  |  3 +++
 sysutils/clout/pkg-descr (new) |  3 +++
 4 files changed, 30 insertions(+)