[Debian-med-packaging] Bug#1121143: python-pyvcf: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Nov 21 18:30:25 GMT 2025


Source: python-pyvcf
Version: 0.6.8+git20170215.476169c-11
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
python-pyvcf could not be built reproducibly.

This was because it ships a different binary package depending
on whether the tests are run or not, which was caused in turn by the
testsuite not cleaning up the "data" directory, and some (or all)
of that was ending up in the binary package ... but only if the tests
were run.

Patch attached. However, if the binary package really does need these
files at runtime (eg. for autopkgtests), then the packaging will need
rejigging.

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-21 10:08:48.807873179 -0800
--- b/debian/rules	2025-11-21 10:10:03.618995632 -0800
@@ -12,6 +12,7 @@
 
 export PYBUILD_BEFORE_TEST = mkdir {build_dir}/vcf; \
 	cp -r {dir}/vcf/test {build_dir}/vcf/
+export PYBUILD_AFTER_TEST = rm -rfv {build_dir}/vcf/test
 
 %:
 	dh $@ --buildsystem=pybuild


More information about the Debian-med-packaging mailing list