From 99efc551ad8f76ee1bc2639751aba71c550505d1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 30 Jul 2026 08:51:46 +0900 Subject: internal/rosa/package/meson: respect CLICOLOR_FORCE Upstream had ticket and patch available since 2017, still unmerged and refuses to support the environment variable, so patch it in. This also strips out the variable for test execution to work around buggy test suites like glib. Signed-off-by: Ophestra --- internal/rosa/package/meson/respect-colour.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 internal/rosa/package/meson/respect-colour.patch (limited to 'internal/rosa/package/meson/respect-colour.patch') diff --git a/internal/rosa/package/meson/respect-colour.patch b/internal/rosa/package/meson/respect-colour.patch new file mode 100644 index 00000000..8a43ebfa --- /dev/null +++ b/internal/rosa/package/meson/respect-colour.patch @@ -0,0 +1,13 @@ +diff --git a/mesonbuild/mlog.py b/mesonbuild/mlog.py +index e1d998a5d..83d6cf9d2 100644 +--- a/mesonbuild/mlog.py ++++ b/mesonbuild/mlog.py +@@ -404,6 +404,8 @@ class _Logger: + _colorize_console = os.isatty(output.fileno()) and _windows_ansi() + else: + _colorize_console = os.isatty(output.fileno()) and os.environ.get('TERM', 'dumb') != 'dumb' ++ if os.environ.get('CLICOLOR_FORCE', '') != '': ++ _colorize_console = True + except Exception: + _colorize_console = False + output.colorize_console = _colorize_console # type: ignore -- cgit v1.3.1