Source: libtpms
Version: 0.8.0~dev1-1.1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

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

This is because the 0003-set-man-page-date-to-last-changelog had an
incorrect path the Debian change which was leading to:

    dpkg-parsechangelog: error: cannot open file changelog: No such file or 
directory

… in the logs.

Patch attached that sets the path correctly, but a superior approach
would be to parse SOURCE_DATE_EPOCH in the patch instead of manually
parsing debian/changelog.

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


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/0003-set-man-page-date-to-last-changelog.patch     
2020-07-10 10:15:01.880702962 +0100
--- b/debian/patches/0003-set-man-page-date-to-last-changelog.patch     
2020-07-10 10:21:47.965770524 +0100
@@ -1,11 +1,11 @@
 Description: Set the date of man pages to the last changelog entry.
---- a/man/man3/Makefile.am
-+++ b/man/man3/Makefile.am
-@@ -55,11 +55,14 @@
+--- libtpms-0.8.0~dev1.orig/man/man3/Makefile.am
++++ libtpms-0.8.0~dev1/man/man3/Makefile.am
+@@ -55,11 +55,14 @@ man3_MANS_generated = \
        TPM_Malloc.3
  
  man3_MANS += $(man3_MANS_generated)
-+BUILD_DATE ?= $$(dpkg-parsechangelog -S Date -lchangelog)
++BUILD_DATE ?= $$(dpkg-parsechangelog -S Date -l../../debian/changelog)
 +PODDATE = $$(date -u "+%Y-%m-%d" -d "$(BUILD_DATE)")
  
  %.3 : %.pod

Reply via email to