Source: xastir Version: 2.1.0-1 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that xastir could not be built reproducibly. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/patches/reproducible_build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible_build.patch 2018-02-17 09:30:36.707546017 +0000 @@ -0,0 +1,16 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2018-02-17 + +--- xastir-2.1.0.orig/src/Makefile.am ++++ xastir-2.1.0/src/Makefile.am +@@ -89,6 +89,9 @@ testdbfawk_SOURCES = \ + compiledate.c: $(XASTIR_SRC) + rm -f compiledate.c compiledate.o + echo 'char compiledate[] = "'"Compiled: `date`"'";' > compiledate.c ++ if test -n "$$SOURCE_DATE_EPOCH"; then \ ++ echo 'char compiledate[] = "'"Compiled: `LC_ALL=C date --utc --date="@$$SOURCE_DATE_EPOCH"`"'";' > compiledate.c; \ ++ fi + echo 'char gitstring[] = "'"`$(top_srcdir)/scripts/XastirGitStamp.sh $(top_srcdir)`"'";' >> compiledate.c + + remove_compiledate: --- a/debian/patches/series 2018-02-17 08:48:29.291704500 +0000 --- b/debian/patches/series 2018-02-17 08:55:44.226417154 +0000 @@ -2,3 +2,4 @@ link.patch OSM_config.patch simple_db.patch +reproducible_build.patch

