Source: oolite
Version: 1.84-1
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: locale

While working on the “reproducible builds” effort [1], we have noticed
that oolite could not be built reproducibly.

The attached patch forces the libreoffice HTML conversion to run under
C.UTF-8 no matter what the current build locale is.

 [1]: https://wiki.debian.org/ReproducibleBuilds
--- a/debian/rules      2016-08-01 04:18:49.000000000 -0400
+++ b/debian/rules      2016-12-04 18:31:20.000000000 -0500
@@ -125,9 +125,9 @@
 
 override_dh_auto_build-indep: $(HTML_FROM_DOC) $(HTML_FROM_ODT)
 $(HTML_FROM_DOC): %.html: %.doc
-       libreoffice --headless --convert-to html --outdir $(dir $@) $<
+       LC_ALL=C.UTF-8 libreoffice --headless --convert-to html --outdir $(dir 
$@) $<
 $(HTML_FROM_ODT): %.html: %.odt
-       libreoffice --headless --convert-to html --outdir $(dir $@) $<
+       LC_ALL=C.UTF-8 libreoffice --headless --convert-to html --outdir $(dir 
$@) $<
 override_dh_auto_clean::
        rm -f $(HTML_FROM_DOC) $(HTML_FROM_ODT)
 

Reply via email to