Source: dh-ocaml
Version: 1.0.10
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that dh-ocaml could not be built reproducibly.
The documentation generated with lyxn by dumping HTML files differs
depending on the configured locale.

The attached patch fixes this by generating the files with the C locale.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/policy/Makefile b/policy/Makefile
index 123ab91..b59b799 100644
--- a/policy/Makefile
+++ b/policy/Makefile
@@ -18,7 +18,7 @@ check: $(patsubst %.xml,%.check,$(XMLFILES))
 	touch $@
 
 %.txt: %.html
-	lynx -nolist -dump $< > $@
+	LC_ALL=C.UTF-8 lynx -nolist -dump $< > $@
 
 %.html: %.xml $(XMLFILES) check 
 	xsltproc --xinclude --nonet -o $@ \

Attachment: signature.asc
Description: Digital signature

_______________________________________________
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