Bug#1023589: libnvme: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Nov 7 08:28:43 GMT 2022


Source: libnvme
Version: 1.2-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
libnvme could not be built reproducibly.

This is because it embedded the current build month within the
generated manual pages. A patch is attached that re-exports
SOURCE_DATE_EPOCH as KBUILD_BUILD_TIMESTAMP. This works because the
doc/kernel-doc script already supports parsing this variable.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2022-11-07 08:18:03.676512405 +0000
--- b/debian/rules	2022-11-07 08:24:16.075316512 +0000
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+export KBUILD_BUILD_TIMESTAMP = "@$(SOURCE_DATE_EPOCH)"
+
 %:
 	dh ${@} --buildsystem=meson --with python3
 


More information about the Reproducible-bugs mailing list