Source: sysfsutils
Version: 2.1.1-2
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
sysfsutils could not be built reproducibly.

This is because the call to date(1) was missing the -u/--utc flag,
so that the manpage date based on the value of SOURCE_DATE_EPOCH
would vary depending on the host system's timezone setting.

Patch attached that appends -u to the pod2man call.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2022-08-22 07:40:30.822003445 -0700
--- b/debian/rules      2022-08-22 07:41:10.313858857 -0700
@@ -11,7 +11,7 @@
          --section=5 \
          --center=sysfsutils \
          --name=$(basename $(notdir $<)) \
-         --date=$(shell date -d @$(SOURCE_DATE_EPOCH) -I) \
+         --date=$(shell date -u -d @$(SOURCE_DATE_EPOCH) -I) \
          --release=$(DEB_VERSION) \
                $< >$@
 

Reply via email to