Source: geoalchemy2
Version: 0.15.2-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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:

Reply via email to