Source: tcl8.5
Version: 8.5.19-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: locale
X-Debbugs-Cc: [email protected]

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that tcl8.5 could not be built reproducibly.
While creating the static library, sorts the files from the glob
differently depending on the configured locale.

The attached patch fixes this by setting LC_ALL to C before.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index 742ecd5..0c5fa2f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -52,6 +52,7 @@ override_dh_auto_build:
 	$(MAKE) -C unix
 	# Build the static library.
 	cd unix && \
+	  LC_ALL=C && \
 	  ar cr libtcl$(v).a *.o && \
 	  ar d libtcl$(v).a tclAppInit.o && \
 	  ranlib libtcl$(v).a

Reply via email to