Package: mimefilter
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: fileordering
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org,
spectran...@riseup.net

Dear Maintainer,

While working on the "reproducible builds" effort [1], we have noticed
that mimefilter could not be built reproducibly.
Specifically the order of the sorted md5sums files depend on locale.

The attached patch fixes those issues.

Please consider these other patches from the reproducible builds team:
https://bugs.debian.org/777486
https://bugs.debian.org/793704

Thanks!
Valerie

[1]: https://wiki.debian.org/ReproducibleBuilds

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.0-rc8-touchpad (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
--- rules	2016-12-04 18:29:09.453732960 -0500
+++ rules	2016-12-04 18:29:40.959673824 -0500
@@ -95,7 +95,7 @@
 #-#	cd $(tmp) && du -k * | grep -v 'DEBIAN' | sort -k 2 -o $(tmp)//DEBIAN//du
 	cd $(tmp) && md5sum \
 		$$(find ./ -path './DEBIAN' -prune -o -type f -printf "%P\n") \
-		| sort -k 2 -o $(tmp)//DEBIAN//md5sums
+		| LC_ALL=C sort -k 2 -o $(tmp)//DEBIAN//md5sums
 	dpkg-gencontrol -isp
 	chown -R root.root $(tmp)
 	chmod -R go=rX $(tmp)

Reply via email to