Bug#889519: open-adventure: Please set $TERM when running test suite

Steve Langasek steve.langasek at canonical.com
Sun Feb 4 06:18:28 UTC 2018


Package: open-adventure
Version: 1.4+git20170917.0.d512384-1
Severity: minor
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu bionic ubuntu-patch

Dear Tobias,

The open-adventure package fails to build in Ubuntu, because the Ubuntu
autobuilders run with a $TERM value of 'unknown', and the open-adventure
testsuite doesn't like this:

cd tests; make --quiet
make[2]: Entering directory '/<<BUILDDIR>>/open-adventure-1.4+git20170917.0.d512384/tests'
cheat: Generate save file with -900 deaths
  axebear ## Observe axe after throwing at bear
cheat: Generate save file with -1000 deaths
cheat: Generate save file with version -1337
cheat: Generate save file 1000 saves
--- axebear.chk	2017-09-17 15:35:45.000000000 +0000
+++ /tmp/regress5917	2018-01-31 09:49:33.370681503 +0000
@@ -1,3 +1,5 @@
+No entry for terminal type "unknown";
+using dumb terminal settings.
 
 Welcome to Adventure!!  Would you like instructions?
 
Makefile:92: recipe for target 'regress' failed
make[2]: *** [regress] Error 1

(https://launchpad.net/ubuntu/+source/open-adventure/1.4+git20170917.0.d512384-1/+build/13665404)

Please consider the attached patch, which makes the package build more
portable by setting TERM to a known-good value.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru open-adventure-1.4+git20170917.0.d512384/debian/rules open-adventure-1.4+git20170917.0.d512384/debian/rules
--- open-adventure-1.4+git20170917.0.d512384/debian/rules	2017-09-17 05:52:01.000000000 -0700
+++ open-adventure-1.4+git20170917.0.d512384/debian/rules	2018-02-03 22:14:05.000000000 -0800
@@ -6,6 +6,8 @@
 # package maintainers to append LDFLAGS
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+export TERM=xterm
+
 %:
 	dh $@
 


More information about the Pkg-games-devel mailing list