Source: kmetronome
Version: 1.4.1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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)

Reply via email to