[Debian-med-packaging] Bug#1121071: nim-hts: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Nov 20 14:52:01 GMT 2025


Source: nim-hts
Version: 0.3.25+ds-3
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
nim-hts could not be built reproducibly.

This was because it ships a different binary package depending
on whether the tests are run or not. Specifically, the testsuite
generated two files (HG02002.bam.csi & sample.fa.fai) that ended
up in the .deb.

A patch is attached that deletes these files immediately after
running the tests.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-19 12:49:50.370463092 -0800
--- b/debian/rules	2025-11-19 12:55:46.294768668 -0800
@@ -18,6 +18,7 @@
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	nim c --nimcache:$(CURDIR)/tests/nimcache --mm:refc  -d:useSysAssert -d:useGcAssert --lineDir:on --debuginfo -r tests/all
+	rm -v tests/HG02002.bam.csi tests/sample.fa.fai
 endif
 
 override_dh_auto_clean:


More information about the Debian-med-packaging mailing list