Source: osinfo-db Version: 0.20170225-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that osinfo-db could not be built reproducibly. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/Reproducible-Build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/Reproducible-Build.patch 2017-04-20 22:40:45.831950626 +0100 @@ -0,0 +1,19 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2017-04-20 + +--- osinfo-db-0.20170225.orig/Makefile ++++ osinfo-db-0.20170225/Makefile +@@ -1,7 +1,11 @@ + + VPATH = . + +-TODAY = $(shell date +"%Y%m%d") ++ifdef SOURCE_DATE_EPOCH ++ TODAY = $(shell date --utc --date="@$(SOURCE_DATE_EPOCH)" +"%Y%m%d") ++else ++ TODAY = $(shell date +"%Y%m%d") ++endif + + OSINFO_DB_EXPORT = osinfo-db-export + OSINFO_DB_IMPORT = osinfo-db-import --- a/debian/patches/series 2017-04-20 22:36:19.898842751 +0100 --- b/debian/patches/series 2017-04-20 22:40:45.007947191 +0100 @@ -1,2 +1,3 @@ Debian-Jessie-Update-DVD-links.patch Add-Debian-Stretch-RCs.patch +Reproducible-Build.patch