Source: mod-dnssd
Version: 0.6-3.1
Severity: wishlist
Tags: patch upstream
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 mod-dnssd could not be built reproducibly.
The README file generated with lyxn contains differently translated
lynx-output depending on locale/language settings.

The attached patch fixes this by using 'C' as the used language.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..332030e
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,25 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: force English to be used for generating the README
+
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -26,7 +26,7 @@
+ CLEANFILES += README
+ 
+ README: README.html
+-	lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' > $@
++	LANGUAGE=C lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' > $@
+ 
+ endif
+ 
+--- a/doc/Makefile.in
++++ b/doc/Makefile.in
+@@ -324,7 +324,7 @@
+ 
+ 
+ @USE_LYNX_TRUE@README: README.html
+-@USE_LYNX_TRUE@	lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' > $@
++@USE_LYNX_TRUE@	LANGUAGE=C lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' > $@
+ 
+ tidy: README.html
+ 	tidy -e < README.html
diff --git a/debian/patches/series b/debian/patches/series
index 533d773..3288406 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 port-for-apache2.4.patch
+reproducible-build.patch

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