Bug#796330: d-shlibs: locale-dependent sorting

2015-12-27 Thread Chris Lamb
merge 796330 809135
thanks

Duplicate!


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#796330: d-shlibs: locale-dependent sorting

2015-08-21 Thread Reiner Herrmann
Source: d-shlibs
Version: 0.62
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: toolchain locale
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the reproducible builds effort [1], we have noticed
that the order of dependencies generated by d-devlibdeps varies depending
on the configured locale.

The attached patch fixes this by sorting with the C locale.

Regards,
 Reiner

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

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


signature.asc
Description: OpenPGP digital signature