Package: magicfilter
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: fileordering
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Dear Maintainer,

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

The attached patch sorts the md5sums and conffiles files. Once applied,
along with the other pending reproducible patches on magicfilter,
magicfilter can be built reproducibly in our current experimental framework.

Sincerely,
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 16:29:26.006488401 -0500
+++ rules	2016-12-04 16:28:38.058167358 -0500
@@ -67,11 +67,11 @@
 	install -d $(tmp)/DEBIAN
 	cd $(tmp) &&\
 	  md5sum `find * -name DEBIAN -prune -o -type f -print`\
-	   > DEBIAN/md5sums
+	   | LC_ALL=C sort > DEBIAN/md5sums
 	dpkg-gencontrol -isp
 	install -m 755 debian/prerm debian/postrm debian/postinst $(tmp)/DEBIAN
 	cd filters && ls -1 *-filter|sed -e 's,^,/etc/magicfilter/,'\
-	  > ../$(tmp)/DEBIAN/conffiles
+	  | LC_ALL=C sort > ../$(tmp)/DEBIAN/conffiles
 	chmod 644 $(tmp)/DEBIAN/conffiles
 	chown -R root.root $(tmp)
 	chmod -R g-ws,og=rX $(tmp)

Reply via email to