[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1122229: golang-github-issue9-identicon: please make the build reproducible



Source: golang-github-issue9-identicon
Version: 0.0~git20170630.0.5196591-7
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
golang-github-issue9-identicon could not be built reproducibly.

This is because the testsuite generates a number of .png files which
then end up in the binary package. This means that if the tests are
skipped, the files are not generated and the package contains different
contents.

A patch is attached that removes these PNG files after running the
tests, but if the binary package really needs these files at runtime
(eg. for autopkgtests or for any other reason), then the package will
need rejigging.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules	2025-12-08 15:35:28.136597431 -0800
--- b/debian/rules	2025-12-08 15:37:34.511486365 -0800
@@ -2,3 +2,6 @@
 
 %:
 	dh $@ --buildsystem=golang --with=golang
+
+execute_after_dh_auto_test:
+	find obj-* -type f -name '*.png' -delete

Reply to: