Source: pencil2d
Version: 0.6.4-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
pencil2d could not be built reproducibly.

While you do use SOURCE_DATE_EPOCH to populate GIT_TIMESTAMP, you omit
the --utc flag to date(1) so the generated date will depend on the
build system's current timezone.

Patch attached.

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


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2020-08-13 11:34:56.164335215 +0100
--- b/debian/rules      2020-08-13 11:59:46.372680920 +0100
@@ -6,7 +6,7 @@
 
 # export information for the "About" screen
 include /usr/share/dpkg/pkg-info.mk
-timestamp=$(shell date +%Y-%m-%d -d "@$(SOURCE_DATE_EPOCH)")
+timestamp=$(shell date +%Y-%m-%d -d -u "@$(SOURCE_DATE_EPOCH)")
 export DEB_CXXFLAGS_MAINT_APPEND += -DGIT_TIMESTAMP=\\\"$(timestamp)\\\"
 
 %:

Reply via email to