Source: tiger
Version: 1:3.2.3-14.1
Severity: wishlist
Tags: patch upstream
User: reproducible-bui...@lists.alioth.debian.org
Usertags: environment locale
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Dear Maintainer,

While working on the "reproducible builds" effort [1], we have noticed
that 'tiger' could not be built reproducibly.

The attached patch fixes the locale used by ls to sort files, and uses
printf instead of echo to get the same behavior when SHELL is sh or dash.
Once applied, tiger can be built reproducibly in our current
experimental framework.

Regards,
Alexis Bienvenüe.

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -u tiger-3.2.3/debian/changelog tiger-3.2.3/debian/changelog
--- tiger-3.2.3/debian/changelog
+++ tiger-3.2.3/debian/changelog
@@ -1,3 +1,11 @@
+tiger (1:3.2.3-14.1.0~reproducible1) UNRELEASED; urgency=medium
+
+  * Use printf instead of echo in convert2html, so that leading "-e",
+    or "*" wildcards, are printed as-is.
+  * Also set LC_ALL, which overwrites LC_COLLATE, in genmsgidx.
+
+ -- Alexis Bienvenüe <p...@passoire.fr>  Sun, 26 Jun 2016 09:21:57 +0200
+
 tiger (1:3.2.3-14.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u tiger-3.2.3/util/genmsgidx tiger-3.2.3/util/genmsgidx
--- tiger-3.2.3/util/genmsgidx
+++ tiger-3.2.3/util/genmsgidx
@@ -102,7 +102,7 @@
 #    exit 1
 #}
 
-LC_COLLATE=C.UTF-8 $LS $BASEDIR/doc/*.txt |
+LC_ALL=C.UTF-8 LC_COLLATE=C.UTF-8 $LS $BASEDIR/doc/*.txt |
 while read infile 
 do
   file=`$BASENAME $infile`
only in patch2:
unchanged:
--- tiger-3.2.3.orig/util/convert2html
+++ tiger-3.2.3/util/convert2html
@@ -26,7 +26,7 @@
 if [ -z "$line" ]; then
   echo "<P>"
 else
-  echo $line
+  printf '%s\n' "$line" | sed 's/\s\+$//'
 fi
 read line
 if [ `echo $?` -ne 0 ]; then exit; fi

Reply via email to