Bug#1068374: ttconv: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Apr 4 10:34:49 BST 2024


Source: ttconv
Version: 1.0.8-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
ttconv could not be built reproducibly.

This is because the testsuite generates a file (tests.json) with
nondeterministic contents that ends up in the binary package. A patch
is attached that removes this after the test run via
PYBUILD_AFTER_TEST.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2024-04-04 10:18:51.372380412 +0100
--- b/debian/rules	2024-04-04 10:33:05.582926572 +0100
@@ -4,6 +4,7 @@
 export PYBUILD_NAME=ttconv
 
 export PYBUILD_BEFORE_TEST=mkdir -p {build_dir}/src; cp -a src/test {build_dir}/src; cp -a debian/missing-sources/imsc-tests {build_dir}/src/test/resources/ttml/
+export PYBUILD_AFTER_TEST=find {build_dir} -name tests.json -type f -delete
 
 %:
 	dh $@ --buildsystem=pybuild


More information about the Reproducible-bugs mailing list