Source: aspell-en
Version: 2016.01.19-0-0.1
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 aspell-en could not be built reproducibly.
Files and file contents are sorted differently depending on the locale.

The attached patch fixes this by setting LC_ALL (instead of LC_COLLATE)
to C.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index 67ac205..9bc3191 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ DEB_DH_MD5SUMS_ARGS += -Xvar/lib/aspell
 makebuilddir/aspell-en:: extrawords-stamp
 
 extrawords-stamp:
-	mv en-common.cwl en-common.cwl.orig && (prezip-bin -d < en-common.cwl.orig ; cat debian/extrawords.txt) | LC_COLLATE=C sort -u | prezip-bin -z > en-common.cwl
+	mv en-common.cwl en-common.cwl.orig && (prezip-bin -d < en-common.cwl.orig ; cat debian/extrawords.txt) | LC_ALL=C sort -u | prezip-bin -z > en-common.cwl
 	touch extrawords-stamp
 
 cleanbuilddir/aspell-en::
@@ -20,7 +20,7 @@ cleanbuilddir/aspell-en::
 	rm -f extrawords-stamp
 
 install/aspell-$(DICT_LANG)::
-	for f in *.cwl; do \
+	for f in `LC_ALL=C ls *.cwl`; do \
 	    gzip -9 -n -c "$$f" > "$(DEB_DESTDIR)/usr/share/aspell/"$$f".gz"; \
 	    WL=`echo $$f | sed 's/\.cwl$$//'`; \
 	    touch "$(DEB_DESTDIR)/var/lib/aspell/$$WL.rws"; \
_______________________________________________
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