Source: 4ti2 Version: 1.6.7+ds-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps locale X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that 4ti2 could not be built reproducibly. It embeds a locale- and timezone-dependent timestamp into the documentation. The attached patch fixes this by using the C locale and UTC for generating the timestamp. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch new file mode 100644 index 0000000..fbf79fe --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,11 @@ +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -2,7 +2,7 @@ + export BIBINPUTS = $(abs_top_srcdir)/doc + export BSTINPUTS = $(abs_top_srcdir)/doc + +-DEB_PKG_DATE_LTXD = $(shell date -d "$(DEB_PKG_DATE)" +"%B %d, %Y") ++DEB_PKG_DATE_LTXD = $(shell LC_ALL=C date -u -d "$(DEB_PKG_DATE)" +"%B %d, %Y") + + BIBTEX = bibtex + PDFLATEX = pdflatex diff --git a/debian/patches/series b/debian/patches/series index 31b77dd..035c63d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ debianization.patch debianization-prefix.patch debianization-documentation.patch debianization-documentation-prefix.patch +reproducible-build.patch