Package: psgml 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 psgml could not be built reproducibly. Specifically the order of the sorted md5sums files varies. The attached patch fixes those issues. Please consider this other patches from the reproducible builds team: https://bugs.debian.org/777505 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)
--- install_cmds.mk 2016-12-04 19:15:11.000000000 -0500 +++ install_cmds.mk 2016-12-04 19:23:13.832508379 -0500 @@ -41,7 +41,8 @@ find . -type f \ ! -regex './DEBIAN/.*' \ ! -regex './etc/.*' $(EXTRA_MD5SUM_EXCLUDE) \ - -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums ; \ + -printf '%P\0' | LC_ALL=C sort -z \ + | xargs -r0 md5sum > DEBIAN/md5sums ; \ if [ -z "DEBIAN/md5sums" ] ; then \ rm -f "DEBIAN/md5sums" ; \ fi ; \