Source: cairocffi
Version: 1.7.1-5
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
cairocffi could not be built reproducibly.

This is because the testsuite appears to delete (?) various test_foo.py
files, meaning that if the tests are run they are not included and if the
tests are skipped, they are included.

Patch attached that deletes these files regardless; if you do really
need them in the binary package (eg. for the autopkgtests), then the
packaging will need rejiggering.


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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-05-29 11:06:56.637649762 -0700
--- b/debian/rules      2026-05-29 11:12:23.783928017 -0700
@@ -3,6 +3,7 @@
 export PYBUILD_NAME=cairocffi
 export PYBUILD_BEFORE_TEST=cp -R {dir}/cairocffi/ {build_dir}
 export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*/__pycache__ && rm 
{build_dir}/cairocffi/test_*.py
+export PYBUILD_BEFORE_INSTALL=rm -rf {build_dir}/cairocffi/test_*.py
 
 # Skipping since there is no WM in CI
 export PYBUILD_TEST_ARGS=-k "not test_xcb_window"

Reply via email to