Source: openhackware
Version: 0.4.1+git-20140423.c559da7c-4
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 openhackware 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/002_reproducible-build.patch       1970-01-01 
01:00:00.000000000 +0100
--- b/debian/patches/002_reproducible-build.patch       2016-08-04 
07:22:41.506100988 +0100
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-08-04
+
+--- openhackware-0.4.1+git-20140423.c559da7c.orig/Makefile
++++ openhackware-0.4.1+git-20140423.c559da7c/Makefile
+@@ -36,8 +36,8 @@ else
+ DEBUG:= \#
+ endif
+ 
+-BUILD_DATE:= $(shell date -u +%F)
+-BUILD_TIME:= $(shell date -u +%T)
++BUILD_DATE:= $(shell date -u --date="@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" 
+%F)
++BUILD_TIME:= $(shell date -u --date="@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" 
+%T)
+ 
+ OBJDIR:= .objs
+ DISTDIR:= .
--- a/debian/patches/series     2016-08-04 07:16:43.483324384 +0100
--- b/debian/patches/series     2016-08-04 07:22:39.890088379 +0100
@@ -1 +1,2 @@
 001_build.patch
+002_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