Source: synfig
Version: 1.0.2-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Dear Maintainer,

While working on the “reproducible builds” effort [1], we have noticed
that 'synfig' could not be built reproducibly.

The attached patch removes build date from info output. Once applied,
synfig can be built reproducibly in our current experimental framework.

Regards,
Alexis Bienvenüe.

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


diff -Nru synfig-1.0.2/debian/patches/series synfig-1.0.2/debian/patches/series
--- synfig-1.0.2/debian/patches/series	2015-11-27 10:31:17.000000000 +0100
+++ synfig-1.0.2/debian/patches/series	2016-04-05 10:36:15.000000000 +0200
@@ -1,2 +1,3 @@
 c++11.patch
 #no-mod_ffmpeg.patch
+strip-build-date.patch
diff -Nru synfig-1.0.2/debian/patches/strip-build-date.patch synfig-1.0.2/debian/patches/strip-build-date.patch
--- synfig-1.0.2/debian/patches/strip-build-date.patch	1970-01-01 01:00:00.000000000 +0100
+++ synfig-1.0.2/debian/patches/strip-build-date.patch	2016-04-05 10:37:25.000000000 +0200
@@ -0,0 +1,27 @@
+Description: Strip build date from source
+ Strip build date from source, to get reproducible build.
+ see https://wiki.debian.org/ReproducibleBuilds
+Author: Alexis Bienvenüe <p...@passoire.fr>
+
+--- synfig-1.0.2.orig/src/synfig/main.cpp
++++ synfig-1.0.2/src/synfig/main.cpp
+@@ -110,7 +110,7 @@ synfig::get_version()
+ const char *
+ synfig::get_build_date()
+ {
+-	return __DATE__;
++	return "Unknown";
+ }
+ 
+ bool
+--- synfig-1.0.2.orig/src/tool/optionsprocessor.cpp
++++ synfig-1.0.2/src/tool/optionsprocessor.cpp
+@@ -193,7 +193,7 @@ void OptionsProcessor::process_info_opti
+ #ifdef DEVEL_VERSION
+ 			cout << endl << DEVEL_VERSION << endl << endl;
+ #endif
+-		cout << "Compiled on " __DATE__ /* " at "__TIME__ */;
++                        cout << "Compiled ";
+ #ifdef __GNUC__
+ 		cout << " with GCC " << __VERSION__;
+ #endif
_______________________________________________
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