[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#830282: dh-ocaml: please make the build reproducible



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


Reply to: