Source: fftw3
Version: 3.3.4-2
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that fftw3 could not be built reproducibly.
The current date is embedded into documentation files.

The attached patch removes those timestamps as they provides no
useful information.

Regards,
 Reiner

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

diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 0000000..702ca3d
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,52 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Remove dates from documentation to get reproducible documentation
+
+Index: fftw3-3.3.4/doc/FAQ/fftw-faq.bfnn
+===================================================================
+--- fftw3-3.3.4.orig/doc/FAQ/fftw-faq.bfnn
++++ fftw3-3.3.4/doc/FAQ/fftw-faq.bfnn
+@@ -12,7 +12,7 @@
+ \call-html startup html.refs2
+ \copyto ASCII
+             FFTW FREQUENTLY ASKED QUESTIONS WITH ANSWERS
+-                            `date '+%d %h %Y'`
++
+ 			     Matteo Frigo
+ 			   Steven G. Johnson
+  			    <f...@fftw.org>
+@@ -28,7 +28,7 @@ END-INFO-DIR-ENTRY
+ File: $prefix.info, Node: Top, Next: Question 1.1, Up: (dir)
+ 
+             FFTW FREQUENTLY ASKED QUESTIONS WITH ANSWERS
+-                            `date '+%d %h %Y'`
++
+ 			     Matteo Frigo
+ 			   Steven G. Johnson
+ 			    <f...@fftw.org>
+Index: fftw3-3.3.4/doc/FAQ/m-html.pl
+===================================================================
+--- fftw3-3.3.4.orig/doc/FAQ/m-html.pl
++++ fftw3-3.3.4/doc/FAQ/m-html.pl
+@@ -33,8 +33,6 @@ sub html_init {
+     print HTML "<html>\n";
+     $html_needpara= -1;
+     $html_end='';
+-    chop($html_date=`date '+%d %B %Y'`);
+-    chop($html_year=`date '+%Y'`);
+ }
+ 
+ sub html_startup {
+@@ -70,11 +68,10 @@ END
+ }
+ 
+ sub html_close {
+-    print HTML $html_end,"<address>\n$user_author\n";
+-    print HTML "- $html_date\n</address><br>\n";
++    print HTML $html_end,"<address>\n$user_author\n</address><br>\n";
+     print HTML "Extracted from $user_title,\n";
+     print HTML "<A href=\"$html_copyrighthref\">" if length($html_copyrighthref);
+-    print HTML "Copyright &copy; $html_year $user_copyholder.";
++    print HTML "Copyright &copy; 2015 $user_copyholder.";
+     print HTML "</A>" if length($html_copyrighthref);
+     print HTML "\n</body></html>\n";
+     close(HTML);
diff --git a/debian/patches/series b/debian/patches/series
index 81a516c..0aadf6c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-runtime-neon-detection.patch
+reproducible_build.patch

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to