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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to