Source: pycayennelpp
Version: 2.4.0-3
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
pycayennelpp could not be built reproducibly.

This is because the testsuite bumps the modification time of the
tests/ directory to the current time (which later gets clamped
back to SOURCE_DATE_EPOCH), so if the tests are skipped via nocheck,
then this directory will retain its original, upstream timestamp.

Instead of saving upstream's original timestamp and restoring that
later, I've attached a patch to always set the mtime of this directory
to SOURCE_DATE_EPOCH 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      2026-05-11 09:32:01.534351713 -0700
--- b/debian/rules      2026-05-11 09:37:41.526719556 -0700
@@ -13,6 +13,10 @@
 override_dh_auto_test:
        python3 -m pytest $(CURDIR)/cayennelpp/tests
        find $(CURDIR)/cayennelpp/tests -name __pycache__ -exec rm -rf {} + || 
true
+
+execute_before_dh_auto_install:
+       touch -d@$(SOURCE_DATE_EPOCH) $(CURDIR)/cayennelpp/tests
+
 # If you need to rebuild the Sphinx documentation:
 # Add sphinxdoc to the dh --with line.
 #

Reply via email to