Source: slrn
Version: 1.0.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], I have noticed
that `slrn` could not be built reproducibly.

The attached patch removes extra timestamps from the build system. 
Once applied, `slrn` can be built reproducibly in our current experimental 
framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -Nru slrn-1.0.2/debian/changelog slrn-1.0.2/debian/changelog
--- slrn-1.0.2/debian/changelog	2014-10-15 01:05:00.000000000 +0400
+++ slrn-1.0.2/debian/changelog	2015-09-07 11:31:36.000000000 +0300
@@ -1,3 +1,10 @@
+slrn (1.0.2-2.0~reproducible) unstable; urgency=medium
+
+  * Drop usage of __TIME__ and __DATE__ macros from source
+    for build reproducibility
+
+ -- Dmitry Bogatov <kact...@gnu.org>  Mon, 07 Sep 2015 11:30:12 +0300
+
 slrn (1.0.2-2) unstable; urgency=medium
 
   * Update watch file and add key for PGP validation, thanks Gregor!
diff -Nru slrn-1.0.2/debian/patches/do_not_save_compile_time_into_binary.patch slrn-1.0.2/debian/patches/do_not_save_compile_time_into_binary.patch
--- slrn-1.0.2/debian/patches/do_not_save_compile_time_into_binary.patch	1970-01-01 03:00:00.000000000 +0300
+++ slrn-1.0.2/debian/patches/do_not_save_compile_time_into_binary.patch	2015-09-04 19:04:16.000000000 +0300
@@ -0,0 +1,11 @@
+--- a/src/version.c
++++ b/src/version.c
+@@ -138,7 +138,7 @@ void slrn_show_version (FILE *fp) /*{{{*
+ 	fprintf (fp, _("\t* Note: This program was compiled against version %s.\n"),
+ 		 SLANG_VERSION_STRING);
+      }
+-#if defined(__DATE__) && defined(__TIME__)
++#if 0
+    fprintf (fp, _("Compiled on: %s %s\n"), __DATE__, __TIME__);
+ #endif
+    fprintf (fp, _("Operating System: %s\n"), os);
diff -Nru slrn-1.0.2/debian/patches/series slrn-1.0.2/debian/patches/series
--- slrn-1.0.2/debian/patches/series	2014-09-26 21:57:45.000000000 +0400
+++ slrn-1.0.2/debian/patches/series	2015-09-04 19:03:18.000000000 +0300
@@ -1 +1,2 @@
 update-paths.patch
+do_not_save_compile_time_into_binary.patch

Reply via email to