[Debian-med-packaging] Bug#1001277: cwltool: please make the build reproducible

Chris Lamb lamby at debian.org
Tue Dec 7 16:03:15 GMT 2021


Source: cwltool
Version: 3.1.20211104071347-2
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
cwltool could not be built reproducibly.

This is because a file generated during the tests can end up in the
binary package with one of two potential contents, specifically:

│ │ │ ├── ./usr/lib/python3.10/dist-packages/out
│ │ │ │ @@ -1 +1 @@
│ │ │ │ -override
│ │ │ │ +override_super

Patch attached that deletes this [test-related] file, which probably
shouldn't be shipped under dist-packages/ anyway.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2021-12-07 07:32:20.637508004 -0800
--- b/debian/rules	2021-12-07 07:55:24.372821248 -0800
@@ -36,4 +36,5 @@
 	cd {build_dir}; export PYTHONPATH=$$(pwd); {interpreter} -m pytest \
 		-k 'not (test_http_path_mapping or test_pack or test_get_subgraph or test_use_metadata or test_load_graph_fragment_from_packed or test_udocker_usage_should_not_write_cid_file or test_udocker_should_display_memory_usage or test_content_types or test_get_step)' \
 		-n auto --ignore cwltool/schemas/ -rs --pyargs cwltool" dh_auto_test
+	find .pybuild -name "out" -type f -delete
 endif


More information about the Debian-med-packaging mailing list