[Debian-med-packaging] Bug#1120592: presto: please make the build reproducible
Chris Lamb
lamby at debian.org
Wed Nov 12 20:24:39 GMT 2025
Source: presto
Version: 0.7.5-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
presto could not be built reproducibly.
This is because it built a different binary package depending on
whether nocheck was specified. Specifically, if the tests were run,
then the package would ship a bunch of files such as:
/usr/lib/python3/dist-packages/bin/AlignSets.py
^^^^^^^^^^^^^^^^^
This seems like an issue in itself. :) Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2025-11-12 12:18:32.254697893 -0800
--- b/debian/rules 2025-11-12 12:23:16.185765668 -0800
@@ -3,6 +3,7 @@
export PYBUILD_NAME=presto
export PYBUILD_BEFORE_TEST=cp -r {dir}/bin {build_dir};
+export PYBUILD_AFTER_TEST=rm -rvf {build_dir}/bin;
ifeq ($(filter $(DEB_BUILD_ARCH), amd64 arm64 kfreebsd-amd64 ppc64el),)
export PYBUILD_BEFORE_TEST+=rm {dir}/tests/test_ClusterSets.py || \
More information about the Debian-med-packaging
mailing list