Source: logapp
Version: 0.16-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: filesystem
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
logapp could not be built reproducibly.

This is because the md5sums file is "manually" generated, and its
contents were sorted based on the underlying filesystem ordering.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2022-05-11 06:23:52.057575462 -0700
--- b/debian/rules      2022-05-11 06:26:08.871504475 -0700
@@ -78,7 +78,7 @@
 endif
        dpkg-shlibdeps $(PACKAGE_DIR)/usr/bin/logapp
        $(INSTALL_DIR) $(PACKAGE_DIR)/DEBIAN
-       cd $(PACKAGE_DIR) && find * -type f ! -regex '^DEBIAN/.*' -print0 | 
xargs -r0 md5sum > DEBIAN/md5sums
+       cd $(PACKAGE_DIR) && find * -type f ! -regex '^DEBIAN/.*' -print0 | 
LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums
        dpkg-gencontrol -p$(PACKAGE_NAME) -P$(PACKAGE_DIR)
        dpkg-deb --build $(PACKAGE_DIR) ..
 

Reply via email to