Bug#1148658: golang-github-miekg-pkcs11: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Sep 21 16:58:01 BST 2026


Source: golang-github-miekg-pkcs11
Version: 1.0.3+dfsg1-3
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-miekg-pkcs11 could not be built reproducibly.

This is because the testsuite also generates a token.object file
under test_data which contains unreproducible data.

A patch is attached that removes this file (along with token.lock).

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-09-21 08:33:41.145091351 -0700
--- b/debian/rules	2026-09-21 08:55:07.014934708 -0700
@@ -22,7 +22,7 @@
 
 override_dh_auto_install:
 	cd _build/src/github.com/miekg/pkcs11/test_data && \
-		find \( -name generation -or -name token.lock \) -delete
+		find \( -name generation -or -name token.lock -or -name token.object \) -delete
 	dh_auto_install
 
 override_dh_auto_clean:


More information about the Reproducible-bugs mailing list