Source: gtranslator
Version: 2.91.6-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-CC: reproducible-builds@lists.alioth.debian.org

Hi!

While working on Debian's “reproducible builds” effort [1], we have
noticed that gtranslator doesn't build reproducibly.
During build the current date is embedded into the manpage.

The attached patch replaces the undeterministic timestamp with
the date from the latest changelog entry.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds




diff --git a/debian/patches/reproducible_manpage.patch b/debian/patches/reproducible_manpage.patch
new file mode 100644
index 0000000..16812b0
--- /dev/null
+++ b/debian/patches/reproducible_manpage.patch
@@ -0,0 +1,18 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Use date from latest changelog entry in manpage.
+ This makes the build reproducible, as each time the same
+ timestamp will be embedded.
+
+Index: gtranslator-2.91.6/configure.ac
+===================================================================
+--- gtranslator-2.91.6.orig/configure.ac
++++ gtranslator-2.91.6/configure.ac
+@@ -250,7 +250,7 @@ AC_MSG_RESULT($enable_debug)
+ dnl -------------------------------------------------------------------
+ dnl Get the date for the man-page and substitute it there and anywhere.
+ dnl -------------------------------------------------------------------
+-MY_DATE=`date +%Y-%m-%d`
++MY_DATE=`dpkg-parsechangelog -S Date | date -u +%Y-%m-%d -f -`
+ 
+ AC_SUBST(MY_DATE)
+ 
diff --git a/debian/patches/series b/debian/patches/series
index ac1b759..b263808 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 port_to_gtkspell3.patch
 fix-help-links.patch
+reproducible_manpage.patch

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to