File: 002_reproducible-build.patch

package info (click to toggle)
openhackware 0.4.1%2Bgit-20140423.c559da7c-4.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,312 kB
  • sloc: ansic: 22,217; asm: 657; makefile: 183
file content (17 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Make the build reproducible
Author: Chris Lamb <lamby@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:= .