Bug#1010845: logapp: please make the build reproducible

Chris Lamb lamby at debian.org
Wed May 11 14:27:47 BST 2022


Source: logapp
Version: 0.16-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: filesystem
X-Debbugs-Cc: reproducible-bugs at 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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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) ..
 


More information about the Reproducible-bugs mailing list