Bug#1136297: pycayennelpp: please make the build reproducible

Chris Lamb lamby at debian.org
Mon May 11 17:38:32 BST 2026


Source: pycayennelpp
Version: 2.4.0-3
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
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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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.
 #


More information about the Reproducible-bugs mailing list