Bug#1092251: kmetronome: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jan 6 14:55:57 GMT 2025


Source: kmetronome
Version: 1.4.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
kmetronome could not be built reproducibly.

This is because the manual page varied on the build date. Luckily,
kmetronome has a mechanism to set this, and so we can punch through
SOURCE_DATE_EPOCH's value to CMake within debian/rules (see the
attached patch).

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-01-06 14:30:11.226104322 +0000
--- b/debian/rules	2025-01-06 14:51:03.959694454 +0000
@@ -1,7 +1,11 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+export PROJECT_RELEASE_DATE=$(shell LC_ALL=C date --utc --date=@$(SOURCE_DATE_EPOCH) +'%B %d, %Y')
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 %:
 	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DPROJECT_RELEASE_DATE=$(PROJECT_RELEASE_DATE)


More information about the Reproducible-bugs mailing list