Source: vit
Version: 1.2-2
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 vit 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/ReproducibleBuild.diff     1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/ReproducibleBuild.diff     2016-08-04 07:18:14.916030209 
+0100
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@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
--- a/debian/patches/series     2016-08-04 07:15:58.862980774 +0100
--- b/debian/patches/series     2016-08-04 07:18:12.732013323 +0100
@@ -1 +1,2 @@
 FixCommandsPath.diff
+ReproducibleBuild.diff
_______________________________________________
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