Package: libopts25-dev
Version: 1:5.18.3-6
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

When building autogen twice, the manual pages in libopts25-dev differ,
because autogen embeds the build time. This prevents libopts25-dev from
becoming M-A:same (see #762019) and counters the goal to have
reproducible builds, see https://wiki.debian.org/ReproducibleBuilds.
Please consider applying the attached patch or updating autogen to
5.18.4, which flip the default for "dne" to "-d", such that this patch
becomes unnecessary.

Helmut
diff -Nru autogen-5.18.3/debian/changelog autogen-5.18.3/debian/changelog
--- autogen-5.18.3/debian/changelog     2014-08-06 19:47:48.000000000 +0200
+++ autogen-5.18.3/debian/changelog     2014-09-17 22:56:33.000000000 +0200
@@ -1,3 +1,10 @@
+autogen (1:5.18.3-6.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Make manual pages in libopts25-dev reproducible. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 17 Sep 2014 22:28:37 +0200
+
 autogen (1:5.18.3-6) unstable; urgency=medium
 
   * Bump build-dep on guile-2.0-dev to a version without #701861.
diff -Nru autogen-5.18.3/debian/patches/reproducible.diff 
autogen-5.18.3/debian/patches/reproducible.diff
--- autogen-5.18.3/debian/patches/reproducible.diff     1970-01-01 
01:00:00.000000000 +0100
+++ autogen-5.18.3/debian/patches/reproducible.diff     2014-09-17 
22:56:16.000000000 +0200
@@ -0,0 +1,20 @@
+From: Helmut Grohne <hel...@subdivi.de>
+Subject: make manual pages in libopts25-dev reproducible
+Last-Update: 2014-09-17
+
+Do not include the build time and autogen version in manual pages in
+libopts25-dev.
+
+Index: autogen-5.18.3/autoopts/tpl/agman3.tpl
+===================================================================
+--- autogen-5.18.3.orig/autoopts/tpl/agman3.tpl        2014-01-10 
20:20:57.000000000 +0100
++++ autogen-5.18.3/autoopts/tpl/agman3.tpl     2014-09-17 22:38:23.791488877 
+0200
+@@ -55,7 +55,7 @@
+ ;; The following "dne" argument is a string of 5 characters:
+ ;; '.' '\\' '"' and two spaces.  It _is_ hard to read. "
+ ;;
+-(dne ".\\\"  ")
++(dne "-d" ".\\\"  ")
+ 
+ +}
+ .SH NAME
diff -Nru autogen-5.18.3/debian/patches/series 
autogen-5.18.3/debian/patches/series
--- autogen-5.18.3/debian/patches/series        2014-08-06 19:46:57.000000000 
+0200
+++ autogen-5.18.3/debian/patches/series        2014-09-17 22:19:45.000000000 
+0200
@@ -2,3 +2,4 @@
 02_fix_hurd_identifiermacro.diff
 03_no_rpath_multiarch.diff
 10_handle_grep_error.diff
+reproducible.diff

Reply via email to