Package: tcsh
Version: 6.18.01-2
Severity: serious

The tcsh testsuite wrongly assumes that $HOME and ~$(id -un) directories
are the same, which is not the case when the HOME environment variable is
modified. This is the case on the build daemons which now set the HOME
environment variable to /sbuild-nonexistent. As a consequence new builds
now fail on the build daemons [1] [2].

The attached patch fixes the issue by disabling this wrong test.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=tcsh&arch=arm64&ver=6.18.01-2&stamp=1408452847
[2] 
https://buildd.debian.org/status/fetch.php?pkg=tcsh&arch=ppc64el&ver=6.18.01-2&stamp=1410170242


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.14-2-powerpc64le (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u tcsh-6.18.01/debian/patches/series tcsh-6.18.01/debian/patches/series
--- tcsh-6.18.01/debian/patches/series
+++ tcsh-6.18.01/debian/patches/series
@@ -8,0 +9 @@
+disable-test-home.patch
--- tcsh-6.18.01.orig/debian/patches/disable-test-home.patch
+++ tcsh-6.18.01/debian/patches/disable-test-home.patch
@@ -0,0 +1,18 @@
+From: Aurelien Jarno <aure...@debian.org>
+Description: This test wrongly assumes that $HOME and ~$(id -un) are the
+  the same directories and thus fails on the build daemons which use
+  HOME=/sbuild-nonexistent. Disable it.
+
+--- a/tests/subst.at
++++ b/tests/subst.at
+@@ -54,10 +54,6 @@
+ , [1
+ ])
+ 
+-AT_CHECK([echo "echo ~$(id -un)/foo; echo \"$HOME/foo\"" | tcsh -f | uniq dnl
+-	  | wc -l | tr -d ' \t'], , [1
+-])
+-
+ AT_CLEANUP
+ 
+ 

Reply via email to