summaryrefslogtreecommitdiff
path: root/debian/patches/etcmakefile.-pass-arguments-to-date-to-s.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/etcmakefile.-pass-arguments-to-date-to-s.patch')
-rw-r--r--debian/patches/etcmakefile.-pass-arguments-to-date-to-s.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/etcmakefile.-pass-arguments-to-date-to-s.patch b/debian/patches/etcmakefile.-pass-arguments-to-date-to-s.patch
new file mode 100644
index 0000000..08f0ff9
--- /dev/null
+++ b/debian/patches/etcmakefile.-pass-arguments-to-date-to-s.patch
@@ -0,0 +1,28 @@
+From: Vagrant Cascadian <vagrant@reproducible-builds.org>
+Date: Tue, 29 Dec 2020 07:16:56 +0000
+X-Dgit-Generated: 1:4.14-6 ef7606529df04df6daf9bcd6b67dd3ee1fdef7b1
+Subject: etc/Makefile.*: Pass arguments to date to support SOURCE_DATE_EPOCH when generating README. (Closes: #978610)
+
+
+---
+
+--- a2ps-4.14.orig/etc/Makefile.am
++++ a2ps-4.14/etc/Makefile.am
+@@ -44,5 +44,5 @@ a2ps.cfg: a2ps_cfg Makefile
+
+ # Building a time stamp to know the version.
+ README: README.in Makefile
+- sed "s!@date@!`date`!g;s!@version@!$(VERSION)!g" \
++ sed "s!@date@!`LC_ALL=C date --utc --date=@$(SOURCE_DATE_EPOCH)`!g;s!@version@!$(VERSION)!g" \
+ $(srcdir)/README.in > README
+--- a2ps-4.14.orig/etc/Makefile.in
++++ a2ps-4.14/etc/Makefile.in
+@@ -486,7 +486,7 @@ a2ps.cfg: a2ps_cfg Makefile
+
+ # Building a time stamp to know the version.
+ README: README.in Makefile
+- sed "s!@date@!`date`!g;s!@version@!$(VERSION)!g" \
++ sed "s!@date@!`LC_ALL=C date --utc --date=@$(SOURCE_DATE_EPOCH)`!g;s!@version@!$(VERSION)!g" \
+ $(srcdir)/README.in > README
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.