summaryrefslogtreecommitdiff
path: root/debian/patches/tests-make-lpstat-call-reproducible.patch
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2016-07-03 11:35:13 +0200
committerDidier Raboud <odyx@debian.org>2016-07-03 11:35:13 +0200
commit72135cc76e88e7607df901bf37907dfc78ea67b8 (patch)
tree0b97b0491b9c48186abc0c2e8f391940d6c26767 /debian/patches/tests-make-lpstat-call-reproducible.patch
parent7231bab84a96f8ad81b5a6b5f38931d954894767 (diff)
Add patch to force LC_ALL=C on lpstat when grepping its output for Description; should fix the FTBFS on forced-languages reproducible builds environments
Diffstat (limited to 'debian/patches/tests-make-lpstat-call-reproducible.patch')
-rw-r--r--debian/patches/tests-make-lpstat-call-reproducible.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/tests-make-lpstat-call-reproducible.patch b/debian/patches/tests-make-lpstat-call-reproducible.patch
new file mode 100644
index 000000000..5bcd4c57e
--- /dev/null
+++ b/debian/patches/tests-make-lpstat-call-reproducible.patch
@@ -0,0 +1,16 @@
+Description: Force LC_ALL=C environment variable when grepping the output of lpstat.
+ Permits testing in non-"C" environments.
+Author: Didier Raboud <odyx@debian.org>
+Origin: vendor
+Last-Update: 2016-07-03
+--- a/test/run-stp-tests.sh
++++ b/test/run-stp-tests.sh
+@@ -846,7 +846,7 @@
+ fi
+ done
+
+-description="`../systemv/lpstat -l -p Test1 | grep Description | sed -e '1,$s/^[^:]*: //g'`"
++description="`LC_ALL=C ../systemv/lpstat -l -p Test1 | grep Description | sed -e '1,$s/^[^:]*: //g'`"
+ if test "x$description" != "xTest Printer 1"; then
+ echo "Failed, printer-info for Test1 is '$description', expected 'Test Printer 1'." >>$strfile
+ echo "FAIL (got '$description', expected 'Test Printer 1')"