Package: mailfront Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: fileordering umask 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 mailfront could not be built reproducibly. Specifically, the permissions of some directories are influenced by the umask and the order of the md5sums file can vary. The attached patch fixes those issues. 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)
diff -ur mailfront-1.16/debian/implicit mailfront-1.16-b/debian/implicit --- a/debian/implicit 2016-12-04 17:33:22.000000000 -0500 +++ b/debian/implicit 2016-12-04 18:05:46.852172915 -0500 @@ -87,7 +87,7 @@ : debian/$*/DEBIAN/md5sums @rm -f debian/$*/DEBIAN/md5sums @cd debian/$* && find * -path 'DEBIAN' -prune -o \ - -type f -exec md5sum {} >>DEBIAN/md5sums \; + -type f -exec md5sum {} \; | LC_ALL=C sort >>DEBIAN/md5sums %.deb-DEBIAN: %.deb-checkdir %.deb-DEBIAN-base %.deb-DEBIAN-scripts \ %.deb-DEBIAN-md5sums : debian/$*/DEBIAN/ ok diff -ur mailfront-1.16/debian/rules mailfront-1.16-b/debian/rules --- a/debian/rules 2016-12-04 18:05:06.991492198 -0500 +++ b/debian/rules 2016-12-04 18:06:06.401237230 -0500 @@ -82,6 +82,8 @@ '$(DIR)'/usr/share/doc/mailfront/etc/smtpfront-qmail/peers/127 # changelog test -r changelog || ln -s ChangeLog changelog + # fix directory permissions + find '$(DIR)' -type d -print0 | xargs -0r chmod 0755 touch install-stamp binary: binary-indep binary-arch