Bug 264772 - sysutils/colorize: does not color logs.
Summary: sysutils/colorize: does not color logs.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-19 17:23 UTC by agr
Modified: 2022-07-22 06:11 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description agr 2022-06-19 17:23:05 UTC
The program stopped coloring logs.
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2022-06-20 05:55:44 UTC
Hi,

Could you specify what program in the ports tree you are referring to?

Thanks.
Comment 2 Matthew Kern 2022-06-20 19:42:19 UTC
I'm not OP, but I'm fairly certain this is in reference to sysutils/colorize, as of 0.3.4_2.

The new version cannot find /usr/local/etc/colorizerc as a valid configuration file, so prints "Can't read any configuration!" and does not colorize anything. This is due to the new "patch-colorize" line "++@config_files = ("%%PREFIX%%/etc/colorizerc");". I'm not sure if the maintainer expected %%PREFIX%% to be replaced before applying the patch, but it is applying as-is (that %%PREFIX%% is not expanding to anything).

Temporary workaround is to copy your colorizerc to ~/.colorizerc for any user who is using the program, as it is still able to find and read this. Permanent fix will be to correct that patch and bump versions.
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2022-06-21 06:31:08 UTC
Assigning to maintainer.
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-06-21 21:01:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=480c849dcd39496804dbaeb9523a83b260b14612

commit 480c849dcd39496804dbaeb9523a83b260b14612
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-21 20:58:55 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-21 20:58:55 +0000

    sysutils/colorize: Fix typo

    - Bump PORTREVISION for package change

    PR:             264772
    Reported by:    <agr@mail.ru>

 sysutils/colorize/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2022-06-21 21:02:15 UTC
Committed. Thanks!
Comment 6 kleurplaat123 2022-07-22 06:11:55 UTC
MARKED AS SPAM