Source: chktex
Version: 1.7.6-5
Tags: ftbfs patch

Hi Maintainer

The latest upload of chktex FTBFS when TERM is not set, e.g. on
reproducible builds [1], where it built previously.  I've copied what
I hope is the relevant part of the log below.

The following patch works for me:

--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,9 @@
 # Ensure texlive respects SOURCE_DATE_EPOCH
 export FORCE_SOURCE_DATE=1

+# Prevent FTBFS when TERM is not set
+export TERM=linux
+
 %:
  dh $@

Regards
Graham


[1] https://tests.reproducible-builds.org/debian/rb-pkg/chktex.html


   dh_auto_test
make -j15 test "TESTSUITEFLAGS=-j15 --verbose" VERBOSE=1
make[1]: Entering directory '/build/1st/chktex-1.7.6'
./chktex -mall ./Test.tex
./chktex: WARNING -- Could not find global resource file.
ChkTeX v1.7.6 - Copyright 1995-96 Jens T. Berger Thielemann.
Compiled with PCRE regex support.
./chktex: ERROR -- Terminal type `(null)' is not defined.
make[1]: *** [Makefile:186: test] Error 1
make[1]: Leaving directory '/build/1st/chktex-1.7.6'
dh_auto_test: error: make -j15 test "TESTSUITEFLAGS=-j15 --verbose"
VERBOSE=1 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to