Source: slang2
Version: 2.3.0-2.3
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that slang2 could not be built reproducibly.
While creating a static library, the list of object files is sorted
locale-dependently, which causes a different order depending on the
locale.

The attached patch fixes this by using the C locale while listing files.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index 140cabc..4d04197 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,7 @@ override_dh_auto_configure:
 override_dh_auto_build:
 	dh_auto_build
 	${MAKE} -C src static
-	ar cqv libslang_pic.a src/elfobjs/*.o
+	ar cqv libslang_pic.a `LC_ALL=C ls src/elfobjs/*.o`
 	INSTANT_OPT=" " docbook-to-man debian/slsh.sgml > slsh.1
 
 override_dh_auto_clean:

Attachment: signature.asc
Description: Digital signature

Reply via email to