Bug#890651: xastir: please make the build reproducible
Chris Lamb
lamby at debian.org
Sat Feb 17 09:36:47 UTC 2018
Source: xastir
Version: 2.1.0-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- 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 <lamby at debian.org>
+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
More information about the Reproducible-bugs
mailing list