Bug#1126454: xarray-safe-rcm: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jan 26 17:39:43 GMT 2026


Source: xarray-safe-rcm
Version: 2026.01.0-1
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
xarray-safe-rcm could not be built reproducibly.

This is because the testsuite generates a number of .xsd and .xml files
which end up in the binary package, which means that if the testsuite
is skipped (ie. via nocheck), then the package will have different
contents.

Patch attached that removes these files 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	2026-01-26 09:13:04.145065347 -0800
--- b/debian/rules	2026-01-26 09:37:16.931421003 -0800
@@ -2,6 +2,7 @@
 
 export PYBUILD_NAME=safe_rcm
 export PYBUILD_TEST_ARGS=-k "not test_strip_namespaces" --pyargs ${PYBUILD_NAME}
+export PYBUILD_AFTER_TEST=find {build_dir} -type f \( -name '*.xml' -or -name '*.xsd' \) -delete
 
 %:
 	dh $@ --buildsystem=pybuild


More information about the Reproducible-bugs mailing list