Package: golang-github-gookit-color
Version: 1.5.4-2
Severity: serious
Tags: ftbfs patch
Justification: fails to build from source
X-Debbugs-Cc: paul.m...@canonical.com

Dear Maintainer,

In ubuntu this package FTBFS because the TERM env var is set to unknown,
thus preventing some tests from working properly.

This is fixed by setting TERM to a "valid" value. Here is a patch:


diff -Nru golang-github-gookit-color-1.5.4/debian/rules 
golang-github-gookit-color-1.5.4/debian/rules
--- golang-github-gookit-color-1.5.4/debian/rules       2023-10-23 
19:08:31.000000000 +0200
+++ golang-github-gookit-color-1.5.4/debian/rules       2024-01-17 
15:54:30.000000000 +0100
@@ -3,5 +3,7 @@
 export DH_GOLANG_EXCLUDES := _examples/
 export DH_GOLANG_INSTALL_EXTRA := README.md

+export TERM=xterm-256color
+
 %:
        dh $@ --builddirectory=_build --buildsystem=golang --with=golang



-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), 
(100, 'jammy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-14-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to