Bug#1121798: golang-github-jonas-p-go-shp: please make the build reproducible

Chris Lamb lamby at debian.org
Tue Dec 2 22:27:47 GMT 2025


Source: golang-github-jonas-p-go-shp
Version: 0.1.1-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
golang-github-jonas-p-go-shp could not be built reproducibly.

This is because the tests generate two files, write_polylinedbf and
write_pointdbf, and they end up in the binary package .. but of course
only if the tests are run.

Patch attached that removes these files, but if the package needs them
(eg. for autopkgtests) then the packaging will need to be rejigged.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-12-02 11:50:13.716347957 -0800
--- b/debian/rules	2025-12-02 11:58:43.335265137 -0800
@@ -4,3 +4,6 @@
 
 %:
 	dh $@ --builddirectory=_build --buildsystem=golang --with=golang
+
+execute_after_dh_auto_test:
+	find _build/ \( -name write_polylinedbf -or -name write_pointdbf \) -delete


More information about the Reproducible-bugs mailing list