Bug#1148973: lemonade: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Sep 25 21:18:29 BST 2026


Source: lemonade
Version: 2026.39.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because the package embeds a version number within one or more
of its binaries, but that fails (ie. if we are not being built from a
Git tree), then it will fallback to the current date.

A patch is attached that uses lemonade's own mechanism for overriding
the version number in the binary. This has the nice effect of including
the full Debian version number, including the -1 / -2 revision suffix.


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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-09-25 11:45:28.703303760 -0700
--- b/debian/rules	2026-09-25 13:14:35.575658717 -0700
@@ -1,11 +1,18 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/pkg-info.mk
+
 DEB_BUILD_DIR := obj-$(DEB_HOST_GNU_TYPE)
 
 %:
 	dh $@ --buildsystem=cmake+ninja
 
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f .version
+
 override_dh_auto_configure:
+	echo $(DEB_VERSION) > .version	
 	dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_WEB_APP=ON -DUSE_SYSTEM_NODEJS_MODULES=ON -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=never
 
 override_dh_auto_test:


More information about the Reproducible-bugs mailing list