Source: tdiary
Version: 5.3.0-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

Hi,

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

This is because running the tests updated the modification times.
This would usually not be a problem due to the mtime clamping of
dpkg-deb, but if the tests are skipped then the modification times
will greatly differ.

Patch attached that sets these files to a deterministic value
regardless of whether the tests are run or not.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-12-15 10:26:39.400268170 -0800
--- b/debian/rules      2025-12-15 10:46:39.368359634 -0800
@@ -13,6 +13,11 @@
        install -D -m 755 misc/convert2.rb 
$(DEB_DESTDIR)/usr/bin/tdiary-convert2
        install -D -m 755 debian/tdiary-setup.rb 
$(DEB_DESTDIR)/usr/bin/tdiary-setup
 
+execute_after_dh_install:
+       touch -d "@$(SOURCE_DATE_EPOCH)" 
$(DEB_DESTDIR)/usr/share/tdiary/misc/plugin \
+               $(DEB_DESTDIR)/usr/share/tdiary/misc/lib \
+               $(DEB_DESTDIR)/usr/share/tdiary/misc/filter
+
 $(manpages): %.1: debian/%.sgml
        docbook-to-man $< > $@
 

Reply via email to