Source: microbiomeutil
Version: 20101212+dfsg1-6
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
microbiomeutil could not be built reproducibly.

This is because the tests clean up a number of files, so if the tests
are skipped (i.e. via "nocheck"), then the package will actually contain
these files instead.

Patch attached that moves the deletion of these files to part of
debian/rules that is executed unconditionally.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-12-08 14:51:29.426708173 -0800
--- b/debian/rules      2025-12-08 15:02:25.692156156 -0800
@@ -22,13 +22,17 @@
        cd ${CURDIR}/ChimeraSlayer/sample_data && $(MAKE) clean
        cd ${CURDIR}/NAST-iEr/sample_data && $(MAKE) clean
        cd ${CURDIR}/WigeoN/sample_data && $(MAKE) clean
-       rm -f RESOURCES/rRNA16S.gold.fasta.n* RESOURCES/*.cidx
+       rm -f RESOURCES/*.cidx
        rm -f formatdb.log
 #else
 #      echo "Do not run test suite when building on architecture 
$(DEB_HOST_ARCH)"
 #endif
 endif
 
+execute_before_dh_auto_install:
+       rm -f RESOURCES/rRNA16S.gold.fasta.n*
+       rm -f RESOURCES/rRNA16S.gold.NAST_ALIGNED.fasta.cidx
+
 override_dh_auto_build:
        dh_auto_build
        #Pre-make indexes for ChimeraSlayer, otherwise it tries to write them

Reply via email to