[Debian-med-packaging] Bug#1121075: virulencefinder: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Nov 20 15:04:12 GMT 2025


Source: virulencefinder
Version: 2.0.5-2
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
virulencefinder 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 by the
packaging overriding dh_auto_test and therefore effectively
disabling PYBUILD_AFTER_TEST.

Patch attached that moves the "rm -rf" call from the (currently
ignored PYBUILD_AFTER_TEST) to inside override_dh_auto_test.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-19 13:09:51.092385554 -0800
--- b/debian/rules	2025-11-19 13:16:22.672429991 -0800
@@ -4,7 +4,6 @@
 
 export PYBUILD_SYSTEM=custom
 export PYBUILD_CLEAN_ARGS=rm -rf test/Hit_in_genome_seq.fsa test/Virulence_genes.fsa test/data.json test/tmp test/results_tab.tsv test/results.txt
-export PYBUILD_AFTER_TEST=rm -rf test/Hit_in_genome_seq.fsa test/Virulence_genes.fsa test/data.json test/tmp test/results_tab.tsv test/results.txt
 
 %:
 	dh $@ --buildsystem=pybuild
@@ -19,6 +18,7 @@
 	else \
 	   echo "TEST FAILED"; \
 	fi
+	rm -rf test/Hit_in_genome_seq.fsa test/Virulence_genes.fsa test/data.json test/tmp test/results_tab.tsv test/results.txt
 endif
 
 override_dh_installman:


More information about the Debian-med-packaging mailing list