Source: d-shlibs
Version: 0.62
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: toolcain locale
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed that 
d-shlibs generates non-determinstic output; specifically, the sorting of the 
output is locale-specific:

  http://i.imgur.com/w4ak0t5.png

Patch attached.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/d-devlibdeps b/d-devlibdeps
index 9e23e6c..2e59ee0 100755
--- a/d-devlibdeps
+++ b/d-devlibdeps
@@ -232,7 +232,7 @@ outputtmp=$(tempfile)
                getname "$A"
                echo "$RETURN-dev" | overridedevlibdeps
        done \
-       | sort \
+       | LC_ALL=C sort \
        | uniq \
        | while read B B_alt; do
                if validate_package "$B"; then
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to