Package: gettext
Version: 0.19.8.1-10
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The embedded copy of help2man that gettext uses to generate manpages is
an old version that does not support SOURCE_DATE_EPOCH, and thus embeds
timestamps in generated manpages.

The attached patch adds help2man to build-depends and patches a Makefile
to use the system help2man binary, which supports SOURCE_DATE_EPOCH.


Thanks for maintaining gettext!


live well,
  vagrant
diff --git a/debian/control b/debian/control
index d72cb94..77b72c8 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: devel
 Priority: optional
 Maintainer: Santiago Vila <sanv...@debian.org>
 Standards-Version: 3.9.6
-Build-Depends: g++ (>= 4:7), debhelper (>= 9.20160402), fastjar <!nojava>, default-jdk <!nojava>, file, libncurses5-dev, libxml2-dev, libglib2.0-dev, libcroco3-dev, xz-utils, libunistring-dev, bison
+Build-Depends: g++ (>= 4:7), debhelper (>= 9.20160402), fastjar <!nojava>, default-jdk <!nojava>, file, libncurses5-dev, libxml2-dev, libglib2.0-dev, libcroco3-dev, xz-utils, libunistring-dev, bison, help2man
 Homepage: https://www.gnu.org/software/gettext/
 Rules-Requires-Root: no
 
diff --git a/debian/patches/series b/debian/patches/series
index 4715910..b098d7f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
 07-java11-support.patch
 08-java-future-support.patch
 09-fix-crash-with-po-file-input.patch
+use-system-help2man.patch
diff --git a/debian/patches/use-system-help2man.patch b/debian/patches/use-system-help2man.patch
new file mode 100644
index 0000000..e7b55a0
--- /dev/null
+++ b/debian/patches/use-system-help2man.patch
@@ -0,0 +1,19 @@
+From: Vagrant Cascadian <vagr...@reproducible-builds.org>
+Date: Sun, 19 Jan 2020 14:31:22 -0800
+X-Dgit-Generated: 0.19.8.1-10 20dded162301a971067ad5ccc19038e515b2b409
+Subject: Use system help2man.
+
+
+---
+
+--- gettext-0.19.8.1.orig/gettext-tools/man/Makefile.am
++++ gettext-0.19.8.1/gettext-tools/man/Makefile.am
+@@ -57,7 +57,7 @@ PERL = @PERL@
+ RM = rm -f
+ 
+ # help2man 1.24 or newer.
+-HELP2MAN = $(PERL) -w -- $(srcdir)/help2man
++HELP2MAN = /usr/bin/help2man
+ 
+ # groff 1.17 or newer.
+ MAN2HTML = groff -mandoc -Thtml

Attachment: signature.asc
Description: PGP signature

Reply via email to