Bug#1120529: ytcc: please make the build reproducible

Chris Lamb lamby at debian.org
Tue Nov 11 18:39:16 GMT 2025


Source: ytcc
Version: 2.6.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because it ships different contents depending on whether
'nocheck' is specified or not. Specifically, the lack of a
PYBUILD_AFTER_TEST line that cleans up the .pytest-cache directory
after running the tests.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-11 10:16:46.612609290 -0800
--- b/debian/rules	2025-11-11 10:36:34.978085712 -0800
@@ -3,6 +3,7 @@
 export DH_VERBOSE=1
 export DH_ALWAYS_EXCLUDE=__pycache__
 export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/ytcc --install-scripts=/usr/share/ytcc
+export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/.pytest_cache
 
 %:
 	dh $@ --with python3 --buildsystem=pybuild


More information about the Reproducible-bugs mailing list