From e15be88231183f8e480070ca7daa50377ab3f43d Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Thu, 1 Aug 2019 20:51:27 +0200 Subject: [PATCH] debian/patches/0001-reproductible-build.patch: Try harder to make the doc reproductible --- debian/patches/0001-reproductible-build.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/debian/patches/0001-reproductible-build.patch b/debian/patches/0001-reproductible-build.patch index c791769..2d7d7d6 100644 --- a/debian/patches/0001-reproductible-build.patch +++ b/debian/patches/0001-reproductible-build.patch @@ -15,3 +15,27 @@ Last-Update: 2019-07-28 --xsltproc-opts "--stringparam nut.nutversion \"@PACKAGE_VERSION@\"" \ --attribute iconsdir=$(srcdir)/images \ --attribute=badges \ +--- a/configure.ac ++++ b/configure.ac +@@ -1211,7 +1211,7 @@ LIBDIR=${conftemp} + AC_DEFINE_UNQUOTED(LIBDIR, "${conftemp}", [Default path for system libraries]) + + dnl Current date +-now=`TZ=UTC date +%Y-%m-%d` ++now=`TZ=UTC date +%Y-%m-%d -d @${SOURCE_DATE_EPOCH}` + + AC_SUBST(now) + AC_SUBST(OS_NAME) +--- a/docs/man/Makefile.am ++++ b/docs/man/Makefile.am +@@ -591,8 +591,8 @@ if HAVE_ASCIIDOC + + .txt.html: + $(ASCIIDOC) --backend=xhtml11 \ +- --attribute localdate=`TZ=UTC date +%Y-%m-%d` \ +- --attribute localtime=`TZ=UTC date +%H:%M:%S` \ ++ --attribute localdate=`TZ=UTC date +%Y-%m-%d -d @$(SOURCE_DATE_EPOCH)` \ ++ --attribute localtime=`TZ=UTC date +%H:%M:%S -d @$(SOURCE_DATE_EPOCH)` \ + --attribute nutversion="@PACKAGE_VERSION@" \ + -o $@ $< +