Bug#1122385: geoalchemy2: please make the build reproducible
Chris Lamb
lamby at debian.org
Wed Dec 10 20:17:22 GMT 2025
Source: geoalchemy2
Version: 0.15.2-2
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
geoalchemy2 could not be built reproducibly.
This is because if the tests are run, then an additional copy of
part of the source tree is included, nested, within the binary
package:
/usr/lib/python3/dist-packages/build/geoalchemy2/
^^^^^
This is almost certainly a bug, but it does affect reproducibility
too as it only happens if the tests are run. (I don't think this
extra code can even be importable via "import build" as it lacks
an __init__.py.)
A patch is attached that removes this extra tree after running the
tests, but there might be another solution.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2025-12-10 11:31:31.262605207 -0800
--- b/debian/rules 2025-12-10 12:10:32.202787527 -0800
@@ -13,6 +13,8 @@
$(eval BUILD_DIR=$(shell pybuild --print '{build_dir}'))
cp -r tests $(BUILD_DIR)
python3 $(CURDIR)/debian/tests/setup-db-and-run-tests.py
+ # Remove duplicated tree
+ rm -rf $(BUILD_DIR)/build
endif
override_dh_installdocs:
More information about the Reproducible-bugs
mailing list