From 9efb9cdb3c9adf55fc4973358aafe6e1a6dd180e Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Sun, 28 Jul 2019 00:03:14 +0200 Subject: [PATCH] Add debian/patches/0001-reproductible-build.patch: Try to make the documentation reproductible --- debian/changelog | 4 +++- debian/patches/0001-reproductible-build.patch | 17 +++++++++++++++++ debian/patches/series | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 debian/patches/0001-reproductible-build.patch diff --git a/debian/changelog b/debian/changelog index 2eee6e4..3bf4395 100644 --- a/debian/changelog +++ b/debian/changelog @@ -39,8 +39,10 @@ nut (2.7.4-9) UNRELEASED; urgency=medium * Remove obsolete files and old upgrade paths for users coming from version prior to wheezy * debian/control: Mark -dev packages as Multi-Arch: same + * Add debian/patches/0001-reproductible-build.patch: Try to make the + documentation reproductible - -- Laurent Bigonville Sat, 27 Jul 2019 22:32:07 +0200 + -- Laurent Bigonville Sun, 28 Jul 2019 00:02:13 +0200 nut (2.7.4-8) unstable; urgency=medium diff --git a/debian/patches/0001-reproductible-build.patch b/debian/patches/0001-reproductible-build.patch new file mode 100644 index 0000000..c791769 --- /dev/null +++ b/debian/patches/0001-reproductible-build.patch @@ -0,0 +1,17 @@ +Description: Make the documentation reproductible +Author: Laurent Bigonville +Last-Update: 2019-07-28 + +--- a/docs/Makefile.am ++++ b/docs/Makefile.am +@@ -92,8 +92,8 @@ packager-guide.html packager-guide.chunk + # $ ASCIIDOC_VERBOSE=-v make + A2X_COMMON_OPTS = $(ASCIIDOC_VERBOSE) --attribute icons \ + --xsltproc-opts "--nonet" \ +- --xsltproc-opts "--stringparam nut.localdate \"`TZ=UTC date +%Y-%m-%d`\"" \ +- --xsltproc-opts "--stringparam nut.localtime \"`TZ=UTC date +%H:%M:%S`\"" \ ++ --xsltproc-opts "--stringparam nut.localdate \"`TZ=UTC date +%Y-%m-%d -d @$(SOURCE_DATE_EPOCH)`\"" \ ++ --xsltproc-opts "--stringparam nut.localtime \"`TZ=UTC date +%H:%M:%S -d @$(SOURCE_DATE_EPOCH)`\"" \ + --xsltproc-opts "--stringparam nut.nutversion \"@PACKAGE_VERSION@\"" \ + --attribute iconsdir=$(srcdir)/images \ + --attribute=badges \ diff --git a/debian/patches/series b/debian/patches/series index 32b2ede..a9a4e31 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +0001-reproductible-build.patch 0003-install-dev-files-in-usr.patch 0002-nut-monitor-paths.patch 0004-fix-systemd-service.patch