Source: wordgrinder
Version: 0.6-3
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@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
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- 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 <la...@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
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to