Source: telepathy-salut
Version: 0.8.1-5
Severity: wishlist
Tags: patch upstream
User: reproducible-bui...@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that telepathy-salut could not be built reproducibly.
During build some symbols are extracted and sorted, but their order
varies because sort sorts differently depending on the locale.

The attached patch uses the C locale to sort the symbols.

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..fd8f10f
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,11 @@
+--- a/lib/gibber/Makefile.am
++++ b/lib/gibber/Makefile.am
+@@ -73,7 +73,7 @@
+ 	$(AM_V_GEN)( cd $(srcdir) && \
+ 	sed -n -e 's/.*_gibber_signals_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
+ 	$(HANDWRITTEN_SOURCES) ) \
+-	| sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
++	| sed -e 's/__/:/' -e 'y/_/,/' | LC_ALL=C sort -u > $@.tmp
+ 	if cmp -s $@.tmp $@; then \
+ 		rm $@.tmp; \
+ 	else \
diff --git a/debian/patches/series b/debian/patches/series
index 4f2b599..250d2f6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 Add-a-systemd-user-service.patch
+reproducible_build.patch

Attachment: signature.asc
Description: Digital signature

Reply via email to