[Reproducible-builds] Bug#833612: nsnake: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Aug 6 22:52:48 UTC 2016


Source: nsnake
Version: 3.0.1-2
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 nsnake 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 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch	2016-08-06 23:48:47.355996205 +0100
@@ -0,0 +1,18 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-06
+
+--- nsnake-3.0.1.orig/Makefile
++++ nsnake-3.0.1/Makefile
+@@ -39,7 +39,11 @@
+ # General Info
+ PACKAGE = nsnake
+ VERSION = 3.0.0
++ifdef SOURCE_DATE_EPOCH
++DATE    = $(shell LC_ALL=C date --utc --date="@$(SOURCE_DATE_EPOCH)" "+%b%Y")
++else
+ DATE    = $(shell date "+%b%Y")
++endif
+ 
+ # Install dirs
+ PREFIX      = /usr
--- a/debian/patches/series	2016-08-06 23:42:32.808924284 +0100
--- b/debian/patches/series	2016-08-06 23:48:46.227986952 +0100
@@ -1,2 +1,3 @@
 install-on-usr-games.patch
 hardening.patch
+reproducible-build.patch


More information about the Reproducible-builds mailing list