Source: golang-forgejo-xorm-xorm
Version: 1.4.1-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
golang-forgejo-xorm-xorm could not be built reproducibly.

This is because the testsuite does not correctly tidy up after itself,
leading to a different binary .deb being generated if the tests are
skipped.

Patch attached that excludes a bunch of these files from the binary
package. However, a cleaner method would be to remove these in the
testsuite itself (a job for upstream, perhaps). If these files are
needed at runtime, however, the packaging would of course need re-
jiggering.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-09-14 07:23:26.506607344 -0300
--- b/debian/rules      2026-09-14 08:01:07.279586149 -0300
@@ -1,4 +1,13 @@
 #!/usr/bin/make -f
 
+export DH_GOLANG_EXCLUDES := \
+       /dump_.*.sql \
+       /sqlite3.*.sql \
+       /dump2-sqlite3-table.sql \
+       /testdb.sqlite3 \
+       /level.db/ \
+       /test.db
+export DH_GOLANG_EXCLUDES_ALL := 1
+
 %:
        dh ${@} --builddirectory=debian/_build --buildsystem=golang

Reply via email to