Package: libmarc-xql-perl
Version: 0.68-8
Severity: normal
tags: patch

As said in the title, some distro export TERM=unknown in the environment during 
build test... to avoid this, the following patch has been uploaded in Ubuntu

+Description: Do not attempt to run tput if TERM is not set or set to "unknown" 
(e.g.
+ in Ubuntu builders
+Author: Gianfranco Costamagna <[email protected]>
+Last-Update: 2019-03-06
+
+--- libxml-xql-perl-0.68.orig/lib/XML/XQL.pm
++++ libxml-xql-perl-0.68/lib/XML/XQL.pm
+@@ -507,7 +507,7 @@ sub tput
+ {
+     # Let me know if I need to add other systems for which 'tput' is not 
+     # available.
+-    return undef unless defined $ENV{TERM};
++    return undef unless defined $ENV{TERM} and $ENV{TERM} ne "unknown";
+     if ($^O =~ /Win|MacOS/)
+     {
+       return "";
diff -Nru libxml-xql-perl-0.68/debian/patches/series 
libxml-xql-perl-0.68/debian/patches/series
--- libxml-xql-perl-0.68/debian/patches/series  2019-03-01 17:20:34.000000000 
+0000
+++ libxml-xql-perl-0.68/debian/patches/series  2019-03-06 14:00:47.000000000 
+0000
@@ -1,2 +1,3 @@
 spelling.patch
 long-double.patch
+fix-unknown-term.patch

can you please consider adding it?

http://launchpadlibrarian.net/413963941/libxml-xql-perl_0.68-8_0.68-8ubuntu1.diff.gz

thanks!

G.

Reply via email to