Bug#1147673: golang-forgejo-xorm-xorm: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Sep 14 12:06:52 BST 2026


Source: golang-forgejo-xorm-xorm
Version: 1.4.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-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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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


More information about the Reproducible-bugs mailing list