[Reproducible-builds] Bug#831742: wordgrinder: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jul 18 20:56:33 UTC 2016


Source: wordgrinder
Version: 0.6-3
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed
that wordgrinder could not be built reproducibly.

Patch attached.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch	1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/reproducible-build.patch	2016-07-18 22:55:25.172173383 +0200
@@ -0,0 +1,20 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-07-18
+
+--- wordgrinder-0.6.orig/Makefile
++++ wordgrinder-0.6/Makefile
+@@ -58,7 +58,12 @@ endif
+ 
+ VERSION := 0.6.0
+ FILEFORMAT := 6
+-DATE := $(shell date +'%-d %B %Y')
++
++ifdef SOURCE_DATE_EPOCH
++	DATE := $(shell LC_ALL date --utc --date="@$(SOURCE_DATE_EPOCH)" +'%-d %B %Y')
++else
++	DATE := $(shell date +'%-d %B %Y')
++endif
+ 
+ OBJ = .obj/lj_$(USE_LUAJIT)
+ 
--- a/debian/patches/series	2016-07-18 22:47:22.590160631 +0200
--- b/debian/patches/series	2016-07-18 22:55:23.924167080 +0200
@@ -2,3 +2,4 @@
 fix-manpage-url.patch
 xwordgrinder-manpage.patch
 dont-depend-on-freetype.patch
+reproducible-build.patch


More information about the Reproducible-builds mailing list