Commit bb202847 authored by Iain Learmonth's avatar Iain Learmonth

Adds patch to enable reproducible builds

parent 9bd6bf4a
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2016-08-04
--- vit-1.2.orig/Makefile.in
+++ vit-1.2/Makefile.in
@@ -14,8 +14,8 @@ build:
@echo "adding vit.pl to vit"
@cat vit.pl | grep -v ^require \
| sed "s:%prefix%:$(PREFIX):" \
- | sed "s/%BUILD%/$(VERSION) built `date`/" \
- | sed "s/%VERSION%/$(VERSION) (`date +%Y%m%d`)/" \
+ | sed "s/%BUILD%/$(VERSION) built `LC_ALL=C date --utc --date="@$${SOURCE_DATE_EPOCH:-$$(date +%s)}"`/" \
+ | sed "s/%VERSION%/$(VERSION) (`date --utc --date="@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" +%Y%m%d`)/" \
| sed "s:%TASK%:$(TASK):" \
| sed "s:%CLEAR%:$(CLEAR):" \
> vit
FixCommandsPath.diff
ReproducibleBuild.diff
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment