Bug#842708: haskell-devscripts: please make the substvars reproducible

Chris Lamb lamby at debian.org
Mon Oct 31 14:11:33 UTC 2016


Source: haskell-devscripts
Version: 0.13.2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: toolchain
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that haskell-devscripts makes some packages not built reproducibly

For example:

  http://i.imgur.com/xFdPaMg.jpg

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/dh_haskell_depends b/dh_haskell_depends
index 4ca7b76..f1e466a 100644
--- a/dh_haskell_depends
+++ b/dh_haskell_depends
@@ -144,7 +144,7 @@ for pkg in `dh_listpackages $args`; do
                 | sort -u \
                 | xargs -r dpkg -S \
                 | cut -d: -f1 \
-                | sort -u \
+                | LC_ALL=C sort -u \
                 | sed -e :a -e '$!N; s/\n/, /; ta'`
             dev=`echo $pkg | sed -e 's/^[^-]\+-\(.\+\)-doc/lib${hc}-\1-dev/'`
             grep -av '^#' debian/control | grep $dev > /dev/null \


More information about the Pkg-haskell-maintainers mailing list